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:
- Run the system Tor daemon (
torpackage on most distros). - Configure it to expose a SOCKS5 listener (default
127.0.0.1:9050). - Use Xray's SOCKS outbound pointing at that port.
json
{
"outbounds": [
{
"tag": "tor",
"protocol": "socks",
"settings": {
"address": "127.0.0.1",
"port": 9050
}
}
]
}