Skip to content

Tor — not supported by Xray-core

Xray-core does not implement a Tor outbound.

Workaround

For Tor routing, use:

  • Tor — sing-box — spawns and manages a Tor binary as a child process, exposing a SOCKS5-style outbound to the rest of the config.

For Xray, the practical pattern is:

  1. Run the system Tor daemon (tor package on most distros).
  2. Configure it to expose a SOCKS5 listener (default 127.0.0.1:9050).
  3. Use Xray's SOCKS outbound pointing at that port.
json
{
  "outbounds": [
    {
      "tag": "tor",
      "protocol": "socks",
      "settings": {
        "address": "127.0.0.1",
        "port": 9050
      }
    }
  ]
}

Core Tutorial by Argsment