docs: improve the wording, add targeted examples
This commit is contained in:
61 files changed
+3422
-5861
No files matched your search
+62
-187
@@ -1,5 +1,7 @@
|
||||
# services.proxy-suite.tor
|
||||
|
||||
Tor as an outbound, with bridges, and an onion service for the inbounds.
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
@@ -26,90 +28,47 @@ Part of the [proxy-suite options reference](./index.md).
|
||||
<a id="services-proxy-suite-tor-enable"></a>
|
||||
## services\.proxy-suite\.tor\.enable
|
||||
|
||||
Whether to enable the Tor daemon (proxy-suite-tor)\.
|
||||
Run Tor\. Also turn on ` asOutbound `, ` onionService.enable `, or both\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
**Type:** boolean\
|
||||
**Default:** `false`
|
||||
|
||||
<a id="services-proxy-suite-tor-package"></a>
|
||||
## services\.proxy-suite\.tor\.package
|
||||
|
||||
Tor package\.
|
||||
|
||||
*Type:*
|
||||
package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
pkgs.tor
|
||||
```
|
||||
**Type:** package\
|
||||
**Default:** `pkgs.tor`
|
||||
|
||||
<a id="services-proxy-suite-tor-asoutbound"></a>
|
||||
## 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\.
|
||||
Add Tor as an outbound tagged “tor”\. Selection and autoProxy skip it unless it is the only
|
||||
outbound; send traffic to it with ` proxy.routing.rules ` or use it as a ` detour `\.
|
||||
Needs ` proxy.enable `\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
**Type:** boolean\
|
||||
**Default:** `false`
|
||||
|
||||
<a id="services-proxy-suite-tor-bridges-file"></a>
|
||||
## services\.proxy-suite\.tor\.bridges\.file
|
||||
|
||||
Runtime path to more bridge lines, one per line; blank lines and \# comments are skipped\.
|
||||
File with more bridge lines, one per line\. Blank lines and \# comments are skipped\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"/run/secrets/tor-bridges"
|
||||
```
|
||||
**Type:** null or string\
|
||||
**Default:** `null`\
|
||||
**Example:** `"/run/secrets/tor-bridges"`
|
||||
|
||||
<a id="services-proxy-suite-tor-bridges-lines"></a>
|
||||
## 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\.
|
||||
Bridge lines from https://bridges\.torproject\.org, without the leading “Bridge”\. Setting
|
||||
any turns bridges on\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
**Type:** list of string\
|
||||
**Default:** `[ ]`\
|
||||
**Example:**
|
||||
|
||||
```nix
|
||||
[
|
||||
@@ -120,34 +79,20 @@ list of string
|
||||
<a id="services-proxy-suite-tor-clientonly"></a>
|
||||
## 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\.
|
||||
Keep Tor a client, never a relay, even if ` extraConfig ` sets an ORPort\. The onion service
|
||||
works either way\. Turn off only to run a relay through ` extraConfig `\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
**Type:** boolean\
|
||||
**Default:** `true`
|
||||
|
||||
<a id="services-proxy-suite-tor-extraconfig"></a>
|
||||
## services\.proxy-suite\.tor\.extraConfig
|
||||
|
||||
Lines appended to the generated torrc\.
|
||||
Extra torrc lines\.
|
||||
|
||||
*Type:*
|
||||
strings concatenated with “\\n”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
""
|
||||
```
|
||||
|
||||
*Example:*
|
||||
**Type:** strings concatenated with “\\n”\
|
||||
**Default:** `""`\
|
||||
**Example:**
|
||||
|
||||
```nix
|
||||
''
|
||||
@@ -159,144 +104,74 @@ strings concatenated with “\\n”
|
||||
<a id="services-proxy-suite-tor-lyrebirdpackage"></a>
|
||||
## services\.proxy-suite\.tor\.lyrebirdPackage
|
||||
|
||||
Pluggable transport for obfs4, webtunnel and meek_lite bridges\.
|
||||
Bridge transport for obfs4, webtunnel and meek_lite\.
|
||||
|
||||
*Type:*
|
||||
package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
pkgs.lyrebird
|
||||
```
|
||||
**Type:** package\
|
||||
**Default:** `pkgs.lyrebird`
|
||||
|
||||
<a id="services-proxy-suite-tor-onionservice-enable"></a>
|
||||
## services\.proxy-suite\.tor\.onionService\.enable
|
||||
|
||||
Whether to enable an onion service in front of inbounds\.listeners\.
|
||||
Whether to enable an onion service for the server inbounds\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
**Type:** boolean\
|
||||
**Default:** `false`
|
||||
|
||||
<a id="services-proxy-suite-tor-onionservice-listeners"></a>
|
||||
## 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\.
|
||||
Listeners reachable through the onion address\. ` null `: every TCP listener (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\.
|
||||
Get their links with ` proxy-ctl inbounds link TAG --onion `; subscriptions include them\.
|
||||
Onion clients do not show up in ` proxy-ctl inbounds online `\.
|
||||
|
||||
*Type:*
|
||||
null or (list of string)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"vless-reality"
|
||||
]
|
||||
```
|
||||
**Type:** null or (list of string)\
|
||||
**Default:** `null`\
|
||||
**Example:** `[ "vless-reality" ]`
|
||||
|
||||
<a id="services-proxy-suite-tor-onionservice-secretkeyfile"></a>
|
||||
## 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\.
|
||||
File with an hs_ed25519_secret_key, to keep a fixed onion address\. ` null `: Tor creates one\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"/run/secrets/tor-hs_ed25519_secret_key"
|
||||
```
|
||||
**Type:** null or string\
|
||||
**Default:** `null`\
|
||||
**Example:** `"/run/secrets/tor-hs_ed25519_secret_key"`
|
||||
|
||||
<a id="services-proxy-suite-tor-routeonion"></a>
|
||||
## 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\.
|
||||
Send \.onion names to the “tor” outbound in every route mode, and never resolve them with
|
||||
DNS\. Inbound clients’ \.onion names go there too\. Needs ` asOutbound `\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
**Type:** boolean\
|
||||
**Default:** `true`
|
||||
|
||||
<a id="services-proxy-suite-tor-snowflakepackage"></a>
|
||||
## services\.proxy-suite\.tor\.snowflakePackage
|
||||
|
||||
Pluggable transport for snowflake bridges\.
|
||||
Bridge transport for snowflake\.
|
||||
|
||||
*Type:*
|
||||
package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
pkgs.snowflake
|
||||
```
|
||||
**Type:** package\
|
||||
**Default:** `pkgs.snowflake`
|
||||
|
||||
<a id="services-proxy-suite-tor-socksport"></a>
|
||||
## services\.proxy-suite\.tor\.socksPort
|
||||
|
||||
Loopback SOCKS port of proxy-suite-tor, which the tor outbound dials\.
|
||||
Loopback SOCKS port of Tor\.
|
||||
|
||||
*Type:*
|
||||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
18530
|
||||
```
|
||||
**Type:** 16 bit unsigned integer; between 0 and 65535 (both inclusive)\
|
||||
**Default:** `18530`
|
||||
|
||||
<a id="services-proxy-suite-tor-upstream"></a>
|
||||
## services\.proxy-suite\.tor\.upstream
|
||||
|
||||
How Tor reaches its relays or bridges\.
|
||||
How Tor reaches the network\.
|
||||
|
||||
- “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\.
|
||||
- “direct”: straight from the uplink, bypassing TUN and TProxy\.
|
||||
- “proxy”: through the local proxy, for networks that block Tor\. Works with obfs4,
|
||||
webtunnel and meek_lite bridges, but not snowflake\.
|
||||
|
||||
*Type:*
|
||||
one of “direct”, “proxy”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"direct"
|
||||
```
|
||||
**Type:** one of “direct”, “proxy”\
|
||||
**Default:** `"direct"`
|
||||
Reference in new issue
Block a user