refactor: overhaul of options and features
Includes, but not limited to: - zapret2 support - declarative inbounds - proxy-ctl revamp - automatic proxy learning
This commit is contained in:
144 files changed
+13198
-14066
No files matched your search
-9592
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,885 @@
|
||||
# services.proxy-suite.amneziaWg
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
|
||||
- amneziaWg
|
||||
- [enable](#services-proxy-suite-amneziawg-enable)
|
||||
- [kernelModulePackage](#services-proxy-suite-amneziawg-kernelmodulepackage)
|
||||
- [profiles](#services-proxy-suite-amneziawg-profiles)
|
||||
- `<name>`
|
||||
- [allowConfigHooks](#services-proxy-suite-amneziawg-profiles-name-allowconfighooks)
|
||||
- [autostart](#services-proxy-suite-amneziawg-profiles-name-autostart)
|
||||
- [configFile](#services-proxy-suite-amneziawg-profiles-name-configfile)
|
||||
- [interfaceName](#services-proxy-suite-amneziawg-profiles-name-interfacename)
|
||||
- [settings](#services-proxy-suite-amneziawg-profiles-name-settings)
|
||||
- [addresses](#services-proxy-suite-amneziawg-profiles-name-settings-addresses)
|
||||
- [dns](#services-proxy-suite-amneziawg-profiles-name-settings-dns)
|
||||
- [listenPort](#services-proxy-suite-amneziawg-profiles-name-settings-listenport)
|
||||
- [mtu](#services-proxy-suite-amneziawg-profiles-name-settings-mtu)
|
||||
- [obfuscation](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation)
|
||||
- [contentPaddingAddition](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-contentpaddingaddition)
|
||||
- [disableCookies](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-disablecookies)
|
||||
- [h1](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h1)
|
||||
- [h2](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h2)
|
||||
- [h3](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h3)
|
||||
- [h4](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h4)
|
||||
- [headerProtectionKey](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-headerprotectionkey)
|
||||
- [headerProtectionKeyFile](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-headerprotectionkeyfile)
|
||||
- [i1](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i1)
|
||||
- [i2](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i2)
|
||||
- [i3](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i3)
|
||||
- [i4](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i4)
|
||||
- [i5](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i5)
|
||||
- [jc](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-jc)
|
||||
- [jmax](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-jmax)
|
||||
- [jmin](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-jmin)
|
||||
- [keepaliveTimeout](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-keepalivetimeout)
|
||||
- [maxHandshakeAttempts](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-maxhandshakeattempts)
|
||||
- [randomTrailers](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-randomtrailers)
|
||||
- [rejectAfterTime](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-rejectaftertime)
|
||||
- [rekeyAfterTime](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-rekeyaftertime)
|
||||
- [rekeyTimeout](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-rekeytimeout)
|
||||
- [s1](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s1)
|
||||
- [s2](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s2)
|
||||
- [s3](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s3)
|
||||
- [s4](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s4)
|
||||
- [obfuscationFile](#services-proxy-suite-amneziawg-profiles-name-settings-obfuscationfile)
|
||||
- [peers](#services-proxy-suite-amneziawg-profiles-name-settings-peers)
|
||||
- item
|
||||
- [advancedSecurity](#services-proxy-suite-amneziawg-profiles-name-settings-peers-advancedsecurity)
|
||||
- [allowedIPs](#services-proxy-suite-amneziawg-profiles-name-settings-peers-allowedips)
|
||||
- [endpoint](#services-proxy-suite-amneziawg-profiles-name-settings-peers-endpoint)
|
||||
- [persistentKeepalive](#services-proxy-suite-amneziawg-profiles-name-settings-peers-persistentkeepalive)
|
||||
- [presharedKey](#services-proxy-suite-amneziawg-profiles-name-settings-peers-presharedkey)
|
||||
- [presharedKeyFile](#services-proxy-suite-amneziawg-profiles-name-settings-peers-presharedkeyfile)
|
||||
- [publicKey](#services-proxy-suite-amneziawg-profiles-name-settings-peers-publickey)
|
||||
- [privateKey](#services-proxy-suite-amneziawg-profiles-name-settings-privatekey)
|
||||
- [privateKeyFile](#services-proxy-suite-amneziawg-profiles-name-settings-privatekeyfile)
|
||||
- [table](#services-proxy-suite-amneziawg-profiles-name-settings-table)
|
||||
- [vpn](#services-proxy-suite-amneziawg-profiles-name-vpn)
|
||||
- [vpnContainer](#services-proxy-suite-amneziawg-profiles-name-vpncontainer)
|
||||
- [vpnFile](#services-proxy-suite-amneziawg-profiles-name-vpnfile)
|
||||
- [toolsPackage](#services-proxy-suite-amneziawg-toolspackage)
|
||||
- [userspacePackage](#services-proxy-suite-amneziawg-userspacepackage)
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-enable"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.enable
|
||||
|
||||
Whether to enable native AmneziaWG client profiles\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-kernelmodulepackage"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.kernelModulePackage
|
||||
|
||||
AWG 3\.1 kernel module package\. Set null to use userspace-only fallback\.
|
||||
|
||||
*Type:*
|
||||
null or package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
<derivation amneziawg-3.1.20260812>
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles
|
||||
|
||||
Named AmneziaWG client profiles\. Only one global profile can be active\.
|
||||
|
||||
*Type:*
|
||||
attribute set of (submodule)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
{ }
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-allowconfighooks"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.allowConfigHooks
|
||||
|
||||
Allow trusted imported configs to execute wg-quick hooks or use SaveConfig\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-autostart"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.autostart
|
||||
|
||||
Whether to start this profile at boot\. At most one profile may autostart\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-configfile"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.configFile
|
||||
|
||||
Runtime path to an AmneziaWG \.conf file\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-interfacename"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.interfaceName
|
||||
|
||||
Linux interface name\. It must fit Linux’s 15-character limit\.
|
||||
|
||||
*Type:*
|
||||
string matching the pattern ^\[A-Za-z0-9_\.-]{1,15}$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"awg-‹name›"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings
|
||||
|
||||
Typed declarative AmneziaWG client configuration\.
|
||||
|
||||
*Type:*
|
||||
null or (submodule)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-addresses"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.addresses
|
||||
|
||||
IP prefixes assigned to the AWG interface\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"10.8.0.2/32"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-dns"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.dns
|
||||
|
||||
DNS servers installed while this profile is active\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-listenport"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.listenPort
|
||||
|
||||
Optional local UDP listen port\.
|
||||
|
||||
*Type:*
|
||||
null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-mtu"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.mtu
|
||||
|
||||
Optional interface MTU\.
|
||||
|
||||
*Type:*
|
||||
null or (unsigned integer, meaning >=0)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation
|
||||
|
||||
AmneziaWG 1\.x through 3\.x obfuscation parameters\.
|
||||
|
||||
*Type:*
|
||||
submodule
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
{ }
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-contentpaddingaddition"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.contentPaddingAddition
|
||||
|
||||
AWG 3 content-padding addition or range\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-disablecookies"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.disableCookies
|
||||
|
||||
AWG 3 cookie suppression (DisableCookies)\.
|
||||
|
||||
*Type:*
|
||||
null or boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h1"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.h1
|
||||
|
||||
Handshake-init header or range (H1)\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h2"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.h2
|
||||
|
||||
Handshake-response header or range (H2)\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h3"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.h3
|
||||
|
||||
Cookie-reply header or range (H3)\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-h4"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.h4
|
||||
|
||||
Transport-message header or range (H4)\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-headerprotectionkey"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.headerProtectionKey
|
||||
|
||||
Inline AWG 3 header-protection key\. Prefer headerProtectionKeyFile\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-headerprotectionkeyfile"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.headerProtectionKeyFile
|
||||
|
||||
Runtime path containing the AWG 3 header-protection key\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i1"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.i1
|
||||
|
||||
First custom signature packet (I1)\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i2"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.i2
|
||||
|
||||
Second custom signature packet (I2)\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i3"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.i3
|
||||
|
||||
Third custom signature packet (I3)\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i4"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.i4
|
||||
|
||||
Fourth custom signature packet (I4)\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-i5"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.i5
|
||||
|
||||
Fifth custom signature packet (I5)\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-jc"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.jc
|
||||
|
||||
Junk packet count (Jc)\.
|
||||
|
||||
*Type:*
|
||||
null or (unsigned integer, meaning >=0)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-jmax"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.jmax
|
||||
|
||||
Maximum junk packet size (Jmax)\.
|
||||
|
||||
*Type:*
|
||||
null or (unsigned integer, meaning >=0)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-jmin"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.jmin
|
||||
|
||||
Minimum junk packet size (Jmin)\.
|
||||
|
||||
*Type:*
|
||||
null or (unsigned integer, meaning >=0)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-keepalivetimeout"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.keepaliveTimeout
|
||||
|
||||
AWG 3 keepalive timeout or range\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-maxhandshakeattempts"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.maxHandshakeAttempts
|
||||
|
||||
AWG 3 maximum handshake attempts or range\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-randomtrailers"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.randomTrailers
|
||||
|
||||
AWG 3 random transport trailers (RandomTrailers)\.
|
||||
|
||||
*Type:*
|
||||
null or boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-rejectaftertime"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.rejectAfterTime
|
||||
|
||||
AWG 3 reject-after interval or range\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-rekeyaftertime"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.rekeyAfterTime
|
||||
|
||||
AWG 3 rekey interval or range\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-rekeytimeout"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.rekeyTimeout
|
||||
|
||||
AWG 3 rekey timeout or range\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s1"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.s1
|
||||
|
||||
Handshake-init padding (S1)\.
|
||||
|
||||
*Type:*
|
||||
null or (unsigned integer, meaning >=0)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s2"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.s2
|
||||
|
||||
Handshake-response padding (S2)\.
|
||||
|
||||
*Type:*
|
||||
null or (unsigned integer, meaning >=0)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s3"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.s3
|
||||
|
||||
Cookie-reply padding (S3)\.
|
||||
|
||||
*Type:*
|
||||
null or (unsigned integer, meaning >=0)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscation-s4"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscation\.s4
|
||||
|
||||
Transport-message padding (S4)\.
|
||||
|
||||
*Type:*
|
||||
null or (unsigned integer, meaning >=0)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-obfuscationfile"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.obfuscationFile
|
||||
|
||||
Runtime path to a partial JSON object using the same field names and
|
||||
value types as obfuscation, excluding headerProtectionKeyFile\.
|
||||
Values are combined with public obfuscation settings at service startup
|
||||
without putting the file contents in the Nix store\. Omitted or null
|
||||
fields are unset; duplicate JSON keys and fields set in both sources
|
||||
are rejected\. A file-provided headerProtectionKey also conflicts with
|
||||
obfuscation\.headerProtectionKeyFile\. Private and preshared keys use
|
||||
their existing file options\. Restart the profile after secret rotation\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"/run/secrets/awg-obfuscation.json"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-peers"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.peers
|
||||
|
||||
AmneziaWG peers\.
|
||||
|
||||
*Type:*
|
||||
list of (submodule)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-peers-advancedsecurity"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.peers\.\*\.advancedSecurity
|
||||
|
||||
Optional AWG peer AdvancedSecurity setting\.
|
||||
|
||||
*Type:*
|
||||
null or boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-peers-allowedips"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.peers\.\*\.allowedIPs
|
||||
|
||||
IP prefixes routed to and accepted from this peer\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"0.0.0.0/0"
|
||||
"::/0"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-peers-endpoint"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.peers\.\*\.endpoint
|
||||
|
||||
Optional peer endpoint in host:port form\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"vpn.example.com:51820"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-peers-persistentkeepalive"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.peers\.\*\.persistentKeepalive
|
||||
|
||||
Persistent keepalive seconds, optionally expressed as an AWG 3 range\.
|
||||
|
||||
*Type:*
|
||||
null or unsigned integer, meaning >=0, or string matching the pattern ^(\[0-9]+|\[0-9]±\[0-9]+|\\(off\\))$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-peers-presharedkey"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.peers\.\*\.presharedKey
|
||||
|
||||
Inline peer preshared key\. Prefer presharedKeyFile for secrets\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-peers-presharedkeyfile"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.peers\.\*\.presharedKeyFile
|
||||
|
||||
Runtime path containing the peer preshared key\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-peers-publickey"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.peers\.\*\.publicKey
|
||||
|
||||
AmneziaWG peer public key\.
|
||||
|
||||
*Type:*
|
||||
string matching the pattern \[^\[:space:]]+
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-privatekey"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.privateKey
|
||||
|
||||
Inline client private key\. Prefer privateKeyFile\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-privatekeyfile"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.privateKeyFile
|
||||
|
||||
Runtime path containing the client private key\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-settings-table"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.settings\.table
|
||||
|
||||
wg-quick routing table name/number, auto, or off\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-vpn"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.vpn
|
||||
|
||||
Inline self-contained vpn:// export\. This value is stored in the Nix store\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-vpncontainer"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.vpnContainer
|
||||
|
||||
AWG container/protocol identifier to select when a vpn:// bundle is ambiguous\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-profiles-name-vpnfile"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.profiles\.\<name>\.vpnFile
|
||||
|
||||
Runtime path containing a self-contained vpn:// export\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-toolspackage"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.toolsPackage
|
||||
|
||||
AWG 3\.1 package providing awg and awg-quick\.
|
||||
|
||||
*Type:*
|
||||
package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
<derivation amneziawg-tools-3.1.20260812>
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-amneziawg-userspacepackage"></a>
|
||||
## services\.proxy-suite\.amneziaWg\.userspacePackage
|
||||
|
||||
AWG 3\.1 userspace implementation used when the kernel interface is unavailable\.
|
||||
|
||||
*Type:*
|
||||
package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
<derivation amneziawg-go-3.1.20260828>
|
||||
```
|
||||
@@ -0,0 +1,55 @@
|
||||
# services.proxy-suite.geodata
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
|
||||
- geodata
|
||||
- singBox
|
||||
- [geoip](#services-proxy-suite-geodata-singbox-geoip)
|
||||
- [geosite](#services-proxy-suite-geodata-singbox-geosite)
|
||||
- xray
|
||||
- [assets](#services-proxy-suite-geodata-xray-assets)
|
||||
|
||||
<a id="services-proxy-suite-geodata-singbox-geoip"></a>
|
||||
## services\.proxy-suite\.geodata\.singBox\.geoip
|
||||
|
||||
Package with share/sing-box/rule-set/geoip-NAME\.srs (country codes by default)\.
|
||||
|
||||
*Type:*
|
||||
package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
pkgs.sing-geoip
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-geodata-singbox-geosite"></a>
|
||||
## services\.proxy-suite\.geodata\.singBox\.geosite
|
||||
|
||||
Package with share/sing-box/rule-set/geosite-NAME\.srs\.
|
||||
|
||||
*Type:*
|
||||
package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
pkgs.sing-geosite
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-geodata-xray-assets"></a>
|
||||
## services\.proxy-suite\.geodata\.xray\.assets
|
||||
|
||||
Package with share/v2ray/{geoip,geosite}\.dat for every XRay process\. Null uses XRay’s own
|
||||
country-only data, where a tag like “geoip:telegram” stops XRay from starting\.
|
||||
|
||||
*Type:*
|
||||
null or package
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
pkgs.v2ray-rules-dat
|
||||
```
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,353 @@
|
||||
# proxy-suite options
|
||||
|
||||
Generated from the `services.proxy-suite` option descriptions under
|
||||
[`modules/proxy-suite/options/`](/modules/proxy-suite/options/).
|
||||
Update the module option docs there instead of editing these files by hand.
|
||||
|
||||
## Option groups
|
||||
|
||||
- [amneziaWg](./amneziaWg.md)
|
||||
- [geodata](./geodata.md)
|
||||
- [inbounds](./inbounds.md)
|
||||
- [perAppRouting](./perAppRouting.md)
|
||||
- [proxy](./proxy.md)
|
||||
- [sshProxy](./sshProxy.md)
|
||||
- [tgWsProxy](./tgWsProxy.md)
|
||||
- [tray](./tray.md)
|
||||
- [userControl](./userControl.md)
|
||||
- [zapret](./zapret.md)
|
||||
|
||||
## Complete default config
|
||||
|
||||
```nix
|
||||
services.proxy-suite = {
|
||||
amneziaWg = {
|
||||
enable = false;
|
||||
kernelModulePackage = pkgs.amneziawg;
|
||||
profiles = { };
|
||||
toolsPackage = pkgs.amneziawg-tools;
|
||||
userspacePackage = pkgs.amneziawg-go;
|
||||
};
|
||||
enable = false;
|
||||
geodata = {
|
||||
singBox = {
|
||||
geoip = pkgs.sing-geoip;
|
||||
geosite = pkgs.sing-geosite;
|
||||
};
|
||||
xray = {
|
||||
assets = pkgs.v2ray-rules-dat;
|
||||
};
|
||||
};
|
||||
inbounds = {
|
||||
enable = false;
|
||||
listeners = { };
|
||||
openFirewall = true;
|
||||
package = pkgs.xray;
|
||||
routing = {
|
||||
blockPrivate = true;
|
||||
blockRu = true;
|
||||
proxy = {
|
||||
domains = [ ];
|
||||
geoips = [ ];
|
||||
geosites = [ ];
|
||||
ips = [ ];
|
||||
};
|
||||
via = "proxy";
|
||||
zapretDirect = true;
|
||||
};
|
||||
serverAddress = null;
|
||||
shareLinks = true;
|
||||
subscriptions = {
|
||||
baseUrl = null;
|
||||
enable = false;
|
||||
group = "nginx";
|
||||
};
|
||||
};
|
||||
perAppRouting = {
|
||||
createDefaultProfiles = false;
|
||||
enable = false;
|
||||
profiles = [ ];
|
||||
proxychains = {
|
||||
enable = false;
|
||||
proxyDns = true;
|
||||
quiet = true;
|
||||
};
|
||||
tproxy = {
|
||||
enable = false;
|
||||
fwmark = 17;
|
||||
localSubnets = [
|
||||
"192.168.0.0/16"
|
||||
];
|
||||
routeTable = 102;
|
||||
};
|
||||
tun = {
|
||||
address = "172.20.0.1/30";
|
||||
enable = false;
|
||||
fwmark = 16;
|
||||
interface = "psperapptun0";
|
||||
localSubnets = [
|
||||
"192.168.0.0/16"
|
||||
];
|
||||
mtu = 1400;
|
||||
routeTable = 101;
|
||||
};
|
||||
zapret = {
|
||||
enable = false;
|
||||
filterMark = 268435456;
|
||||
qnum = 201;
|
||||
};
|
||||
};
|
||||
proxy = {
|
||||
auth = { };
|
||||
autoProxy = {
|
||||
enable = false;
|
||||
exclude = [ ];
|
||||
interval = "10m";
|
||||
maxExits = 12;
|
||||
probeBasePort = 18540;
|
||||
probesPerRun = 200;
|
||||
slowBelowKiBps = 150;
|
||||
ttlDays = 30;
|
||||
};
|
||||
autostart = null;
|
||||
backend = "sing-box";
|
||||
dns = {
|
||||
local = {
|
||||
address = "1.1.1.1";
|
||||
port = 53;
|
||||
type = "udp";
|
||||
};
|
||||
remote = {
|
||||
address = "1.1.1.1";
|
||||
port = 53;
|
||||
type = "udp";
|
||||
};
|
||||
};
|
||||
enable = false;
|
||||
listener = {
|
||||
address = "127.0.0.1";
|
||||
auth = {
|
||||
password = null;
|
||||
passwordFile = null;
|
||||
username = null;
|
||||
};
|
||||
port = 1080;
|
||||
};
|
||||
outbounds = [ ];
|
||||
routing = {
|
||||
block = {
|
||||
domains = [ ];
|
||||
geoips = [ ];
|
||||
geosites = [ ];
|
||||
ips = [ ];
|
||||
};
|
||||
default = "proxy";
|
||||
direct = {
|
||||
domains = [ ];
|
||||
geoips = [ ];
|
||||
geosites = [ ];
|
||||
ips = [ ];
|
||||
};
|
||||
directRu = true;
|
||||
proxy = {
|
||||
domains = [ ];
|
||||
geoips = [ ];
|
||||
geosites = [ ];
|
||||
ips = [ ];
|
||||
};
|
||||
rules = [ ];
|
||||
};
|
||||
selection = "first";
|
||||
singBox = {
|
||||
clashApiPort = 9090;
|
||||
package = pkgs.sing-box;
|
||||
urlTest = { };
|
||||
};
|
||||
subscriptionUpdateInterval = "1d";
|
||||
subscriptions = [ ];
|
||||
tproxy = {
|
||||
enable = false;
|
||||
fwmark = 1;
|
||||
localSubnets = [
|
||||
"192.168.0.0/16"
|
||||
];
|
||||
port = 1085;
|
||||
proxyMark = 2;
|
||||
routeTable = 100;
|
||||
};
|
||||
tun = {
|
||||
address = "172.19.0.1/30";
|
||||
enable = false;
|
||||
interface = "singtun0";
|
||||
mtu = 1400;
|
||||
};
|
||||
urlTest = {
|
||||
interval = "3m";
|
||||
tolerance = 50;
|
||||
url = "https://www.gstatic.com/generate_204";
|
||||
};
|
||||
xray = {
|
||||
package = pkgs.xray;
|
||||
};
|
||||
};
|
||||
sshProxy = {
|
||||
asOutbound = false;
|
||||
domainStrategy = null;
|
||||
enable = false;
|
||||
extraArgs = [ ];
|
||||
hostKey = [ ];
|
||||
hostKeyFile = null;
|
||||
identityFile = null;
|
||||
knownHostsFile = null;
|
||||
listener = {
|
||||
address = "127.0.0.1";
|
||||
port = 1091;
|
||||
};
|
||||
server = {
|
||||
host = null;
|
||||
port = 22;
|
||||
user = null;
|
||||
};
|
||||
serviceUser = null;
|
||||
strictHostKeyChecking = "accept-new";
|
||||
};
|
||||
tgWsProxy = {
|
||||
bufferKiB = 256;
|
||||
bypassTransparentProxy = true;
|
||||
cloudflare = {
|
||||
domains = [ ];
|
||||
fallback = true;
|
||||
workerDomains = [ ];
|
||||
};
|
||||
dcIps = { };
|
||||
enable = false;
|
||||
fakeTlsDomain = null;
|
||||
fwmark = 4;
|
||||
listener = {
|
||||
address = "127.0.0.1";
|
||||
port = 1443;
|
||||
};
|
||||
log = {
|
||||
file = null;
|
||||
keep = 1;
|
||||
maxSizeMiB = 5.0;
|
||||
verbose = false;
|
||||
};
|
||||
poolSize = 4;
|
||||
proxyProtocol = false;
|
||||
secret = null;
|
||||
secretFile = null;
|
||||
};
|
||||
tray = {
|
||||
autostart = true;
|
||||
enable = false;
|
||||
pollInterval = 5;
|
||||
};
|
||||
userControl = {
|
||||
allow = [
|
||||
"global"
|
||||
"perApp"
|
||||
];
|
||||
global = { };
|
||||
group = "proxy-suite";
|
||||
perApp = { };
|
||||
};
|
||||
zapret = {
|
||||
cidrExemption = {
|
||||
cidrs = [ ];
|
||||
enable = false;
|
||||
};
|
||||
directSync = {
|
||||
enable = true;
|
||||
upstreamIps = false;
|
||||
userIps = true;
|
||||
};
|
||||
enable = false;
|
||||
engine = "zapret-discord-youtube";
|
||||
zapret-discord-youtube = {
|
||||
configName = "general(ALT)";
|
||||
domains = [ ];
|
||||
excludeDomains = [ ];
|
||||
excludeIps = [ ];
|
||||
gameFilter = "null";
|
||||
hostlistRules = [ ];
|
||||
includeExtraUpstreamLists = false;
|
||||
ips = [ ];
|
||||
};
|
||||
zapret2 = {
|
||||
autoHostlist = {
|
||||
debugLog = false;
|
||||
enable = true;
|
||||
failThreshold = 3;
|
||||
failTime = 300;
|
||||
incomingMaxseq = 4096;
|
||||
retransMaxseq = 32768;
|
||||
retransReset = true;
|
||||
retransThreshold = 3;
|
||||
udpIn = 1;
|
||||
udpOut = 4;
|
||||
};
|
||||
blobs = {
|
||||
quic_initial = "quic_initial_www_google_com.bin";
|
||||
tls_clienthello = "tls_clienthello_www_google_com.bin";
|
||||
};
|
||||
domains = [ ];
|
||||
excludeDomains = [ ];
|
||||
ipv6 = false;
|
||||
ports = {
|
||||
tcp = "80,443,1984,2053,2083,2087,2096,5222,8443";
|
||||
udp = "443,590-600,1400,3478-3481,5349,19294-19344,49152-65535";
|
||||
};
|
||||
profiles = [
|
||||
''
|
||||
--filter-tcp=443,80,1984,5222 --filter-l7=http,tls,mtproto <HOSTLIST>
|
||||
--payload=tls_client_hello,mtproto_initial
|
||||
--lua-desync=circular:fails=2:time=300:retrans=3:nld=2
|
||||
--lua-desync=fake:blob=tls_clienthello:tls_mod=rnd,dupsid,sni=fonts.google.com:tcp_seq=10000:strategy=1
|
||||
--lua-desync=multisplit:pos=1,midsld:seqovl=1:seqovl_pattern=tls_clienthello:tcp_ts_up:strategy=1
|
||||
--lua-desync=fake:blob=0x00000000:tcp_ack=-66000:tls_mod=rnd,dupsid,sni=www.google.com:repeats=2:strategy=2
|
||||
--lua-desync=multisplit:pos=1,midsld:strategy=2
|
||||
--lua-desync=hostfakesplit:host=ozon.ru:midhost=host-2:seqovl=sniext+3:seqovl_pattern=tls_clienthello:badsum:tcp_md5:tcp_ts_up:strategy=3
|
||||
--lua-desync=hostfakesplit:tcp_md5:tcp_ts_up:strategy=3
|
||||
--payload=http_req
|
||||
--lua-desync=http_methodeol:badsum
|
||||
''
|
||||
''
|
||||
--filter-udp=443 --filter-l7=quic <HOSTLIST_NOAUTO>
|
||||
--payload=quic_initial
|
||||
--lua-desync=fake:blob=quic_initial:repeats=11
|
||||
''
|
||||
''
|
||||
--filter-udp=590-600,1400,3478-3481,5349,19294-19344,49152-65535
|
||||
--filter-l7=wireguard,stun,discord,mtproto,unknown
|
||||
--out-range=<n2
|
||||
--payload=wireguard_initiation,wireguard_response,wireguard_cookie,stun,discord_ip_discovery,mtproto_initial,unknown
|
||||
--lua-desync=circular:fails=2:time=300:retrans=3:nld=2
|
||||
--lua-desync=fake:repeats=6:strategy=1
|
||||
--lua-desync=fake:blob=quic_initial:repeats=6:strategy=2
|
||||
''
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-enable"></a>
|
||||
## services\.proxy-suite\.enable
|
||||
|
||||
Whether to enable proxy-suite\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
@@ -0,0 +1,407 @@
|
||||
# services.proxy-suite.perAppRouting
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
|
||||
- perAppRouting
|
||||
- [enable](#services-proxy-suite-perapprouting-enable)
|
||||
- [createDefaultProfiles](#services-proxy-suite-perapprouting-createdefaultprofiles)
|
||||
- [profiles](#services-proxy-suite-perapprouting-profiles)
|
||||
- item
|
||||
- [name](#services-proxy-suite-perapprouting-profiles-name)
|
||||
- [route](#services-proxy-suite-perapprouting-profiles-route)
|
||||
- proxychains
|
||||
- [enable](#services-proxy-suite-perapprouting-proxychains-enable)
|
||||
- [proxyDns](#services-proxy-suite-perapprouting-proxychains-proxydns)
|
||||
- [quiet](#services-proxy-suite-perapprouting-proxychains-quiet)
|
||||
- tproxy
|
||||
- [enable](#services-proxy-suite-perapprouting-tproxy-enable)
|
||||
- [fwmark](#services-proxy-suite-perapprouting-tproxy-fwmark)
|
||||
- [localSubnets](#services-proxy-suite-perapprouting-tproxy-localsubnets)
|
||||
- [routeTable](#services-proxy-suite-perapprouting-tproxy-routetable)
|
||||
- tun
|
||||
- [enable](#services-proxy-suite-perapprouting-tun-enable)
|
||||
- [address](#services-proxy-suite-perapprouting-tun-address)
|
||||
- [fwmark](#services-proxy-suite-perapprouting-tun-fwmark)
|
||||
- [interface](#services-proxy-suite-perapprouting-tun-interface)
|
||||
- [localSubnets](#services-proxy-suite-perapprouting-tun-localsubnets)
|
||||
- [mtu](#services-proxy-suite-perapprouting-tun-mtu)
|
||||
- [routeTable](#services-proxy-suite-perapprouting-tun-routetable)
|
||||
- zapret
|
||||
- [enable](#services-proxy-suite-perapprouting-zapret-enable)
|
||||
- [filterMark](#services-proxy-suite-perapprouting-zapret-filtermark)
|
||||
- [qnum](#services-proxy-suite-perapprouting-zapret-qnum)
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-enable"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.enable
|
||||
|
||||
Whether to enable per-app routing (` proxy-ctl apps run `)\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-createdefaultprofiles"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.createDefaultProfiles
|
||||
|
||||
Add a profile named after each enabled backend (proxychains, tun, tproxy, zapret) unless
|
||||
one with that name already exists\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-profiles"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.profiles
|
||||
|
||||
Profiles for ` proxy-ctl apps run <name> -- <command> `\.
|
||||
|
||||
*Type:*
|
||||
list of (submodule)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
{
|
||||
name = "steam-browser";
|
||||
route = "proxychains";
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-profiles-name"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.profiles\.\*\.name
|
||||
|
||||
Profile name, unique\.
|
||||
|
||||
*Type:*
|
||||
string matching the pattern ^\[a-z0-9]\[a-z0-9-]\*$
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"steam-browser"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-profiles-route"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.profiles\.\*\.route
|
||||
|
||||
Backend: “direct” (unchanged), “proxychains”, or the per-app “tun”, “tproxy” or “zapret”
|
||||
backend of perAppRouting\.
|
||||
|
||||
*Type:*
|
||||
one of “direct”, “proxychains”, “tun”, “tproxy”, “zapret”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"proxychains"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-proxychains-enable"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.proxychains\.enable
|
||||
|
||||
Whether to enable the proxychains backend (TCP apps, through LD_PRELOAD)\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-proxychains-proxydns"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.proxychains\.proxyDns
|
||||
|
||||
Resolve DNS through the proxy (proxy_dns)\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-proxychains-quiet"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.proxychains\.quiet
|
||||
|
||||
Silence proxychains (quiet_mode)\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tproxy-enable"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tproxy\.enable
|
||||
|
||||
Whether to enable the per-app TProxy backend\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tproxy-fwmark"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tproxy\.fwmark
|
||||
|
||||
Mark that steers wrapped apps into routeTable\.
|
||||
|
||||
*Type:*
|
||||
signed integer
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
17
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tproxy-localsubnets"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tproxy\.localSubnets
|
||||
|
||||
Subnets that bypass interception (DNS excepted)\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"192.168.0.0/16"
|
||||
]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"192.168.0.0/16"
|
||||
"10.0.0.0/8"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tproxy-routetable"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tproxy\.routeTable
|
||||
|
||||
Policy-routing table of the per-app TProxy\.
|
||||
|
||||
*Type:*
|
||||
signed integer
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
102
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tun-enable"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tun\.enable
|
||||
|
||||
Whether to enable the per-app TUN backend\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tun-address"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tun\.address
|
||||
|
||||
Per-app TUN interface address (CIDR)\.
|
||||
|
||||
*Type:*
|
||||
string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"172.20.0.1/30"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tun-fwmark"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tun\.fwmark
|
||||
|
||||
Mark that steers wrapped apps into routeTable\.
|
||||
|
||||
*Type:*
|
||||
signed integer
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
16
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tun-interface"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tun\.interface
|
||||
|
||||
Per-app TUN interface name\.
|
||||
|
||||
*Type:*
|
||||
string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"psperapptun0"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tun-localsubnets"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tun\.localSubnets
|
||||
|
||||
Subnets wrapped apps reach directly\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"192.168.0.0/16"
|
||||
]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"192.168.0.0/16"
|
||||
"10.0.0.0/8"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tun-mtu"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tun\.mtu
|
||||
|
||||
Per-app TUN interface MTU\.
|
||||
|
||||
*Type:*
|
||||
signed integer
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
1400
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-tun-routetable"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.tun\.routeTable
|
||||
|
||||
Policy-routing table of the per-app TUN\.
|
||||
|
||||
*Type:*
|
||||
signed integer
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
101
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-zapret-enable"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.zapret\.enable
|
||||
|
||||
Whether to enable the per-app zapret backend: a second zapret instance for wrapped apps only\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-zapret-filtermark"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.zapret\.filterMark
|
||||
|
||||
Mark bit that selects wrapped app traffic\.
|
||||
|
||||
*Type:*
|
||||
signed integer
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
268435456
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-perapprouting-zapret-qnum"></a>
|
||||
## services\.proxy-suite\.perAppRouting\.zapret\.qnum
|
||||
|
||||
NFQUEUE number\. Must differ from the global instance’s\.
|
||||
|
||||
*Type:*
|
||||
signed integer
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
201
|
||||
```
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,307 @@
|
||||
# services.proxy-suite.sshProxy
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
|
||||
- sshProxy
|
||||
- [enable](#services-proxy-suite-sshproxy-enable)
|
||||
- [asOutbound](#services-proxy-suite-sshproxy-asoutbound)
|
||||
- [domainStrategy](#services-proxy-suite-sshproxy-domainstrategy)
|
||||
- [extraArgs](#services-proxy-suite-sshproxy-extraargs)
|
||||
- [hostKey](#services-proxy-suite-sshproxy-hostkey)
|
||||
- [hostKeyFile](#services-proxy-suite-sshproxy-hostkeyfile)
|
||||
- [identityFile](#services-proxy-suite-sshproxy-identityfile)
|
||||
- [knownHostsFile](#services-proxy-suite-sshproxy-knownhostsfile)
|
||||
- listener
|
||||
- [address](#services-proxy-suite-sshproxy-listener-address)
|
||||
- [port](#services-proxy-suite-sshproxy-listener-port)
|
||||
- server
|
||||
- [host](#services-proxy-suite-sshproxy-server-host)
|
||||
- [port](#services-proxy-suite-sshproxy-server-port)
|
||||
- [user](#services-proxy-suite-sshproxy-server-user)
|
||||
- [serviceUser](#services-proxy-suite-sshproxy-serviceuser)
|
||||
- [strictHostKeyChecking](#services-proxy-suite-sshproxy-stricthostkeychecking)
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-enable"></a>
|
||||
## services\.proxy-suite\.sshProxy\.enable
|
||||
|
||||
Whether to enable an SSH dynamic SOCKS5 tunnel\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-asoutbound"></a>
|
||||
## services\.proxy-suite\.sshProxy\.asOutbound
|
||||
|
||||
Add the tunnel as an outbound tagged “ssh-proxy”\. sing-box dials SSH itself; XRay goes
|
||||
through the OpenSSH unit’s SOCKS listener\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-domainstrategy"></a>
|
||||
## services\.proxy-suite\.sshProxy\.domainStrategy
|
||||
|
||||
Resolve destinations locally before the tunnel (XRay only)\. Can break geo-steered CDNs\.
|
||||
|
||||
*Type:*
|
||||
null or one of “prefer_ipv4”, “prefer_ipv6”, “ipv4_only”, “ipv6_only”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"prefer_ipv4"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-extraargs"></a>
|
||||
## services\.proxy-suite\.sshProxy\.extraArgs
|
||||
|
||||
Extra OpenSSH arguments\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"-J"
|
||||
"jump.example.com"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-hostkey"></a>
|
||||
## services\.proxy-suite\.sshProxy\.hostKey
|
||||
|
||||
Accepted host keys (sing-box)\. List every key ` ssh-keyscan ` prints: the algorithm is
|
||||
negotiated\. Empty accepts any key\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI..."
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-hostkeyfile"></a>
|
||||
## services\.proxy-suite\.sshProxy\.hostKeyFile
|
||||
|
||||
Known-hosts file to read hostKey from at runtime (sing-box)\. Wins over hostKey\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"/root/.ssh/known_hosts"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-identityfile"></a>
|
||||
## services\.proxy-suite\.sshProxy\.identityFile
|
||||
|
||||
Runtime path to the private key\. Null uses the agent or OpenSSH defaults\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"/run/secrets/proxy-suite-ssh-key"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-knownhostsfile"></a>
|
||||
## services\.proxy-suite\.sshProxy\.knownHostsFile
|
||||
|
||||
Known-hosts file for OpenSSH\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"/run/secrets/proxy-suite-ssh-known-hosts"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-listener-address"></a>
|
||||
## services\.proxy-suite\.sshProxy\.listener\.address
|
||||
|
||||
Address of the OpenSSH SOCKS5 listener\.
|
||||
|
||||
*Type:*
|
||||
string matching the pattern \[^\[:space:]]+
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"127.0.0.1"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-listener-port"></a>
|
||||
## services\.proxy-suite\.sshProxy\.listener\.port
|
||||
|
||||
Port of the OpenSSH SOCKS5 listener\.
|
||||
|
||||
*Type:*
|
||||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
1091
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-server-host"></a>
|
||||
## services\.proxy-suite\.sshProxy\.server\.host
|
||||
|
||||
SSH server\.
|
||||
|
||||
*Type:*
|
||||
null or string matching the pattern \[^\[:space:]]+
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"ssh.example.com"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-server-port"></a>
|
||||
## services\.proxy-suite\.sshProxy\.server\.port
|
||||
|
||||
SSH server port\.
|
||||
|
||||
*Type:*
|
||||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
22
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-server-user"></a>
|
||||
## services\.proxy-suite\.sshProxy\.server\.user
|
||||
|
||||
SSH login user\.
|
||||
|
||||
*Type:*
|
||||
null or string matching the pattern \[^\[:space:]]+
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"root"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-serviceuser"></a>
|
||||
## services\.proxy-suite\.sshProxy\.serviceUser
|
||||
|
||||
Unix user running the OpenSSH unit\.
|
||||
|
||||
*Type:*
|
||||
null or string matching the pattern \[^\[:space:]]+
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"proxy"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-sshproxy-stricthostkeychecking"></a>
|
||||
## services\.proxy-suite\.sshProxy\.strictHostKeyChecking
|
||||
|
||||
OpenSSH host key policy\.
|
||||
|
||||
*Type:*
|
||||
one of “yes”, “accept-new”, “no”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"accept-new"
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"yes"
|
||||
```
|
||||
@@ -0,0 +1,349 @@
|
||||
# services.proxy-suite.tgWsProxy
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
|
||||
- tgWsProxy
|
||||
- [enable](#services-proxy-suite-tgwsproxy-enable)
|
||||
- [bufferKiB](#services-proxy-suite-tgwsproxy-bufferkib)
|
||||
- [bypassTransparentProxy](#services-proxy-suite-tgwsproxy-bypasstransparentproxy)
|
||||
- cloudflare
|
||||
- [domains](#services-proxy-suite-tgwsproxy-cloudflare-domains)
|
||||
- [fallback](#services-proxy-suite-tgwsproxy-cloudflare-fallback)
|
||||
- [workerDomains](#services-proxy-suite-tgwsproxy-cloudflare-workerdomains)
|
||||
- [dcIps](#services-proxy-suite-tgwsproxy-dcips)
|
||||
- [fakeTlsDomain](#services-proxy-suite-tgwsproxy-faketlsdomain)
|
||||
- [fwmark](#services-proxy-suite-tgwsproxy-fwmark)
|
||||
- listener
|
||||
- [address](#services-proxy-suite-tgwsproxy-listener-address)
|
||||
- [port](#services-proxy-suite-tgwsproxy-listener-port)
|
||||
- log
|
||||
- [file](#services-proxy-suite-tgwsproxy-log-file)
|
||||
- [keep](#services-proxy-suite-tgwsproxy-log-keep)
|
||||
- [maxSizeMiB](#services-proxy-suite-tgwsproxy-log-maxsizemib)
|
||||
- [verbose](#services-proxy-suite-tgwsproxy-log-verbose)
|
||||
- [poolSize](#services-proxy-suite-tgwsproxy-poolsize)
|
||||
- [proxyProtocol](#services-proxy-suite-tgwsproxy-proxyprotocol)
|
||||
- [secret](#services-proxy-suite-tgwsproxy-secret)
|
||||
- [secretFile](#services-proxy-suite-tgwsproxy-secretfile)
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-enable"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.enable
|
||||
|
||||
Whether to enable the Telegram MTProto WebSocket proxy\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-bufferkib"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.bufferKiB
|
||||
|
||||
Socket buffer size, in KiB\.
|
||||
|
||||
*Type:*
|
||||
integer between 4 and 2147483647 (both inclusive)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
256
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-bypasstransparentproxy"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.bypassTransparentProxy
|
||||
|
||||
Keep the relay’s own connections out of TUN/TProxy, which would otherwise loop them\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-cloudflare-domains"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.cloudflare\.domains
|
||||
|
||||
Cloudflare-proxied domains for WebSocket fallback\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"cdn.example.com"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-cloudflare-fallback"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.cloudflare\.fallback
|
||||
|
||||
Fall back to Cloudflare when direct WebSocket fails\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-cloudflare-workerdomains"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.cloudflare\.workerDomains
|
||||
|
||||
Cloudflare Worker domains, tried first\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"worker.example.com"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-dcips"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.dcIps
|
||||
|
||||
Relay IP per Telegram DC ID\.
|
||||
|
||||
*Type:*
|
||||
attribute set of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
{ }
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
{
|
||||
"2" = "149.154.167.220";
|
||||
}
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-faketlsdomain"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.fakeTlsDomain
|
||||
|
||||
SNI for Fake TLS masking (ee-secret links)\.
|
||||
|
||||
*Type:*
|
||||
null or string matching the pattern \.+
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"www.example.com"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-fwmark"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.fwmark
|
||||
|
||||
Packet mark bypassTransparentProxy uses\.
|
||||
|
||||
*Type:*
|
||||
signed integer
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
4
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-listener-address"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.listener\.address
|
||||
|
||||
Bind address\.
|
||||
|
||||
*Type:*
|
||||
string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"127.0.0.1"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-listener-port"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.listener\.port
|
||||
|
||||
Listen port\.
|
||||
|
||||
*Type:*
|
||||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
1443
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-log-file"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.log\.file
|
||||
|
||||
Rotating log file\. Null logs to stderr\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"/var/log/tg-ws-proxy.log"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-log-keep"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.log\.keep
|
||||
|
||||
Rotated logs kept\.
|
||||
|
||||
*Type:*
|
||||
positive integer, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
1
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-log-maxsizemib"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.log\.maxSizeMiB
|
||||
|
||||
Log size before rotation, in MiB\.
|
||||
|
||||
*Type:*
|
||||
positive integer or floating point number, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
5.0
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-log-verbose"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.log\.verbose
|
||||
|
||||
Debug logging\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-poolsize"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.poolSize
|
||||
|
||||
WebSocket pool size per DC; 0 disables pooling\.
|
||||
|
||||
*Type:*
|
||||
unsigned integer, meaning >=0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
4
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-proxyprotocol"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.proxyProtocol
|
||||
|
||||
Accept a PROXY protocol v1 header from a fronting reverse proxy\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-secret"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.secret
|
||||
|
||||
Inline MTProto secret (` openssl rand -hex 16 `)\. Ends up in the Nix store; prefer secretFile\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tgwsproxy-secretfile"></a>
|
||||
## services\.proxy-suite\.tgWsProxy\.secretFile
|
||||
|
||||
Runtime path to the MTProto secret\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"/run/secrets/tg-ws-proxy-secret"
|
||||
```
|
||||
@@ -0,0 +1,58 @@
|
||||
# services.proxy-suite.tray
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
|
||||
- tray
|
||||
- [enable](#services-proxy-suite-tray-enable)
|
||||
- [autostart](#services-proxy-suite-tray-autostart)
|
||||
- [pollInterval](#services-proxy-suite-tray-pollinterval)
|
||||
|
||||
<a id="services-proxy-suite-tray-enable"></a>
|
||||
## services\.proxy-suite\.tray\.enable
|
||||
|
||||
Whether to enable the system tray indicator\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tray-autostart"></a>
|
||||
## services\.proxy-suite\.tray\.autostart
|
||||
|
||||
Start the tray in graphical sessions (XDG autostart)\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-tray-pollinterval"></a>
|
||||
## services\.proxy-suite\.tray\.pollInterval
|
||||
|
||||
Status refresh interval, in seconds\.
|
||||
|
||||
*Type:*
|
||||
positive integer, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
5
|
||||
```
|
||||
@@ -0,0 +1,52 @@
|
||||
# services.proxy-suite.userControl
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
|
||||
- userControl
|
||||
- [allow](#services-proxy-suite-usercontrol-allow)
|
||||
- [group](#services-proxy-suite-usercontrol-group)
|
||||
|
||||
<a id="services-proxy-suite-usercontrol-allow"></a>
|
||||
## services\.proxy-suite\.userControl\.allow
|
||||
|
||||
What userControl\.group may control without a password:
|
||||
|
||||
- “global”: the global units (proxy, tun, tproxy, zapret, restart, subs update)\.
|
||||
- “perApp”: the per-app backend units used by ` proxy-ctl apps run `\.
|
||||
Empty grants no passwordless control\.
|
||||
|
||||
*Type:*
|
||||
list of (one of “global”, “perApp”)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"global"
|
||||
"perApp"
|
||||
]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"global"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-usercontrol-group"></a>
|
||||
## services\.proxy-suite\.userControl\.group
|
||||
|
||||
Group whose members may run privileged ` proxy-ctl ` commands without a password\.
|
||||
|
||||
*Type:*
|
||||
string matching the pattern ^\[a-z_]\[a-z0-9_-]\*$
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"proxy-suite"
|
||||
```
|
||||
@@ -0,0 +1,848 @@
|
||||
# services.proxy-suite.zapret
|
||||
|
||||
Part of the [proxy-suite options reference](./index.md).
|
||||
|
||||
## Options
|
||||
|
||||
- zapret
|
||||
- [enable](#services-proxy-suite-zapret-enable)
|
||||
- cidrExemption
|
||||
- [enable](#services-proxy-suite-zapret-cidrexemption-enable)
|
||||
- [cidrs](#services-proxy-suite-zapret-cidrexemption-cidrs)
|
||||
- directSync
|
||||
- [enable](#services-proxy-suite-zapret-directsync-enable)
|
||||
- [upstreamIps](#services-proxy-suite-zapret-directsync-upstreamips)
|
||||
- [userIps](#services-proxy-suite-zapret-directsync-userips)
|
||||
- [engine](#services-proxy-suite-zapret-engine)
|
||||
- zapret-discord-youtube
|
||||
- [configName](#services-proxy-suite-zapret-zapret-discord-youtube-configname)
|
||||
- [domains](#services-proxy-suite-zapret-zapret-discord-youtube-domains)
|
||||
- [excludeDomains](#services-proxy-suite-zapret-zapret-discord-youtube-excludedomains)
|
||||
- [excludeIps](#services-proxy-suite-zapret-zapret-discord-youtube-excludeips)
|
||||
- [gameFilter](#services-proxy-suite-zapret-zapret-discord-youtube-gamefilter)
|
||||
- [hostlistRules](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules)
|
||||
- item
|
||||
- [enableDirectSync](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-enabledirectsync)
|
||||
- [configName](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-configname)
|
||||
- [defaultDomains](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-defaultdomains)
|
||||
- [defaultIps](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-defaultips)
|
||||
- [domains](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-domains)
|
||||
- [ips](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-ips)
|
||||
- [name](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-name)
|
||||
- [nfqwsArgs](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-nfqwsargs)
|
||||
- [preset](#services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-preset)
|
||||
- [includeExtraUpstreamLists](#services-proxy-suite-zapret-zapret-discord-youtube-includeextraupstreamlists)
|
||||
- [ips](#services-proxy-suite-zapret-zapret-discord-youtube-ips)
|
||||
- zapret2
|
||||
- autoHostlist
|
||||
- [enable](#services-proxy-suite-zapret-zapret2-autohostlist-enable)
|
||||
- [debugLog](#services-proxy-suite-zapret-zapret2-autohostlist-debuglog)
|
||||
- [failThreshold](#services-proxy-suite-zapret-zapret2-autohostlist-failthreshold)
|
||||
- [failTime](#services-proxy-suite-zapret-zapret2-autohostlist-failtime)
|
||||
- [incomingMaxseq](#services-proxy-suite-zapret-zapret2-autohostlist-incomingmaxseq)
|
||||
- [retransMaxseq](#services-proxy-suite-zapret-zapret2-autohostlist-retransmaxseq)
|
||||
- [retransReset](#services-proxy-suite-zapret-zapret2-autohostlist-retransreset)
|
||||
- [retransThreshold](#services-proxy-suite-zapret-zapret2-autohostlist-retransthreshold)
|
||||
- [udpIn](#services-proxy-suite-zapret-zapret2-autohostlist-udpin)
|
||||
- [udpOut](#services-proxy-suite-zapret-zapret2-autohostlist-udpout)
|
||||
- [blobs](#services-proxy-suite-zapret-zapret2-blobs)
|
||||
- [domains](#services-proxy-suite-zapret-zapret2-domains)
|
||||
- [excludeDomains](#services-proxy-suite-zapret-zapret2-excludedomains)
|
||||
- [ipv6](#services-proxy-suite-zapret-zapret2-ipv6)
|
||||
- ports
|
||||
- [tcp](#services-proxy-suite-zapret-zapret2-ports-tcp)
|
||||
- [udp](#services-proxy-suite-zapret-zapret2-ports-udp)
|
||||
- [profiles](#services-proxy-suite-zapret-zapret2-profiles)
|
||||
|
||||
<a id="services-proxy-suite-zapret-enable"></a>
|
||||
## services\.proxy-suite\.zapret\.enable
|
||||
|
||||
Whether to enable zapret DPI bypass\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-cidrexemption-enable"></a>
|
||||
## services\.proxy-suite\.zapret\.cidrExemption\.enable
|
||||
|
||||
Whether to enable exempting subnets from zapret, e\.g\. NATed VMs whose traffic it would break\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-cidrexemption-cidrs"></a>
|
||||
## services\.proxy-suite\.zapret\.cidrExemption\.cidrs
|
||||
|
||||
Exempted subnets\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"192.168.123.0/24"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-directsync-enable"></a>
|
||||
## services\.proxy-suite\.zapret\.directSync\.enable
|
||||
|
||||
Add zapret’s domain hostlists to proxy\.routing\.direct\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-directsync-upstreamips"></a>
|
||||
## services\.proxy-suite\.zapret\.directSync\.upstreamIps
|
||||
|
||||
Add zapret’s upstream ipsets to proxy\.routing\.direct\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-directsync-userips"></a>
|
||||
## services\.proxy-suite\.zapret\.directSync\.userIps
|
||||
|
||||
Add zapret-discord-youtube\.ips, minus zapret-discord-youtube\.excludeIps, to proxy\.routing\.direct\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-engine"></a>
|
||||
## services\.proxy-suite\.zapret\.engine
|
||||
|
||||
“zapret-discord-youtube”: nfqws with curated presets and static hostlists (zapret\.zapret-discord-youtube)\.
|
||||
“zapret2”: nfqws2, which learns blocked hosts at runtime (zapret\.zapret2)\.
|
||||
|
||||
*Type:*
|
||||
one of “zapret-discord-youtube”, “zapret2”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"zapret-discord-youtube"
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"zapret2"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-configname"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.configName
|
||||
|
||||
Upstream strategy preset\. Names that differ only in whitespace match\.
|
||||
|
||||
*Type:*
|
||||
string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"general(ALT)"
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"general (ALT9)"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-domains"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.domains
|
||||
|
||||
Extra domains to bypass\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"youtube.com"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-excludedomains"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.excludeDomains
|
||||
|
||||
Domains never bypassed\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"music.youtube.com"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-excludeips"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.excludeIps
|
||||
|
||||
IPs/CIDRs never bypassed\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"203.0.113.10/32"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-gamefilter"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.gameFilter
|
||||
|
||||
Game traffic filter, or “null” for off\.
|
||||
|
||||
*Type:*
|
||||
one of “all”, “tcp”, “udp”, “null”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"null"
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"all"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules
|
||||
|
||||
Extra named hostlists, each with its own strategy: cloned from a preset or configName,
|
||||
or given as nfqwsArgs\.
|
||||
|
||||
*Type:*
|
||||
list of (submodule)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
{
|
||||
configName = "general(ALT9)";
|
||||
defaultDomains = [
|
||||
"youtube"
|
||||
];
|
||||
name = "youtube-alt9";
|
||||
}
|
||||
{
|
||||
domains = [
|
||||
"example.com"
|
||||
];
|
||||
name = "custom-sites";
|
||||
preset = "general";
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-enabledirectsync"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules\.\*\.enableDirectSync
|
||||
|
||||
Include these domains in zapret\.directSync\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-configname"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules\.\*\.configName
|
||||
|
||||
Config to clone strategies from\. Exclusive with nfqwsArgs\.
|
||||
|
||||
*Type:*
|
||||
null or string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"general(ALT9)"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-defaultdomains"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules\.\*\.defaultDomains
|
||||
|
||||
Upstream lists to include (“discord” = “general”, “youtube” = “google”)\. Without preset,
|
||||
use one per rule so the strategy family can be inferred\.
|
||||
|
||||
*Type:*
|
||||
list of (one of “general”, “google”, “discord”, “youtube”, “instagram”, “soundcloud”, “twitter”)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"google"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-defaultips"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules\.\*\.defaultIps
|
||||
|
||||
Upstream ipsets to include (“all” is ipset-all\.txt)\.
|
||||
|
||||
*Type:*
|
||||
list of value “all” (singular enum)
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"all"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-domains"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules\.\*\.domains
|
||||
|
||||
Domains in this hostlist\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"example.com"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-ips"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules\.\*\.ips
|
||||
|
||||
IPs/CIDRs in this rule’s ipset\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"203.0.113.0/24"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-name"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules\.\*\.name
|
||||
|
||||
Hostlist name (hostlists/list-\<name>\.txt)\.
|
||||
|
||||
*Type:*
|
||||
string matching the pattern ^\[a-z0-9]\[a-z0-9-]\*$
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"cloudflare"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-nfqwsargs"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules\.\*\.nfqwsArgs
|
||||
|
||||
Raw NFQWS arguments; --hostlist and --new are added\. Exclusive with configName\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"--filter-tcp=443 --dpi-desync=fake,multisplit"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-hostlistrules-preset"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.hostlistRules\.\*\.preset
|
||||
|
||||
Strategy family to clone, from configName or the active config\.
|
||||
|
||||
*Type:*
|
||||
null or one of “general”, “google”, “instagram”, “soundcloud”, “twitter”
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
null
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
"google"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-includeextraupstreamlists"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.includeExtraUpstreamLists
|
||||
|
||||
Also use the upstream instagram, soundcloud and twitter lists\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret-discord-youtube-ips"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret-discord-youtube\.ips
|
||||
|
||||
Extra IPs/CIDRs to bypass\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"203.0.113.0/24"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-enable"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.enable
|
||||
|
||||
Learn blocked hosts: after failThreshold failures (retransmissions, early RST, DPI
|
||||
redirect, one-sided UDP) a host joins /var/lib/proxy-suite/zapret2/zapret-hosts-auto\.txt\.
|
||||
Off, only zapret2\.domains and ` proxy-ctl zapret auto add ` are acted on\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-debuglog"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.debugLog
|
||||
|
||||
Log why hosts are or are not learned to zapret-hosts-auto-debug\.log\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-failthreshold"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.failThreshold
|
||||
|
||||
Failures before a host is learned\.
|
||||
|
||||
*Type:*
|
||||
positive integer, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
3
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-failtime"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.failTime
|
||||
|
||||
Seconds allowed between two failures before the count resets\.
|
||||
|
||||
*Type:*
|
||||
positive integer, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
300
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-incomingmaxseq"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.incomingMaxseq
|
||||
|
||||
Incoming sequence number past which an RST or redirect is not a failure\.
|
||||
|
||||
*Type:*
|
||||
positive integer, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
4096
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-retransmaxseq"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.retransMaxseq
|
||||
|
||||
Outgoing sequence number past which failure detection stops\.
|
||||
|
||||
*Type:*
|
||||
positive integer, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
32768
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-retransreset"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.retransReset
|
||||
|
||||
RST a stalled client once retransThreshold is hit, so failures are counted fast\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
true
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-retransthreshold"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.retransThreshold
|
||||
|
||||
Retransmissions of the first request that count as one failure\.
|
||||
|
||||
*Type:*
|
||||
positive integer, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
3
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-udpin"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.udpIn
|
||||
|
||||
Incoming UDP packets at or below which an exchange is one-sided\.
|
||||
|
||||
*Type:*
|
||||
positive integer, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
1
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-autohostlist-udpout"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.autoHostlist\.udpOut
|
||||
|
||||
Outgoing UDP packets before a one-sided exchange counts as a failure\.
|
||||
|
||||
*Type:*
|
||||
positive integer, meaning >0
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
4
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-blobs"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.blobs
|
||||
|
||||
Fake payloads by name (blob=\<name>): a file in zapret2’s files/fake, or an absolute path\.
|
||||
|
||||
*Type:*
|
||||
attribute set of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
{
|
||||
quic_initial = "quic_initial_www_google_com.bin";
|
||||
tls_clienthello = "tls_clienthello_www_google_com.bin";
|
||||
}
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
{
|
||||
tls_clienthello = "/etc/proxy-suite/my_clienthello.bin";
|
||||
}
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-domains"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.domains
|
||||
|
||||
Domains always treated as blocked\. At runtime: ` proxy-ctl zapret auto add `\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"rutracker.org"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-excludedomains"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.excludeDomains
|
||||
|
||||
Domains never touched or learned\. At runtime: ` proxy-ctl zapret auto exclude `\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[ ]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"bank.example.com"
|
||||
]
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-ipv6"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.ipv6
|
||||
|
||||
Intercept IPv6 as well as IPv4\.
|
||||
|
||||
*Type:*
|
||||
boolean
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
false
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-ports-tcp"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.ports\.tcp
|
||||
|
||||
TCP ports sent to NFQUEUE\. Must cover every port a profile filters on\.
|
||||
|
||||
*Type:*
|
||||
string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"80,443,1984,2053,2083,2087,2096,5222,8443"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-ports-udp"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.ports\.udp
|
||||
|
||||
UDP ports sent to NFQUEUE\. Must cover every port a profile filters on\.
|
||||
|
||||
*Type:*
|
||||
string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
"443,590-600,1400,3478-3481,5349,19294-19344,49152-65535"
|
||||
```
|
||||
|
||||
<a id="services-proxy-suite-zapret-zapret2-profiles"></a>
|
||||
## services\.proxy-suite\.zapret\.zapret2\.profiles
|
||||
|
||||
nfqws2 profiles, joined with --new; first match wins\. \<HOSTLIST> expands to the hostlist
|
||||
arguments, \<HOSTLIST_NOAUTO> to the same without learning\. --qnum, --fwmark and --lua-init
|
||||
are added automatically\.
|
||||
|
||||
*Type:*
|
||||
list of string
|
||||
|
||||
*Default:*
|
||||
|
||||
```nix
|
||||
[
|
||||
''
|
||||
--filter-tcp=443,80,1984,5222 --filter-l7=http,tls,mtproto <HOSTLIST>
|
||||
--payload=tls_client_hello,mtproto_initial
|
||||
--lua-desync=circular:fails=2:time=300:retrans=3:nld=2
|
||||
--lua-desync=fake:blob=tls_clienthello:tls_mod=rnd,dupsid,sni=fonts.google.com:tcp_seq=10000:strategy=1
|
||||
--lua-desync=multisplit:pos=1,midsld:seqovl=1:seqovl_pattern=tls_clienthello:tcp_ts_up:strategy=1
|
||||
--lua-desync=fake:blob=0x00000000:tcp_ack=-66000:tls_mod=rnd,dupsid,sni=www.google.com:repeats=2:strategy=2
|
||||
--lua-desync=multisplit:pos=1,midsld:strategy=2
|
||||
--lua-desync=hostfakesplit:host=ozon.ru:midhost=host-2:seqovl=sniext+3:seqovl_pattern=tls_clienthello:badsum:tcp_md5:tcp_ts_up:strategy=3
|
||||
--lua-desync=hostfakesplit:tcp_md5:tcp_ts_up:strategy=3
|
||||
--payload=http_req
|
||||
--lua-desync=http_methodeol:badsum
|
||||
''
|
||||
''
|
||||
--filter-udp=443 --filter-l7=quic <HOSTLIST_NOAUTO>
|
||||
--payload=quic_initial
|
||||
--lua-desync=fake:blob=quic_initial:repeats=11
|
||||
''
|
||||
''
|
||||
--filter-udp=590-600,1400,3478-3481,5349,19294-19344,49152-65535
|
||||
--filter-l7=wireguard,stun,discord,mtproto,unknown
|
||||
--out-range=<n2
|
||||
--payload=wireguard_initiation,wireguard_response,wireguard_cookie,stun,discord_ip_discovery,mtproto_initial,unknown
|
||||
--lua-desync=circular:fails=2:time=300:retrans=3:nld=2
|
||||
--lua-desync=fake:repeats=6:strategy=1
|
||||
--lua-desync=fake:blob=quic_initial:repeats=6:strategy=2
|
||||
''
|
||||
]
|
||||
```
|
||||
|
||||
*Example:*
|
||||
|
||||
```nix
|
||||
[
|
||||
"--filter-tcp=443 --filter-l7=tls <HOSTLIST> --payload=tls_client_hello --lua-desync=multisplit:pos=1,midsld"
|
||||
]
|
||||
```
|
||||
Reference in new issue
Block a user