6.0 KiB
services.proxy-suite.tor
Part of the proxy-suite options reference.
Options
- tor
- enable
- package
- asOutbound
- bridges
- clientOnly
- extraConfig
- lyrebirdPackage
- onionService
- routeOnion
- snowflakePackage
- socksPort
- upstream
services.proxy-suite.tor.enable
Whether to enable the Tor daemon (proxy-suite-tor).
Type: boolean
Default:
false
Example:
true
services.proxy-suite.tor.package
Tor package.
Type: package
Default:
pkgs.tor
services.proxy-suite.tor.asOutbound
Add Tor as an outbound tagged “tor”: a SOCKS hop to proxy-suite-tor on 127.0.0.1:socksPort, which receives names unresolved. proxy.selection and autoProxy leave it alone unless it is the only outbound; route to it with proxy.routing.rules or name it as a detour. Requires proxy.enable.
Type: boolean
Default:
false
services.proxy-suite.tor.bridges.file
Runtime path to more bridge lines, one per line; blank lines and # comments are skipped.
Type: null or string
Default:
null
Example:
"/run/secrets/tor-bridges"
services.proxy-suite.tor.bridges.lines
Bridge lines, as https://bridges.torproject.org hands them out, without the leading “Bridge”. Any given turns on UseBridges; obfs4, webtunnel, meek_lite and snowflake transports are run as needed.
Type: list of string
Default:
[ ]
Example:
[
"obfs4 192.0.2.1:443 0123456789ABCDEF0123456789ABCDEF01234567 cert=... iat-mode=0"
]
services.proxy-suite.tor.clientOnly
Keep Tor a client (ClientOnly 1): never a relay, exit, bridge or directory server, even when extraConfig sets an ORPort. The onion service works either way. Turn off only to run a relay through extraConfig.
Type: boolean
Default:
true
services.proxy-suite.tor.extraConfig
Lines appended to the generated torrc.
Type: strings concatenated with “\n”
Default:
""
Example:
''
ExitNodes {de},{nl}
StrictNodes 1
''
services.proxy-suite.tor.lyrebirdPackage
Pluggable transport for obfs4, webtunnel and meek_lite bridges.
Type: package
Default:
pkgs.lyrebird
services.proxy-suite.tor.onionService.enable
Whether to enable an onion service in front of inbounds.listeners.
Type: boolean
Default:
false
Example:
true
services.proxy-suite.tor.onionService.listeners
inbounds.listeners served at the onion address, each on its share port. Null takes every listener a TCP-only onion can carry: not amneziawg, h3-only xhttp or raw JSON.
Share links for them (proxy-ctl inbounds link TAG --onion, and subscriptions) dial the
.onion address and keep the listener’s TLS and REALITY names. Clients reach XRay from
127.0.0.1, so proxy-ctl inbounds online does not list them.
Type: null or (list of string)
Default:
null
Example:
[
"vless-reality"
]
services.proxy-suite.tor.onionService.secretKeyFile
Runtime path to an hs_ed25519_secret_key, to keep an onion address. Null lets Tor create one in /var/lib/proxy-suite/tor/onion.
Type: null or string
Default:
null
Example:
"/run/secrets/tor-hs_ed25519_secret_key"
services.proxy-suite.tor.routeOnion
Send .onion names to the “tor” outbound in every route mode, and keep them away from DNS: in TUN and TProxy modes sing-box answers them with a fake address it maps back to the name, and XRay drops the lookup. Inbound clients’ .onion names go the same way, through the local proxy, whatever their listener’s via (except “block”). Applies with asOutbound.
Type: boolean
Default:
true
services.proxy-suite.tor.snowflakePackage
Pluggable transport for snowflake bridges.
Type: package
Default:
pkgs.snowflake
services.proxy-suite.tor.socksPort
Loopback SOCKS port of proxy-suite-tor, which the tor outbound dials.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
18530
services.proxy-suite.tor.upstream
How Tor reaches its relays or bridges.
- “direct”: from the uplink, past TUN and TProxy (it runs as proxy-suite-daemon).
- “proxy”: through the local proxy listener (proxy.listener, with its auth), for a network that blocks Tor. obfs4, webtunnel and meek_lite bridges follow it; snowflake cannot.
Type: one of “direct”, “proxy”
Default:
"direct"