9593 lines
173 KiB
Markdown
9593 lines
173 KiB
Markdown
# proxy-suite options
|
||
|
||
This file is generated from the `services.proxy-suite` option descriptions in [`modules/proxy-suite/options/default.nix`](/modules/proxy-suite/options/default.nix).
|
||
Update module option docs there instead of editing this file by hand.
|
||
|
||
## Table of contents
|
||
|
||
- Config samples
|
||
- [Complete default config](#complete-default-config)
|
||
- [Complete example config](#complete-example-config)
|
||
- services.proxy-suite
|
||
- [enable](#services-proxy-suite-enable)
|
||
- 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)
|
||
- 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)
|
||
- proxy
|
||
- [enable](#services-proxy-suite-proxy-enable)
|
||
- auth
|
||
- [password](#services-proxy-suite-proxy-auth-password)
|
||
- [passwordFile](#services-proxy-suite-proxy-auth-passwordfile)
|
||
- [username](#services-proxy-suite-proxy-auth-username)
|
||
- dns
|
||
- [local](#services-proxy-suite-proxy-dns-local)
|
||
- [address](#services-proxy-suite-proxy-dns-local-address)
|
||
- [port](#services-proxy-suite-proxy-dns-local-port)
|
||
- [type](#services-proxy-suite-proxy-dns-local-type)
|
||
- [remote](#services-proxy-suite-proxy-dns-remote)
|
||
- [address](#services-proxy-suite-proxy-dns-remote-address)
|
||
- [port](#services-proxy-suite-proxy-dns-remote-port)
|
||
- [type](#services-proxy-suite-proxy-dns-remote-type)
|
||
- [listenAddress](#services-proxy-suite-proxy-listenaddress)
|
||
- [outbounds](#services-proxy-suite-proxy-outbounds)
|
||
- item
|
||
- [backend](#services-proxy-suite-proxy-outbounds-backend)
|
||
- routing
|
||
- [domains](#services-proxy-suite-proxy-outbounds-routing-domains)
|
||
- [geoips](#services-proxy-suite-proxy-outbounds-routing-geoips)
|
||
- [geosites](#services-proxy-suite-proxy-outbounds-routing-geosites)
|
||
- [ips](#services-proxy-suite-proxy-outbounds-routing-ips)
|
||
- [singBoxJson](#services-proxy-suite-proxy-outbounds-singboxjson)
|
||
- [tag](#services-proxy-suite-proxy-outbounds-tag)
|
||
- [url](#services-proxy-suite-proxy-outbounds-url)
|
||
- [urlFile](#services-proxy-suite-proxy-outbounds-urlfile)
|
||
- [xrayJson](#services-proxy-suite-proxy-outbounds-xrayjson)
|
||
- [port](#services-proxy-suite-proxy-port)
|
||
- [proxyByDefault](#services-proxy-suite-proxy-proxybydefault)
|
||
- routing
|
||
- [enableRuDirect](#services-proxy-suite-proxy-routing-enablerudirect)
|
||
- block
|
||
- [domains](#services-proxy-suite-proxy-routing-block-domains)
|
||
- [geoips](#services-proxy-suite-proxy-routing-block-geoips)
|
||
- [geosites](#services-proxy-suite-proxy-routing-block-geosites)
|
||
- [ips](#services-proxy-suite-proxy-routing-block-ips)
|
||
- direct
|
||
- [domains](#services-proxy-suite-proxy-routing-direct-domains)
|
||
- [geoips](#services-proxy-suite-proxy-routing-direct-geoips)
|
||
- [geosites](#services-proxy-suite-proxy-routing-direct-geosites)
|
||
- [ips](#services-proxy-suite-proxy-routing-direct-ips)
|
||
- proxy
|
||
- [domains](#services-proxy-suite-proxy-routing-proxy-domains)
|
||
- [geoips](#services-proxy-suite-proxy-routing-proxy-geoips)
|
||
- [geosites](#services-proxy-suite-proxy-routing-proxy-geosites)
|
||
- [ips](#services-proxy-suite-proxy-routing-proxy-ips)
|
||
- [rules](#services-proxy-suite-proxy-routing-rules)
|
||
- item
|
||
- [domains](#services-proxy-suite-proxy-routing-rules-domains)
|
||
- [geoips](#services-proxy-suite-proxy-routing-rules-geoips)
|
||
- [geosites](#services-proxy-suite-proxy-routing-rules-geosites)
|
||
- [ips](#services-proxy-suite-proxy-routing-rules-ips)
|
||
- [outbound](#services-proxy-suite-proxy-routing-rules-outbound)
|
||
- [selection](#services-proxy-suite-proxy-selection)
|
||
- singBox
|
||
- [enable](#services-proxy-suite-proxy-singbox-enable)
|
||
- [package](#services-proxy-suite-proxy-singbox-package)
|
||
- [clashApiPort](#services-proxy-suite-proxy-singbox-clashapiport)
|
||
- urlTest
|
||
- [tolerance](#services-proxy-suite-proxy-singbox-urltest-tolerance)
|
||
- [subscriptionUpdateInterval](#services-proxy-suite-proxy-subscriptionupdateinterval)
|
||
- [subscriptions](#services-proxy-suite-proxy-subscriptions)
|
||
- item
|
||
- [tag](#services-proxy-suite-proxy-subscriptions-tag)
|
||
- [url](#services-proxy-suite-proxy-subscriptions-url)
|
||
- [urlFile](#services-proxy-suite-proxy-subscriptions-urlfile)
|
||
- tproxy
|
||
- [enable](#services-proxy-suite-proxy-tproxy-enable)
|
||
- [autostart](#services-proxy-suite-proxy-tproxy-autostart)
|
||
- [fwmark](#services-proxy-suite-proxy-tproxy-fwmark)
|
||
- [localSubnets](#services-proxy-suite-proxy-tproxy-localsubnets)
|
||
- perApp
|
||
- [enable](#services-proxy-suite-proxy-tproxy-perapp-enable)
|
||
- [fwmark](#services-proxy-suite-proxy-tproxy-perapp-fwmark)
|
||
- [localSubnets](#services-proxy-suite-proxy-tproxy-perapp-localsubnets)
|
||
- [routeTable](#services-proxy-suite-proxy-tproxy-perapp-routetable)
|
||
- [port](#services-proxy-suite-proxy-tproxy-port)
|
||
- [proxyMark](#services-proxy-suite-proxy-tproxy-proxymark)
|
||
- [routeTable](#services-proxy-suite-proxy-tproxy-routetable)
|
||
- tun
|
||
- [enable](#services-proxy-suite-proxy-tun-enable)
|
||
- [address](#services-proxy-suite-proxy-tun-address)
|
||
- [autostart](#services-proxy-suite-proxy-tun-autostart)
|
||
- [interface](#services-proxy-suite-proxy-tun-interface)
|
||
- [mtu](#services-proxy-suite-proxy-tun-mtu)
|
||
- perApp
|
||
- [enable](#services-proxy-suite-proxy-tun-perapp-enable)
|
||
- [address](#services-proxy-suite-proxy-tun-perapp-address)
|
||
- [fwmark](#services-proxy-suite-proxy-tun-perapp-fwmark)
|
||
- [interface](#services-proxy-suite-proxy-tun-perapp-interface)
|
||
- [localSubnets](#services-proxy-suite-proxy-tun-perapp-localsubnets)
|
||
- [mtu](#services-proxy-suite-proxy-tun-perapp-mtu)
|
||
- [routeTable](#services-proxy-suite-proxy-tun-perapp-routetable)
|
||
- urlTest
|
||
- [interval](#services-proxy-suite-proxy-urltest-interval)
|
||
- [url](#services-proxy-suite-proxy-urltest-url)
|
||
- xray
|
||
- [enable](#services-proxy-suite-proxy-xray-enable)
|
||
- [package](#services-proxy-suite-proxy-xray-package)
|
||
- proxyInbounds
|
||
- [enable](#services-proxy-suite-proxyinbounds-enable)
|
||
- [package](#services-proxy-suite-proxyinbounds-package)
|
||
- [blockPrivate](#services-proxy-suite-proxyinbounds-blockprivate)
|
||
- [blockRu](#services-proxy-suite-proxyinbounds-blockru)
|
||
- [listeners](#services-proxy-suite-proxyinbounds-listeners)
|
||
- `<name>`
|
||
- [flow](#services-proxy-suite-proxyinbounds-listeners-name-flow)
|
||
- [jsonFile](#services-proxy-suite-proxyinbounds-listeners-name-jsonfile)
|
||
- [listenAddress](#services-proxy-suite-proxyinbounds-listeners-name-listenaddress)
|
||
- [method](#services-proxy-suite-proxyinbounds-listeners-name-method)
|
||
- [port](#services-proxy-suite-proxyinbounds-listeners-name-port)
|
||
- [reality](#services-proxy-suite-proxyinbounds-listeners-name-reality)
|
||
- [enable](#services-proxy-suite-proxyinbounds-listeners-name-reality-enable)
|
||
- [dest](#services-proxy-suite-proxyinbounds-listeners-name-reality-dest)
|
||
- [privateKey](#services-proxy-suite-proxyinbounds-listeners-name-reality-privatekey)
|
||
- [privateKeyFile](#services-proxy-suite-proxyinbounds-listeners-name-reality-privatekeyfile)
|
||
- [publicKey](#services-proxy-suite-proxyinbounds-listeners-name-reality-publickey)
|
||
- [serverNames](#services-proxy-suite-proxyinbounds-listeners-name-reality-servernames)
|
||
- [shortIds](#services-proxy-suite-proxyinbounds-listeners-name-reality-shortids)
|
||
- [tls](#services-proxy-suite-proxyinbounds-listeners-name-tls)
|
||
- [enable](#services-proxy-suite-proxyinbounds-listeners-name-tls-enable)
|
||
- [certificateFile](#services-proxy-suite-proxyinbounds-listeners-name-tls-certificatefile)
|
||
- [keyFile](#services-proxy-suite-proxyinbounds-listeners-name-tls-keyfile)
|
||
- [serverName](#services-proxy-suite-proxyinbounds-listeners-name-tls-servername)
|
||
- [transport](#services-proxy-suite-proxyinbounds-listeners-name-transport)
|
||
- [host](#services-proxy-suite-proxyinbounds-listeners-name-transport-host)
|
||
- [path](#services-proxy-suite-proxyinbounds-listeners-name-transport-path)
|
||
- [serviceName](#services-proxy-suite-proxyinbounds-listeners-name-transport-servicename)
|
||
- [type](#services-proxy-suite-proxyinbounds-listeners-name-transport-type)
|
||
- [type](#services-proxy-suite-proxyinbounds-listeners-name-type)
|
||
- [users](#services-proxy-suite-proxyinbounds-listeners-name-users)
|
||
- item
|
||
- [name](#services-proxy-suite-proxyinbounds-listeners-name-users-name)
|
||
- [password](#services-proxy-suite-proxyinbounds-listeners-name-users-password)
|
||
- [passwordFile](#services-proxy-suite-proxyinbounds-listeners-name-users-passwordfile)
|
||
- [uuid](#services-proxy-suite-proxyinbounds-listeners-name-users-uuid)
|
||
- [uuidFile](#services-proxy-suite-proxyinbounds-listeners-name-users-uuidfile)
|
||
- [via](#services-proxy-suite-proxyinbounds-listeners-name-via)
|
||
- [xrayJson](#services-proxy-suite-proxyinbounds-listeners-name-xrayjson)
|
||
- [openFirewall](#services-proxy-suite-proxyinbounds-openfirewall)
|
||
- [serverAddress](#services-proxy-suite-proxyinbounds-serveraddress)
|
||
- [shareLinks](#services-proxy-suite-proxyinbounds-sharelinks)
|
||
- [via](#services-proxy-suite-proxyinbounds-via)
|
||
- [zapretDirect](#services-proxy-suite-proxyinbounds-zapretdirect)
|
||
- 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)
|
||
- [host](#services-proxy-suite-sshproxy-host)
|
||
- [hostKey](#services-proxy-suite-sshproxy-hostkey)
|
||
- [hostKeyFile](#services-proxy-suite-sshproxy-hostkeyfile)
|
||
- [identityFile](#services-proxy-suite-sshproxy-identityfile)
|
||
- [knownHostsFile](#services-proxy-suite-sshproxy-knownhostsfile)
|
||
- [listenAddress](#services-proxy-suite-sshproxy-listenaddress)
|
||
- [listenPort](#services-proxy-suite-sshproxy-listenport)
|
||
- [serviceUser](#services-proxy-suite-sshproxy-serviceuser)
|
||
- [sshPort](#services-proxy-suite-sshproxy-sshport)
|
||
- [strictHostKeyChecking](#services-proxy-suite-sshproxy-stricthostkeychecking)
|
||
- [user](#services-proxy-suite-sshproxy-user)
|
||
- tgWsProxy
|
||
- [enable](#services-proxy-suite-tgwsproxy-enable)
|
||
- [bufKb](#services-proxy-suite-tgwsproxy-bufkb)
|
||
- [bypassTransparentProxy](#services-proxy-suite-tgwsproxy-bypasstransparentproxy)
|
||
- [cfProxyDomains](#services-proxy-suite-tgwsproxy-cfproxydomains)
|
||
- [cfProxyFallback](#services-proxy-suite-tgwsproxy-cfproxyfallback)
|
||
- [cfProxyWorkerDomains](#services-proxy-suite-tgwsproxy-cfproxyworkerdomains)
|
||
- [dcIps](#services-proxy-suite-tgwsproxy-dcips)
|
||
- [fakeTlsDomain](#services-proxy-suite-tgwsproxy-faketlsdomain)
|
||
- [host](#services-proxy-suite-tgwsproxy-host)
|
||
- [logBackups](#services-proxy-suite-tgwsproxy-logbackups)
|
||
- [logFile](#services-proxy-suite-tgwsproxy-logfile)
|
||
- [logMaxMb](#services-proxy-suite-tgwsproxy-logmaxmb)
|
||
- [poolSize](#services-proxy-suite-tgwsproxy-poolsize)
|
||
- [port](#services-proxy-suite-tgwsproxy-port)
|
||
- [proxyProtocol](#services-proxy-suite-tgwsproxy-proxyprotocol)
|
||
- [routingMark](#services-proxy-suite-tgwsproxy-routingmark)
|
||
- [secret](#services-proxy-suite-tgwsproxy-secret)
|
||
- [secretFile](#services-proxy-suite-tgwsproxy-secretfile)
|
||
- [verbose](#services-proxy-suite-tgwsproxy-verbose)
|
||
- tray
|
||
- [enable](#services-proxy-suite-tray-enable)
|
||
- [autostart](#services-proxy-suite-tray-autostart)
|
||
- [pollInterval](#services-proxy-suite-tray-pollinterval)
|
||
- userControl
|
||
- global
|
||
- [enable](#services-proxy-suite-usercontrol-global-enable)
|
||
- [group](#services-proxy-suite-usercontrol-group)
|
||
- perApp
|
||
- [enable](#services-proxy-suite-usercontrol-perapp-enable)
|
||
- zapret
|
||
- [enable](#services-proxy-suite-zapret-enable)
|
||
- cidrExemption
|
||
- [enable](#services-proxy-suite-zapret-cidrexemption-enable)
|
||
- [cidrs](#services-proxy-suite-zapret-cidrexemption-cidrs)
|
||
- [configName](#services-proxy-suite-zapret-configname)
|
||
- [gameFilter](#services-proxy-suite-zapret-gamefilter)
|
||
- [hostlistRules](#services-proxy-suite-zapret-hostlistrules)
|
||
- item
|
||
- [enableDirectSync](#services-proxy-suite-zapret-hostlistrules-enabledirectsync)
|
||
- [configName](#services-proxy-suite-zapret-hostlistrules-configname)
|
||
- [defaultDomains](#services-proxy-suite-zapret-hostlistrules-defaultdomains)
|
||
- [defaultIps](#services-proxy-suite-zapret-hostlistrules-defaultips)
|
||
- [domains](#services-proxy-suite-zapret-hostlistrules-domains)
|
||
- [ips](#services-proxy-suite-zapret-hostlistrules-ips)
|
||
- [name](#services-proxy-suite-zapret-hostlistrules-name)
|
||
- [nfqwsArgs](#services-proxy-suite-zapret-hostlistrules-nfqwsargs)
|
||
- [preset](#services-proxy-suite-zapret-hostlistrules-preset)
|
||
- [includeExtraUpstreamLists](#services-proxy-suite-zapret-includeextraupstreamlists)
|
||
- [ipsetAll](#services-proxy-suite-zapret-ipsetall)
|
||
- [ipsetExclude](#services-proxy-suite-zapret-ipsetexclude)
|
||
- [listExclude](#services-proxy-suite-zapret-listexclude)
|
||
- [listGeneral](#services-proxy-suite-zapret-listgeneral)
|
||
- perApp
|
||
- [enable](#services-proxy-suite-zapret-perapp-enable)
|
||
- [filterMark](#services-proxy-suite-zapret-perapp-filtermark)
|
||
- [qnum](#services-proxy-suite-zapret-perapp-qnum)
|
||
- [syncDirectRouting](#services-proxy-suite-zapret-syncdirectrouting)
|
||
- [syncDirectRoutingUpstreamIps](#services-proxy-suite-zapret-syncdirectroutingupstreamips)
|
||
- [syncDirectRoutingUserIps](#services-proxy-suite-zapret-syncdirectroutinguserips)
|
||
|
||
<a id="complete-default-config"></a>
|
||
## Complete default config
|
||
|
||
```nix
|
||
services.proxy-suite = {
|
||
amneziaWg = {
|
||
enable = false;
|
||
kernelModulePackage = <derivation amneziawg-3.1.20260812>;
|
||
profiles = { };
|
||
toolsPackage = <derivation amneziawg-tools-3.1.20260812>;
|
||
userspacePackage = <derivation amneziawg-go-3.1.20260828>;
|
||
};
|
||
enable = false;
|
||
perAppRouting = {
|
||
createDefaultProfiles = false;
|
||
enable = false;
|
||
profiles = [ ];
|
||
proxychains = {
|
||
enable = false;
|
||
proxyDns = true;
|
||
quiet = true;
|
||
};
|
||
};
|
||
proxy = {
|
||
auth = {
|
||
password = null;
|
||
passwordFile = null;
|
||
username = null;
|
||
};
|
||
dns = {
|
||
local = {
|
||
address = "1.1.1.1";
|
||
port = 53;
|
||
type = "udp";
|
||
};
|
||
remote = {
|
||
address = "1.1.1.1";
|
||
port = 53;
|
||
type = "udp";
|
||
};
|
||
};
|
||
enable = false;
|
||
listenAddress = "127.0.0.1";
|
||
outbounds = [ ];
|
||
port = 1080;
|
||
proxyByDefault = true;
|
||
routing = {
|
||
block = {
|
||
domains = [ ];
|
||
geoips = [ ];
|
||
geosites = [ ];
|
||
ips = [ ];
|
||
};
|
||
direct = {
|
||
domains = [ ];
|
||
geoips = [ ];
|
||
geosites = [ ];
|
||
ips = [ ];
|
||
};
|
||
enableRuDirect = true;
|
||
proxy = {
|
||
domains = [ ];
|
||
geoips = [ ];
|
||
geosites = [ ];
|
||
ips = [ ];
|
||
};
|
||
rules = [ ];
|
||
};
|
||
selection = "first";
|
||
singBox = {
|
||
clashApiPort = 9090;
|
||
enable = false;
|
||
package = pkgs.sing-box;
|
||
urlTest = {
|
||
tolerance = 50;
|
||
};
|
||
};
|
||
subscriptionUpdateInterval = "1d";
|
||
subscriptions = [ ];
|
||
tproxy = {
|
||
autostart = false;
|
||
enable = false;
|
||
fwmark = 1;
|
||
localSubnets = [
|
||
"192.168.0.0/16"
|
||
];
|
||
perApp = {
|
||
enable = false;
|
||
fwmark = 17;
|
||
localSubnets = [
|
||
"192.168.0.0/16"
|
||
];
|
||
routeTable = 102;
|
||
};
|
||
port = 1085;
|
||
proxyMark = 2;
|
||
routeTable = 100;
|
||
};
|
||
tun = {
|
||
address = "172.19.0.1/30";
|
||
autostart = false;
|
||
enable = false;
|
||
interface = "singtun0";
|
||
mtu = 1400;
|
||
perApp = {
|
||
address = "172.20.0.1/30";
|
||
enable = false;
|
||
fwmark = 16;
|
||
interface = "psperapptun0";
|
||
localSubnets = [
|
||
"192.168.0.0/16"
|
||
];
|
||
mtu = 1400;
|
||
routeTable = 101;
|
||
};
|
||
};
|
||
urlTest = {
|
||
interval = "3m";
|
||
url = "https://www.gstatic.com/generate_204";
|
||
};
|
||
xray = {
|
||
enable = false;
|
||
package = pkgs.xray;
|
||
};
|
||
};
|
||
proxyInbounds = {
|
||
blockPrivate = true;
|
||
blockRu = true;
|
||
enable = false;
|
||
listeners = { };
|
||
openFirewall = true;
|
||
package = pkgs.xray;
|
||
serverAddress = null;
|
||
shareLinks = true;
|
||
via = "proxy";
|
||
zapretDirect = true;
|
||
};
|
||
sshProxy = {
|
||
asOutbound = false;
|
||
domainStrategy = null;
|
||
enable = false;
|
||
extraArgs = [ ];
|
||
host = null;
|
||
hostKey = [ ];
|
||
hostKeyFile = null;
|
||
identityFile = null;
|
||
knownHostsFile = null;
|
||
listenAddress = "127.0.0.1";
|
||
listenPort = 1091;
|
||
serviceUser = null;
|
||
sshPort = 22;
|
||
strictHostKeyChecking = "accept-new";
|
||
user = null;
|
||
};
|
||
tgWsProxy = {
|
||
bufKb = 256;
|
||
bypassTransparentProxy = true;
|
||
cfProxyDomains = [ ];
|
||
cfProxyFallback = true;
|
||
cfProxyWorkerDomains = [ ];
|
||
dcIps = { };
|
||
enable = false;
|
||
fakeTlsDomain = null;
|
||
host = "127.0.0.1";
|
||
logBackups = 1;
|
||
logFile = null;
|
||
logMaxMb = 5.0;
|
||
poolSize = 4;
|
||
port = 1443;
|
||
proxyProtocol = false;
|
||
routingMark = 4;
|
||
secret = null;
|
||
secretFile = null;
|
||
verbose = false;
|
||
};
|
||
tray = {
|
||
autostart = true;
|
||
enable = false;
|
||
pollInterval = 5;
|
||
};
|
||
userControl = {
|
||
global = {
|
||
enable = true;
|
||
};
|
||
group = "proxy-suite";
|
||
perApp = {
|
||
enable = true;
|
||
};
|
||
};
|
||
zapret = {
|
||
cidrExemption = {
|
||
cidrs = [ ];
|
||
enable = false;
|
||
};
|
||
configName = "general(ALT)";
|
||
enable = false;
|
||
gameFilter = "null";
|
||
hostlistRules = [ ];
|
||
includeExtraUpstreamLists = false;
|
||
ipsetAll = [ ];
|
||
ipsetExclude = [ ];
|
||
listExclude = [ ];
|
||
listGeneral = [ ];
|
||
perApp = {
|
||
enable = false;
|
||
filterMark = 268435456;
|
||
qnum = 201;
|
||
};
|
||
syncDirectRouting = true;
|
||
syncDirectRoutingUpstreamIps = false;
|
||
syncDirectRoutingUserIps = true;
|
||
};
|
||
};
|
||
```
|
||
|
||
<a id="complete-example-config"></a>
|
||
## Complete example config
|
||
|
||
This is generated by filling in all the options with example values (or defaults if no example is provided). This is not meant to be a recommended config, just a comprehensive example of how to set all the options.
|
||
|
||
```nix
|
||
services.proxy-suite = {
|
||
amneziaWg = {
|
||
enable = true;
|
||
kernelModulePackage = <derivation amneziawg-3.1.20260812>;
|
||
profiles = { };
|
||
toolsPackage = <derivation amneziawg-tools-3.1.20260812>;
|
||
userspacePackage = <derivation amneziawg-go-3.1.20260828>;
|
||
};
|
||
enable = true;
|
||
perAppRouting = {
|
||
createDefaultProfiles = true;
|
||
enable = true;
|
||
profiles = [
|
||
{
|
||
name = "steam-browser";
|
||
route = "proxychains";
|
||
}
|
||
{
|
||
name = "native-direct";
|
||
route = "direct";
|
||
}
|
||
];
|
||
proxychains = {
|
||
enable = true;
|
||
proxyDns = true;
|
||
quiet = true;
|
||
};
|
||
};
|
||
proxy = {
|
||
auth = {
|
||
password = "change-me";
|
||
passwordFile = "/run/secrets/proxy-suite-local-proxy-password";
|
||
username = "proxy-user";
|
||
};
|
||
dns = {
|
||
local = {
|
||
address = "9.9.9.9";
|
||
port = 53;
|
||
type = "tcp";
|
||
};
|
||
remote = {
|
||
address = "1.1.1.1";
|
||
port = 853;
|
||
type = "tls";
|
||
};
|
||
};
|
||
enable = false;
|
||
listenAddress = "127.0.0.1";
|
||
outbounds = [
|
||
{
|
||
tag = "de-vps";
|
||
urlFile = "/run/secrets/proxy-de-url";
|
||
}
|
||
{
|
||
tag = "nl-vps";
|
||
url = "hy2://password@example.com:443?sni=example.com";
|
||
}
|
||
];
|
||
port = 1080;
|
||
proxyByDefault = true;
|
||
routing = {
|
||
block = {
|
||
domains = [
|
||
"ads.example.com"
|
||
];
|
||
geoips = [
|
||
"cn"
|
||
];
|
||
geosites = [
|
||
"category-ads-all"
|
||
];
|
||
ips = [
|
||
"203.0.113.0/24"
|
||
];
|
||
};
|
||
direct = {
|
||
domains = [
|
||
"internal.example"
|
||
];
|
||
geoips = [
|
||
"ru"
|
||
];
|
||
geosites = [
|
||
"category-ru"
|
||
];
|
||
ips = [
|
||
"10.10.0.0/16"
|
||
];
|
||
};
|
||
enableRuDirect = true;
|
||
proxy = {
|
||
domains = [
|
||
"youtube.com"
|
||
"discord.com"
|
||
];
|
||
geoips = [
|
||
"us"
|
||
"de"
|
||
];
|
||
geosites = [
|
||
"netflix"
|
||
"google"
|
||
];
|
||
ips = [
|
||
"1.1.1.0/24"
|
||
];
|
||
};
|
||
rules = [
|
||
{
|
||
domains = [
|
||
"netflix.com"
|
||
];
|
||
geosites = [
|
||
"netflix"
|
||
];
|
||
outbound = "vps-de";
|
||
}
|
||
{
|
||
domains = [
|
||
"internal.corp"
|
||
];
|
||
outbound = "direct";
|
||
}
|
||
{
|
||
domains = [
|
||
"ads.example.com"
|
||
];
|
||
outbound = "block";
|
||
}
|
||
];
|
||
};
|
||
selection = "urltest";
|
||
singBox = {
|
||
clashApiPort = 9090;
|
||
enable = true;
|
||
package = pkgs.sing-box;
|
||
urlTest = {
|
||
tolerance = 100;
|
||
};
|
||
};
|
||
subscriptionUpdateInterval = "6h";
|
||
subscriptions = [
|
||
{
|
||
tag = "community";
|
||
url = "https://example.com/sub/token";
|
||
}
|
||
{
|
||
tag = "private";
|
||
urlFile = "/run/secrets/private-sub-url";
|
||
}
|
||
];
|
||
tproxy = {
|
||
autostart = true;
|
||
enable = true;
|
||
fwmark = 1;
|
||
localSubnets = [
|
||
"192.168.0.0/16"
|
||
"10.0.0.0/8"
|
||
];
|
||
perApp = {
|
||
enable = true;
|
||
fwmark = 17;
|
||
localSubnets = [
|
||
"192.168.0.0/16"
|
||
"10.0.0.0/8"
|
||
];
|
||
routeTable = 102;
|
||
};
|
||
port = 1085;
|
||
proxyMark = 2;
|
||
routeTable = 100;
|
||
};
|
||
tun = {
|
||
address = "172.19.0.1/30";
|
||
autostart = true;
|
||
enable = true;
|
||
interface = "singtun0";
|
||
mtu = 1400;
|
||
perApp = {
|
||
address = "172.20.0.1/30";
|
||
enable = true;
|
||
fwmark = 16;
|
||
interface = "psperapptun0";
|
||
localSubnets = [
|
||
"192.168.0.0/16"
|
||
"10.0.0.0/8"
|
||
];
|
||
mtu = 1400;
|
||
routeTable = 101;
|
||
};
|
||
};
|
||
urlTest = {
|
||
interval = "1m";
|
||
url = "https://telegram.org";
|
||
};
|
||
xray = {
|
||
enable = true;
|
||
package = pkgs.xray;
|
||
};
|
||
};
|
||
proxyInbounds = {
|
||
blockPrivate = false;
|
||
blockRu = false;
|
||
enable = true;
|
||
listeners = {
|
||
_type = "literalExpression";
|
||
text = ''
|
||
{
|
||
vless-reality = {
|
||
type = "vless";
|
||
port = 443;
|
||
users = [ { uuidFile = "/run/secrets/proxy-inbound-uuid"; } ];
|
||
flow = "xtls-rprx-vision";
|
||
reality = {
|
||
enable = true;
|
||
dest = "www.microsoft.com:443";
|
||
serverNames = [ "www.microsoft.com" ];
|
||
privateKeyFile = "/run/secrets/proxy-inbound-reality-key";
|
||
publicKey = "jNXH...";
|
||
shortIds = [ "0123abcd" ];
|
||
};
|
||
};
|
||
}
|
||
'';
|
||
};
|
||
openFirewall = false;
|
||
package = pkgs.xray;
|
||
serverAddress = "vpn.example.com";
|
||
shareLinks = false;
|
||
via = "direct";
|
||
zapretDirect = false;
|
||
};
|
||
sshProxy = {
|
||
asOutbound = true;
|
||
domainStrategy = "prefer_ipv4";
|
||
enable = true;
|
||
extraArgs = [
|
||
"-o"
|
||
"ServerAliveInterval=30"
|
||
];
|
||
host = "ssh.example.com";
|
||
hostKey = [
|
||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI..."
|
||
];
|
||
hostKeyFile = "/root/.ssh/known_hosts";
|
||
identityFile = "/run/secrets/proxy-suite-ssh-key";
|
||
knownHostsFile = "/run/secrets/proxy-suite-ssh-known-hosts";
|
||
listenAddress = "127.0.0.1";
|
||
listenPort = 1091;
|
||
serviceUser = "proxy";
|
||
sshPort = 22;
|
||
strictHostKeyChecking = "yes";
|
||
user = "root";
|
||
};
|
||
tgWsProxy = {
|
||
bufKb = 512;
|
||
bypassTransparentProxy = true;
|
||
cfProxyDomains = [
|
||
"cdn.example.com"
|
||
"edge.example.net"
|
||
];
|
||
cfProxyFallback = false;
|
||
cfProxyWorkerDomains = [
|
||
"worker.example.com"
|
||
];
|
||
dcIps = {
|
||
"2" = "149.154.167.220";
|
||
"203" = "149.154.167.220";
|
||
"4" = "149.154.167.220";
|
||
};
|
||
enable = true;
|
||
fakeTlsDomain = "www.example.com";
|
||
host = "127.0.0.1";
|
||
logBackups = 3;
|
||
logFile = "/var/log/tg-ws-proxy.log";
|
||
logMaxMb = 10.0;
|
||
poolSize = 8;
|
||
port = 1076;
|
||
proxyProtocol = true;
|
||
routingMark = 4;
|
||
secret = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
||
secretFile = "/run/secrets/tg-ws-proxy-secret";
|
||
verbose = true;
|
||
};
|
||
tray = {
|
||
autostart = true;
|
||
enable = true;
|
||
pollInterval = 5;
|
||
};
|
||
userControl = {
|
||
global = {
|
||
enable = true;
|
||
};
|
||
group = "proxy-suite";
|
||
perApp = {
|
||
enable = true;
|
||
};
|
||
};
|
||
zapret = {
|
||
cidrExemption = {
|
||
cidrs = [
|
||
"192.168.123.0/24"
|
||
"10.0.0.0/8"
|
||
];
|
||
enable = true;
|
||
};
|
||
configName = "general(ALT)";
|
||
enable = true;
|
||
gameFilter = "null";
|
||
hostlistRules = [
|
||
{
|
||
configName = "general(ALT9)";
|
||
defaultDomains = [
|
||
"youtube"
|
||
];
|
||
name = "youtube-alt9";
|
||
}
|
||
{
|
||
configName = "general (ALT12)";
|
||
defaultDomains = [
|
||
"discord"
|
||
];
|
||
name = "discord-alt12";
|
||
}
|
||
{
|
||
configName = "general (SIMPLE FAKE)";
|
||
domains = [
|
||
"example.com"
|
||
"example.org"
|
||
];
|
||
ips = [
|
||
"203.0.113.0/24"
|
||
];
|
||
name = "custom-sites";
|
||
preset = "general";
|
||
}
|
||
];
|
||
includeExtraUpstreamLists = false;
|
||
ipsetAll = [
|
||
"203.0.113.0/24"
|
||
];
|
||
ipsetExclude = [
|
||
"203.0.113.10/32"
|
||
];
|
||
listExclude = [
|
||
"music.youtube.com"
|
||
];
|
||
listGeneral = [
|
||
"youtube.com"
|
||
];
|
||
perApp = {
|
||
enable = true;
|
||
filterMark = 268435456;
|
||
qnum = 201;
|
||
};
|
||
syncDirectRouting = true;
|
||
syncDirectRoutingUpstreamIps = false;
|
||
syncDirectRoutingUserIps = true;
|
||
};
|
||
};
|
||
```
|
||
|
||
<a id="services-proxy-suite-enable"></a>
|
||
## services\.proxy-suite\.enable
|
||
|
||
|
||
|
||
Whether to enable proxy suite (proxy backend + AmneziaWG + zapret + tg-ws-proxy)\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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>
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
{ }
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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›"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
[ ]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
{ }
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
[ ]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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:]]+
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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>
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<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>
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/amnezia-wg\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/amnezia-wg.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-perapprouting-enable"></a>
|
||
## services\.proxy-suite\.perAppRouting\.enable
|
||
|
||
|
||
|
||
Whether to enable per-app routing helpers via proxy-ctl wrap\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/per-app-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/per-app-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-perapprouting-createdefaultprofiles"></a>
|
||
## services\.proxy-suite\.perAppRouting\.createDefaultProfiles
|
||
|
||
|
||
|
||
Whether to automatically add curated perAppRouting profiles\.
|
||
|
||
This is opt-in\. Generated defaults are appended only when no
|
||
user-defined profile with the same name already exists\.
|
||
|
||
Current curated defaults:
|
||
|
||
- ` proxychains `: route = “proxychains”
|
||
- ` tun `: route = “tun” when proxy\.tun\.perApp\.enable = true
|
||
- ` tproxy `: route = “tproxy” when proxy\.tproxy\.perApp\.enable = true
|
||
- ` zapret `: route = “zapret” when zapret\.perApp\.enable = true
|
||
|
||
This makes ` proxy-ctl wrap proxychains -- <command> ` available
|
||
without defining the profile manually, and similarly exposes
|
||
` proxy-ctl wrap tun -- <command> ` or
|
||
` proxy-ctl wrap tproxy -- <command> ` or
|
||
` proxy-ctl wrap zapret -- <command> ` when the corresponding backend
|
||
is enabled\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/per-app-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/per-app-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-perapprouting-profiles"></a>
|
||
## services\.proxy-suite\.perAppRouting\.profiles
|
||
|
||
|
||
|
||
Named per-app route profiles consumed by ` proxy-ctl wrap `\.
|
||
|
||
This initial implementation supports:
|
||
|
||
- “direct” for running a command unchanged
|
||
- “proxychains” for TCP apps that can use an LD_PRELOAD wrapper
|
||
instead of global TUN or TProxy interception
|
||
- “tun” for per-app-scoped policy routing into the dedicated app TUN
|
||
backend
|
||
- “tproxy” for per-app-scoped transparent interception through the
|
||
dedicated app TProxy backend
|
||
- “zapret” for per-app-scoped zapret handling through a separate
|
||
zapret instance without changing the app’s network path or exit IP
|
||
|
||
proxychains-based wrapping depends on proxy\.enable = true and the
|
||
local proxy-suite proxy listener provided by the active backend\. The
|
||
“tun” route depends on proxy\.tun\.perApp\.enable = true\. The “tproxy”
|
||
route depends on proxy\.tproxy\.perApp\.enable = true\. The “zapret”
|
||
route depends on zapret\.perApp\.enable = true\.
|
||
|
||
When createDefaultProfiles = true, curated defaults are added on top
|
||
of this list unless a user-defined profile already uses the same
|
||
name\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of (submodule)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
{
|
||
name = "steam-browser";
|
||
route = "proxychains";
|
||
}
|
||
{
|
||
name = "native-direct";
|
||
route = "direct";
|
||
}
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/per-app-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/per-app-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-perapprouting-profiles-name"></a>
|
||
## services\.proxy-suite\.perAppRouting\.profiles\.\*\.name
|
||
|
||
|
||
|
||
Profile name used by ` proxy-ctl wrap <name> -- <command> `\.
|
||
Must be unique within perAppRouting\.profiles\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string matching the pattern ^\[a-z0-9]\[a-z0-9-]\*$
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"steam-browser"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/per-app-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/per-app-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-perapprouting-profiles-route"></a>
|
||
## services\.proxy-suite\.perAppRouting\.profiles\.\*\.route
|
||
|
||
|
||
|
||
Per-app route backend used by proxy-ctl wrap\.
|
||
|
||
- “direct”: run the command unchanged\.
|
||
- “proxychains”: run the command through proxychains-ng using the
|
||
local proxy-suite mixed SOCKS endpoint\.
|
||
- “tun”: launch the command in the dedicated per-app-routing TUN slice so
|
||
only that app’s traffic is policy-routed into the app TUN backend\.
|
||
- “tproxy”: launch the command in the dedicated per-app-routing TProxy
|
||
slice so only that app’s traffic is transparently intercepted by
|
||
the local proxy TProxy inbound\.
|
||
- “zapret”: launch the command in the dedicated per-app-routing zapret
|
||
slice so only that app’s traffic is handled by the separate
|
||
per-app-scoped zapret instance\.
|
||
|
||
Additional route backends may be added in the future\.
|
||
|
||
|
||
|
||
*Type:*
|
||
one of “direct”, “proxychains”, “tun”, “tproxy”, “zapret”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"proxychains"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"proxychains"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/per-app-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/per-app-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-perapprouting-proxychains-enable"></a>
|
||
## services\.proxy-suite\.perAppRouting\.proxychains\.enable
|
||
|
||
|
||
|
||
Whether to enable proxychains-backed perAppRouting profiles\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/per-app-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/per-app-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-perapprouting-proxychains-proxydns"></a>
|
||
## services\.proxy-suite\.perAppRouting\.proxychains\.proxyDns
|
||
|
||
|
||
|
||
Whether generated proxychains wrappers should resolve DNS through
|
||
the proxy instead of the local resolver\. This maps to proxychains-ng
|
||
proxy_dns\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/per-app-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/per-app-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-perapprouting-proxychains-quiet"></a>
|
||
## services\.proxy-suite\.perAppRouting\.proxychains\.quiet
|
||
|
||
|
||
|
||
Whether generated proxychains wrappers should suppress their normal
|
||
startup chatter\. This maps to proxychains-ng quiet_mode\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/per-app-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/per-app-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-enable"></a>
|
||
## services\.proxy-suite\.proxy\.enable
|
||
|
||
|
||
|
||
Whether to configure and run the proxy backend services\.
|
||
This is disabled by default; enable it explicitly and choose at least
|
||
one backend with proxy\.singBox\.enable or proxy\.xray\.enable\. Enabling
|
||
both runs sing-box as the frontend and XRay as a sidecar for outbounds
|
||
that require XRay\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-auth-password"></a>
|
||
## services\.proxy-suite\.proxy\.auth\.password
|
||
|
||
|
||
|
||
Optional inline password for the local SOCKS5/HTTP mixed inbound\.
|
||
Convenient for testing, but the password ends up in the Nix store\.
|
||
|
||
Prefer auth\.passwordFile for real deployments\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string matching the pattern \[^\[:space:]]+
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"change-me"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-auth-passwordfile"></a>
|
||
## services\.proxy-suite\.proxy\.auth\.passwordFile
|
||
|
||
|
||
|
||
Runtime path to a file containing the local proxy password\.
|
||
Intended for use with secret managers so the password stays out of
|
||
the Nix store\. The file is read when proxy-suite-socks starts\.
|
||
|
||
If perAppRouting\.proxychains\.enable is also used, keep this password
|
||
as a single non-whitespace token so it can be written to the
|
||
proxychains-ng config format\. The generated proxychains config is
|
||
readable by members of userControl\.group\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/proxy-suite-local-proxy-password"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-auth-username"></a>
|
||
## services\.proxy-suite\.proxy\.auth\.username
|
||
|
||
|
||
|
||
Optional username for the local SOCKS5/HTTP mixed inbound\.
|
||
|
||
Set this together with exactly one of auth\.password or
|
||
auth\.passwordFile to require clients to authenticate before using the
|
||
local proxy\. Leave unset to keep the local proxy unauthenticated\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string matching the pattern \[^\[:space:]]+
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"proxy-user"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-dns-local"></a>
|
||
## services\.proxy-suite\.proxy\.dns\.local
|
||
|
||
|
||
|
||
DNS upstream used for the built-in “local” resolver role\.
|
||
This resolver is also used as the backend’s default domain resolver\.
|
||
|
||
The module keeps detour policy automatic: in mixed/TProxy mode and
|
||
per-app-routing TUN mode, “local” stays on the direct path (without an
|
||
explicit detour); in global TUN mode, it is forced through the proxy to avoid
|
||
auto_redirect conflicts\.
|
||
|
||
|
||
|
||
*Type:*
|
||
submodule
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
{
|
||
address = "1.1.1.1";
|
||
port = 53;
|
||
type = "udp";
|
||
}
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
{
|
||
address = "9.9.9.9";
|
||
port = 53;
|
||
type = "tcp";
|
||
}
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-dns\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-dns.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-dns-local-address"></a>
|
||
## services\.proxy-suite\.proxy\.dns\.local\.address
|
||
|
||
|
||
|
||
Resolver address or hostname used for this DNS upstream\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string matching the pattern \.+
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"1.1.1.1"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-dns\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-dns.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-dns-local-port"></a>
|
||
## services\.proxy-suite\.proxy\.dns\.local\.port
|
||
|
||
|
||
|
||
Destination port for this DNS upstream\.
|
||
|
||
|
||
|
||
*Type:*
|
||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
53
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
853
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-dns\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-dns.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-dns-local-type"></a>
|
||
## services\.proxy-suite\.proxy\.dns\.local\.type
|
||
|
||
|
||
|
||
DNS transport type for this upstream resolver\.
|
||
|
||
|
||
|
||
*Type:*
|
||
one of “udp”, “tcp”, “tls”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"udp"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"tls"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-dns\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-dns.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-dns-remote"></a>
|
||
## services\.proxy-suite\.proxy\.dns\.remote
|
||
|
||
|
||
|
||
DNS upstream used for the built-in “remote” resolver role\.
|
||
|
||
This resolver always detours through the proxy and becomes the
|
||
generated dns\.final target when proxy\.proxyByDefault = true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
submodule
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
{
|
||
address = "1.1.1.1";
|
||
port = 53;
|
||
type = "udp";
|
||
}
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
{
|
||
address = "1.1.1.1";
|
||
port = 853;
|
||
type = "tls";
|
||
}
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-dns\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-dns.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-dns-remote-address"></a>
|
||
## services\.proxy-suite\.proxy\.dns\.remote\.address
|
||
|
||
|
||
|
||
Resolver address or hostname used for this DNS upstream\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string matching the pattern \.+
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"1.1.1.1"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-dns\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-dns.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-dns-remote-port"></a>
|
||
## services\.proxy-suite\.proxy\.dns\.remote\.port
|
||
|
||
|
||
|
||
Destination port for this DNS upstream\.
|
||
|
||
|
||
|
||
*Type:*
|
||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
53
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
853
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-dns\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-dns.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-dns-remote-type"></a>
|
||
## services\.proxy-suite\.proxy\.dns\.remote\.type
|
||
|
||
|
||
|
||
DNS transport type for this upstream resolver\.
|
||
|
||
|
||
|
||
*Type:*
|
||
one of “udp”, “tcp”, “tls”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"udp"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"tls"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-dns\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-dns.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-listenaddress"></a>
|
||
## services\.proxy-suite\.proxy\.listenAddress
|
||
|
||
|
||
|
||
Address for the local SOCKS5/HTTP inbound to bind to\.
|
||
This affects the proxy-suite-socks service\.
|
||
|
||
Use “0\.0\.0\.0” only if you intentionally want to expose the proxy to
|
||
other machines on your network\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"127.0.0.1"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"127.0.0.1"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds
|
||
|
||
|
||
|
||
List of static proxy outbounds\.
|
||
Set exactly one of urlFile, url, singBoxJson, xrayJson, or the
|
||
deprecated json field per entry\. Backend-specific raw JSON fields are
|
||
only valid with their matching backend\.
|
||
|
||
At least one outbound or one subscription is required when
|
||
proxy\.enable = true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of (submodule)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
{
|
||
tag = "de-vps";
|
||
urlFile = "/run/secrets/proxy-de-url";
|
||
}
|
||
{
|
||
tag = "nl-vps";
|
||
url = "hy2://password@example.com:443?sni=example.com";
|
||
}
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-backend"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.backend
|
||
|
||
|
||
|
||
Backend preference for this outbound when both SingBox and XRay are
|
||
enabled\. “auto” uses SingBox when the URL or JSON can be represented
|
||
there and falls back to XRay for XRay-only transports such as XHTTP
|
||
or ECH\. Ignored by single-backend configurations\.
|
||
|
||
|
||
|
||
*Type:*
|
||
one of “auto”, “sing-box”, “xray”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"auto"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"xray"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-routing-domains"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.routing\.domains
|
||
|
||
|
||
|
||
Domain suffixes to match in this routing rule\.
|
||
Leave empty to skip domain-based matching for this rule entry\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"youtube.com"
|
||
"discord.com"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-routing-geoips"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.routing\.geoips
|
||
|
||
|
||
|
||
sing-geoip rule-set names to match in this routing rule\.
|
||
Each name becomes a backend geoip rule-set reference\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"us"
|
||
"de"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-routing-geosites"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.routing\.geosites
|
||
|
||
|
||
|
||
sing-geosite rule-set names to match in this routing rule\.
|
||
Each name becomes a backend geosite rule-set reference\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"netflix"
|
||
"google"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-routing-ips"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.routing\.ips
|
||
|
||
|
||
|
||
IP CIDRs to match in this routing rule\.
|
||
Leave empty to skip IP-based matching for this rule entry\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"1.1.1.0/24"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-singboxjson"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.singBoxJson
|
||
|
||
|
||
|
||
Raw sing-box outbound configuration as a Nix attribute set\.
|
||
Embedded directly into the config at build time\. The tag field
|
||
is overridden by the outbound’s tag option\.
|
||
|
||
Set exactly one of urlFile, url, singBoxJson, xrayJson, or json for
|
||
each outbound\.
|
||
Use this when the proxy definition is easier to generate as native Nix
|
||
than as a single URL string\. Only valid with the SingBox backend\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or (attribute set)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
{
|
||
server = "example.com";
|
||
server_port = 443;
|
||
type = "vless";
|
||
uuid = "...";
|
||
}
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-tag"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.tag
|
||
|
||
|
||
|
||
Outbound tag used in routing rules and multi-outbound selection\.
|
||
|
||
With selection = “selector” or “urltest”, each outbound keeps its own
|
||
tag and can be selected directly\. With selection = “first”, proxy-suite
|
||
routes through a single active outbound tagged “proxy”, so individual
|
||
proxy tags are mainly useful for documentation and config structure\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"vps-de"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-url"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.url
|
||
|
||
|
||
|
||
Literal proxy URL\. Convenient for non-secret configs, but the URL
|
||
will end up in the Nix store\.
|
||
|
||
Set exactly one of urlFile, url, or json for each outbound\.
|
||
Prefer urlFile for real credentials\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"hy2://password@example.com:443?sni=example.com"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-urlfile"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.urlFile
|
||
|
||
|
||
|
||
Runtime path to a file containing the proxy URL\.
|
||
Intended for use with secret managers (sops-nix, agenix, etc\.)\.
|
||
The file is read at service start time and never lands in the Nix store\.
|
||
|
||
Set exactly one of urlFile, url, or json for each outbound\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/my-proxy-url"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-outbounds-xrayjson"></a>
|
||
## services\.proxy-suite\.proxy\.outbounds\.\*\.xrayJson
|
||
|
||
|
||
|
||
Raw XRay outbound configuration as a Nix attribute set\.
|
||
Embedded directly into the config at build time\. The tag field is
|
||
overridden by the outbound’s tag option\.
|
||
|
||
Set exactly one of urlFile, url, singBoxJson, xrayJson, or json for
|
||
each outbound\. Only valid with the XRay backend\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or (attribute set)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
{
|
||
protocol = "vless";
|
||
settings = {
|
||
address = "example.com";
|
||
encryption = "none";
|
||
id = "...";
|
||
port = 443;
|
||
};
|
||
}
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-port"></a>
|
||
## services\.proxy-suite\.proxy\.port
|
||
|
||
|
||
|
||
Listen port for the local SOCKS5/HTTP proxy inbound provided by
|
||
proxy-suite-socks\. SingBox exposes SOCKS5 and HTTP on this port\.
|
||
XRay’s Socks inbound also accepts SOCKS and HTTP\.
|
||
|
||
|
||
|
||
*Type:*
|
||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
1080
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
1080
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-proxybydefault"></a>
|
||
## services\.proxy-suite\.proxy\.proxyByDefault
|
||
|
||
|
||
|
||
Whether traffic that does not match any explicit routing rule should
|
||
go through the proxy or go direct\.
|
||
|
||
This affects the generated backend route final and DNS final in the
|
||
config\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-enablerudirect"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.enableRuDirect
|
||
|
||
|
||
|
||
Automatically append “category-ru” to routing\.direct\.geosites and
|
||
“ru” to routing\.direct\.geoips\.
|
||
|
||
This is additive: user-defined routing\.direct\.\* entries still apply\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-block-domains"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.block\.domains
|
||
|
||
|
||
|
||
Domain suffixes to block entirely\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"ads.example.com"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-block-geoips"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.block\.geoips
|
||
|
||
|
||
|
||
sing-geoip names to block\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"cn"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-block-geosites"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.block\.geosites
|
||
|
||
|
||
|
||
sing-geosite names to block\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"category-ads-all"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-block-ips"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.block\.ips
|
||
|
||
|
||
|
||
IP CIDRs to block\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"203.0.113.0/24"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-direct-domains"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.direct\.domains
|
||
|
||
|
||
|
||
Domain suffixes to send direct (bypass proxy)\.
|
||
Merged with zapret-synced direct domains when zapret direct sync
|
||
options are enabled\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"internal.example"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-direct-geoips"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.direct\.geoips
|
||
|
||
|
||
|
||
sing-geoip names to send direct\.
|
||
“ru” is added automatically when enableRuDirect = true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"ru"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-direct-geosites"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.direct\.geosites
|
||
|
||
|
||
|
||
sing-geosite names to send direct\.
|
||
“category-ru” is added automatically when enableRuDirect = true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"category-ru"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-direct-ips"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.direct\.ips
|
||
|
||
|
||
|
||
IP CIDRs to send direct\.
|
||
Merged with zapret-synced direct IPs when the corresponding zapret
|
||
sync options are enabled\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"10.10.0.0/16"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-proxy-domains"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.proxy\.domains
|
||
|
||
Domain suffixes to match in this routing rule\.
|
||
Leave empty to skip domain-based matching for this rule entry\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"youtube.com"
|
||
"discord.com"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-proxy-geoips"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.proxy\.geoips
|
||
|
||
|
||
|
||
sing-geoip rule-set names to match in this routing rule\.
|
||
Each name becomes a backend geoip rule-set reference\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"us"
|
||
"de"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-proxy-geosites"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.proxy\.geosites
|
||
|
||
|
||
|
||
sing-geosite rule-set names to match in this routing rule\.
|
||
Each name becomes a backend geosite rule-set reference\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"netflix"
|
||
"google"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-proxy-ips"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.proxy\.ips
|
||
|
||
|
||
|
||
IP CIDRs to match in this routing rule\.
|
||
Leave empty to skip IP-based matching for this rule entry\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"1.1.1.0/24"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-rules"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.rules
|
||
|
||
|
||
|
||
Explicit routing rules evaluated before global proxy/direct/block lists\.
|
||
Each rule routes matching traffic to a specific outbound tag\.
|
||
|
||
The outbound can be a configured outbound tag (useful with selector/urltest),
|
||
or one of: “proxy” (active proxy), “direct”, “block”\.
|
||
|
||
Order is preserved\. The first matching rule wins in the active backend\.
|
||
With selection = “first”, non-built-in outbound tags are effectively
|
||
routed to the single active “proxy” outbound\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of (submodule)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
{
|
||
domains = [
|
||
"netflix.com"
|
||
];
|
||
geosites = [
|
||
"netflix"
|
||
];
|
||
outbound = "vps-de";
|
||
}
|
||
{
|
||
domains = [
|
||
"internal.corp"
|
||
];
|
||
outbound = "direct";
|
||
}
|
||
{
|
||
domains = [
|
||
"ads.example.com"
|
||
];
|
||
outbound = "block";
|
||
}
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-rules-domains"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.rules\.\*\.domains
|
||
|
||
|
||
|
||
Domain suffixes to match in this routing rule\.
|
||
Leave empty to skip domain-based matching for this rule entry\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"youtube.com"
|
||
"discord.com"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-rules-geoips"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.rules\.\*\.geoips
|
||
|
||
|
||
|
||
sing-geoip rule-set names to match in this routing rule\.
|
||
Each name becomes a backend geoip rule-set reference\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"us"
|
||
"de"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-rules-geosites"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.rules\.\*\.geosites
|
||
|
||
|
||
|
||
sing-geosite rule-set names to match in this routing rule\.
|
||
Each name becomes a backend geosite rule-set reference\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"netflix"
|
||
"google"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-rules-ips"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.rules\.\*\.ips
|
||
|
||
|
||
|
||
IP CIDRs to match in this routing rule\.
|
||
Leave empty to skip IP-based matching for this rule entry\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"1.1.1.0/24"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-routing-rules-outbound"></a>
|
||
## services\.proxy-suite\.proxy\.routing\.rules\.\*\.outbound
|
||
|
||
|
||
|
||
Target outbound tag\. Can be a specific server tag (only useful with
|
||
selection = “selector” or “urltest”), or one of the built-in tags:
|
||
“proxy” (the active proxy outbound), “direct”, “block”\.
|
||
|
||
With selection = “first”, named proxy outbounds are collapsed into the
|
||
single active “proxy” outbound at runtime, so per-tag routing no longer
|
||
distinguishes between individual proxy servers\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"vps-de"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-routing\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-routing.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-selection"></a>
|
||
## services\.proxy-suite\.proxy\.selection
|
||
|
||
|
||
|
||
How to pick between multiple proxy outbounds:
|
||
|
||
- “first”: route through a single active outbound tagged “proxy”\.
|
||
The first static outbound is used, or the first subscription
|
||
outbound if only subscriptions are configured\.
|
||
- “selector”: create a Clash-compatible selector outbound tagged
|
||
“proxy” and keep all configured outbounds available for manual
|
||
switching via the Clash API\.
|
||
- “urltest”: create automatic latency testing tagged “proxy” and
|
||
keep all configured outbounds available so the active backend can
|
||
periodically probe and switch to a faster one\.
|
||
|
||
proxy\.singBox\.clashApiPort is only used with “selector” or “urltest”
|
||
on the SingBox backend\. “selector” is SingBox-only\. “urltest” maps to
|
||
SingBox urltest or XRay observatory/balancer depending on backend\.
|
||
urlTest\.\* options are only used with “urltest”\.
|
||
Per-outbound tags are only individually meaningful with “selector”
|
||
or “urltest”\.
|
||
|
||
|
||
|
||
*Type:*
|
||
one of “first”, “selector”, “urltest”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"first"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"urltest"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-singbox-enable"></a>
|
||
## services\.proxy-suite\.proxy\.singBox\.enable
|
||
|
||
|
||
|
||
Whether to enable SingBox proxy backend\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-singbox-package"></a>
|
||
## services\.proxy-suite\.proxy\.singBox\.package
|
||
|
||
|
||
|
||
sing-box package used by proxy-suite systemd services\.
|
||
|
||
Override this to pin or test a specific sing-box build when upstream
|
||
protocol behavior changes\.
|
||
|
||
|
||
|
||
*Type:*
|
||
package
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
pkgs.sing-box
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
pkgs.sing-box
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-singbox-clashapiport"></a>
|
||
## services\.proxy-suite\.proxy\.singBox\.clashApiPort
|
||
|
||
|
||
|
||
Port for the Clash-compatible REST API exposed by sing-box\.
|
||
Only used when proxy\.selection is “selector” or “urltest”\. Ignored
|
||
in “first” mode because there is no selector-style outbound to
|
||
control\.
|
||
|
||
|
||
|
||
*Type:*
|
||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
9090
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
9090
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-singbox-urltest-tolerance"></a>
|
||
## services\.proxy-suite\.proxy\.singBox\.urlTest\.tolerance
|
||
|
||
|
||
|
||
Latency tolerance in milliseconds for sing-box urltest\. The current
|
||
proxy is only replaced when a competing one is faster by more than
|
||
this value\.
|
||
|
||
Only used when proxy\.selection = “urltest” and the SingBox backend
|
||
is active\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
50
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
100
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-subscriptionupdateinterval"></a>
|
||
## services\.proxy-suite\.proxy\.subscriptionUpdateInterval
|
||
|
||
|
||
|
||
How often the proxy-suite-subscription-update timer fires and refreshes
|
||
all subscription caches\. Accepts any systemd time span string
|
||
(e\.g\. “1h”, “6h”, “1d”, “12h”)\.
|
||
|
||
Only used when proxy\.subscriptions is non-empty\. The timer also runs
|
||
once shortly after boot\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"1d"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"6h"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-subscriptions"></a>
|
||
## services\.proxy-suite\.proxy\.subscriptions
|
||
|
||
|
||
|
||
Subscription URLs that provide dynamic lists of proxy outbounds\.
|
||
Each URL must return a base64-encoded newline-separated list of proxy URIs
|
||
(standard v2rayN / Clash subscription format) or plain text of the same\.
|
||
|
||
On first service start, each subscription is fetched live and cached
|
||
under /var/lib/proxy-suite/subscriptions/\<backend>/\<tag>\.json\. Later restarts
|
||
reuse the cache, so ordinary service restarts do not need network access\.
|
||
|
||
A systemd timer (proxy-suite-subscription-update) refreshes all caches
|
||
on the interval set by subscriptionUpdateInterval and restarts the
|
||
running proxy services after a successful refresh\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of (submodule)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
{
|
||
tag = "community";
|
||
url = "https://example.com/sub/token";
|
||
}
|
||
{
|
||
tag = "private";
|
||
urlFile = "/run/secrets/private-sub-url";
|
||
}
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-subscriptions-tag"></a>
|
||
## services\.proxy-suite\.proxy\.subscriptions\.\*\.tag
|
||
|
||
|
||
|
||
Unique identifier for this subscription\.
|
||
Used as a prefix for all outbound tags generated from its proxy list,
|
||
e\.g\. “my-sub” -> tags like “my-sub-Server-DE”\.
|
||
|
||
This value is also used as the subscription cache filename stem under
|
||
/var/lib/proxy-suite/subscriptions/\<backend>/, so it must be a safe
|
||
identifier\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string matching the pattern ^\[A-Za-z0-9]\[A-Za-z0-9\._-]\*$
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"community-list"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-subscriptions-url"></a>
|
||
## services\.proxy-suite\.proxy\.subscriptions\.\*\.url
|
||
|
||
|
||
|
||
Literal subscription URL\. The response must be a base64-encoded
|
||
newline-separated list of proxy URIs (standard v2rayN format) or
|
||
a plain-text list of the same\.
|
||
|
||
This value is embedded in the Nix store\. Prefer urlFile for private
|
||
subscription links or tokens\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"https://example.com/sub/token123"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-subscriptions-urlfile"></a>
|
||
## services\.proxy-suite\.proxy\.subscriptions\.\*\.urlFile
|
||
|
||
|
||
|
||
Runtime path to a file containing the subscription URL\.
|
||
Intended for use with secret managers (sops-nix, agenix, etc\.)\.
|
||
The file is read at service start time and never lands in the Nix store\.
|
||
|
||
Set exactly one of urlFile or url for each subscription entry\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/proxy-subscription-url"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-enable"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.enable
|
||
|
||
|
||
|
||
Whether to enable global proxy TProxy mode service\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-autostart"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.autostart
|
||
|
||
|
||
|
||
Whether to start proxy-suite-tproxy automatically during boot by
|
||
attaching it to multi-user\.target\.
|
||
Cannot be enabled together with proxy\.tun\.autostart\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-fwmark"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.fwmark
|
||
|
||
|
||
|
||
Mark applied to intercepted packets in global TProxy mode\.
|
||
A matching ` ip rule ` routes this mark to
|
||
proxy\.tproxy\.routeTable, which points traffic to
|
||
loopback for local proxy processing\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
1
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
1
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-localsubnets"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.localSubnets
|
||
|
||
|
||
|
||
Subnets whose traffic bypasses global TProxy interception, except
|
||
DNS (port 53)\.
|
||
|
||
Typically this should include your LAN subnet(s)\. VM bridge networks
|
||
should usually go here too, or use zapret\.cidrExemption for
|
||
subnet-specific NFQUEUE exemption on the zapret side\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[
|
||
"192.168.0.0/16"
|
||
]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"192.168.0.0/16"
|
||
"10.0.0.0/8"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-perapp-enable"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.perApp\.enable
|
||
|
||
|
||
|
||
Whether to enable per-app-scoped proxy TProxy backend for perAppRouting profiles\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-perapp-fwmark"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.perApp\.fwmark
|
||
|
||
|
||
|
||
Packet mark used to steer wrapped app traffic into the per-app-scoped
|
||
TProxy policy-routing table\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
17
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
17
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-perapp-localsubnets"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.perApp\.localSubnets
|
||
|
||
|
||
|
||
Subnets whose traffic bypasses per-app-scoped TProxy interception,
|
||
except DNS (port 53)\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[
|
||
"192.168.0.0/16"
|
||
]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"192.168.0.0/16"
|
||
"10.0.0.0/8"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-perapp-routetable"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.perApp\.routeTable
|
||
|
||
|
||
|
||
Policy-routing table used by the per-app-scoped TProxy backend\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
102
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
102
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-port"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.port
|
||
|
||
|
||
|
||
Local listen port for the proxy backend’s TProxy inbound\.
|
||
nftables redirection created by proxy-suite-tproxy sends intercepted
|
||
TCP/UDP traffic to this port\.
|
||
|
||
|
||
|
||
*Type:*
|
||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
1085
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
1085
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-proxymark"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.proxyMark
|
||
|
||
|
||
|
||
Mark applied to backend egress packets in global TProxy mode so
|
||
they bypass re-interception and do not loop back into the
|
||
transparent proxy path\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
2
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
2
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tproxy-routetable"></a>
|
||
## services\.proxy-suite\.proxy\.tproxy\.routeTable
|
||
|
||
|
||
|
||
Policy-routing table number used for global TProxy interception flow\.
|
||
The module installs a local default route in this table and binds it
|
||
to proxy\.tproxy\.fwmark\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
100
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
100
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tproxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tproxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-enable"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.enable
|
||
|
||
|
||
|
||
Whether to enable global proxy TUN mode service\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-address"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.address
|
||
|
||
|
||
|
||
Address assigned to the global TUN interface in CIDR notation\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"172.19.0.1/30"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"172.19.0.1/30"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-autostart"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.autostart
|
||
|
||
|
||
|
||
Whether to start proxy-suite-tun automatically during boot by
|
||
attaching it to multi-user\.target\.
|
||
Cannot be enabled together with proxy\.tproxy\.autostart\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-interface"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.interface
|
||
|
||
|
||
|
||
Name of the TUN interface created by proxy-suite-tun\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"singtun0"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"singtun0"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-mtu"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.mtu
|
||
|
||
|
||
|
||
MTU for the global TUN interface created by proxy-suite-tun\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
1400
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
1400
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-perapp-enable"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.perApp\.enable
|
||
|
||
|
||
|
||
Whether to enable per-app-scoped proxy TUN backend for perAppRouting profiles\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-perapp-address"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.perApp\.address
|
||
|
||
|
||
|
||
Address assigned to the dedicated per-app-routing TUN interface in CIDR
|
||
notation\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"172.20.0.1/30"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"172.20.0.1/30"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-perapp-fwmark"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.perApp\.fwmark
|
||
|
||
|
||
|
||
Packet mark used to steer wrapped app traffic into the per-app-scoped
|
||
TUN policy-routing table\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
16
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
16
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-perapp-interface"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.perApp\.interface
|
||
|
||
|
||
|
||
Name of the dedicated per-app-routing TUN interface used by
|
||
proxy-suite-per-app-tun\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"psperapptun0"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"psperapptun0"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-perapp-localsubnets"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.perApp\.localSubnets
|
||
|
||
|
||
|
||
Destination subnets that should bypass the per-app-scoped TUN mark,
|
||
so wrapped apps can still reach local LAN resources directly\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[
|
||
"192.168.0.0/16"
|
||
]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"192.168.0.0/16"
|
||
"10.0.0.0/8"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-perapp-mtu"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.perApp\.mtu
|
||
|
||
|
||
|
||
MTU for the dedicated per-app-routing TUN interface\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
1400
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
1400
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-tun-perapp-routetable"></a>
|
||
## services\.proxy-suite\.proxy\.tun\.perApp\.routeTable
|
||
|
||
|
||
|
||
Policy-routing table used by the per-app-scoped TUN backend\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
101
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
101
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-tun\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-tun.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-urltest-interval"></a>
|
||
## services\.proxy-suite\.proxy\.urlTest\.interval
|
||
|
||
|
||
|
||
How often the active backend re-tests all outbounds\. Accepts a Go
|
||
duration string (e\.g\. “1m”, “3m”, “10m”)\.
|
||
Only used when selection = “urltest”\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"3m"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"1m"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-urltest-url"></a>
|
||
## services\.proxy-suite\.proxy\.urlTest\.url
|
||
|
||
|
||
|
||
URL that the active backend fetches through each proxy to measure latency\.
|
||
Only used when selection = “urltest”\.
|
||
|
||
Set this to a URL that is actually blocked in your region (e\.g\.
|
||
“https://telegram\.org”) so that only proxies that bypass the
|
||
blocking get selected\. If left at the default, any responding proxy
|
||
wins – including ones that might not unblock your target site\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"https://www.gstatic.com/generate_204"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"https://telegram.org"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box-outbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box-outbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-xray-enable"></a>
|
||
## services\.proxy-suite\.proxy\.xray\.enable
|
||
|
||
|
||
|
||
Whether to enable XRay proxy backend\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxy-xray-package"></a>
|
||
## services\.proxy-suite\.proxy\.xray\.package
|
||
|
||
|
||
|
||
XRay package used by proxy-suite systemd services\.
|
||
|
||
Override this to pin or test a specific XRay build when upstream
|
||
protocol behavior changes\.
|
||
|
||
|
||
|
||
*Type:*
|
||
package
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
pkgs.xray
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
pkgs.xray
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/sing-box\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/sing-box.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-enable"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.enable
|
||
|
||
|
||
|
||
Whether to enable server-side proxy inbounds (accept connections from outside)\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-package"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.package
|
||
|
||
|
||
|
||
XRay package serving the inbounds\.
|
||
|
||
This is independent of proxy\.xray\.package: the inbound service always
|
||
runs XRay, whichever backend the client side uses, and works with
|
||
proxy\.enable = false\.
|
||
|
||
|
||
|
||
*Type:*
|
||
package
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
pkgs.xray
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
pkgs.xray
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-blockprivate"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.blockPrivate
|
||
|
||
|
||
|
||
Send traffic destined for private and loopback addresses to the block
|
||
outbound\.
|
||
|
||
On by default: without it, anyone holding an inbound credential can
|
||
reach the server’s LAN, its localhost services, and the local proxy
|
||
ports of proxy-suite itself\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-blockru"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.blockRu
|
||
|
||
|
||
|
||
Send traffic destined for Russian domains and IP ranges
|
||
(“category-ru” geosite, “ru” geoip) to the block outbound\.
|
||
|
||
On by default: a relay whose whole point is leaving the RKN-filtered
|
||
network has no reason to carry traffic back into it, and it keeps the
|
||
server out of the way of domestic services that geo-check\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners
|
||
|
||
|
||
|
||
Named inbound listeners\. The attribute name becomes the inbound tag
|
||
used in routing rules and in ` proxy-ctl inbounds `\.
|
||
|
||
|
||
|
||
*Type:*
|
||
attribute set of (submodule)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
{ }
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
{
|
||
vless-reality = {
|
||
type = "vless";
|
||
port = 443;
|
||
users = [ { uuidFile = "/run/secrets/proxy-inbound-uuid"; } ];
|
||
flow = "xtls-rprx-vision";
|
||
reality = {
|
||
enable = true;
|
||
dest = "www.microsoft.com:443";
|
||
serverNames = [ "www.microsoft.com" ];
|
||
privateKeyFile = "/run/secrets/proxy-inbound-reality-key";
|
||
publicKey = "jNXH...";
|
||
shortIds = [ "0123abcd" ];
|
||
};
|
||
};
|
||
}
|
||
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-flow"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.flow
|
||
|
||
|
||
|
||
VLESS flow control\. “xtls-rprx-vision” is the usual pairing with
|
||
REALITY on the “raw” transport; it is not valid over ws, grpc,
|
||
httpupgrade, or xhttp\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or value “xtls-rprx-vision” (singular enum)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"xtls-rprx-vision"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-jsonfile"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.jsonFile
|
||
|
||
|
||
|
||
Runtime path to a file containing a complete XRay inbound object as
|
||
JSON\. Read at service start time, so the whole inbound including its
|
||
credentials can be rendered by a secret manager and never lands in
|
||
the Nix store\. The tag field is overridden by the listener name\.
|
||
|
||
No share link is generated for listeners defined this way\.
|
||
|
||
Set exactly one of type, xrayJson, or jsonFile for each listener\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/proxy-inbound-vless.json"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-listenaddress"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.listenAddress
|
||
|
||
|
||
|
||
Address this listener binds\. The default accepts both IPv4 and IPv6
|
||
connections from anywhere\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string matching the pattern \[^\[:space:]]+
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"::"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"0.0.0.0"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-method"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.method
|
||
|
||
|
||
|
||
Shadowsocks cipher\. Ignored by other protocols\.
|
||
|
||
The 2022 ciphers require a base64 pre-shared key of the matching
|
||
length as the password, not a passphrase\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"2022-blake3-aes-128-gcm"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"aes-128-gcm"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-port"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.port
|
||
|
||
|
||
|
||
Port this listener binds\. Opened in the firewall automatically unless
|
||
proxyInbounds\.openFirewall is disabled\.
|
||
|
||
|
||
|
||
*Type:*
|
||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
443
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
443
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-reality"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.reality
|
||
|
||
|
||
|
||
REALITY settings for this listener\. Mutually exclusive with tls\.
|
||
|
||
|
||
|
||
*Type:*
|
||
submodule
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
{ }
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-reality-enable"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.reality\.enable
|
||
|
||
|
||
|
||
Enable REALITY on this listener\. Mutually exclusive with tls\.enable\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-reality-dest"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.reality\.dest
|
||
|
||
|
||
|
||
Real TLS server that unauthenticated probes are proxied to\. Must be a
|
||
host:port that serves TLS 1\.3 with HTTP/2\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"www.microsoft.com:443"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"www.microsoft.com:443"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-reality-privatekey"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.reality\.privateKey
|
||
|
||
|
||
|
||
Literal REALITY x25519 private key\.
|
||
|
||
This value is embedded in the Nix store\. Prefer privateKeyFile\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"gG1Yz..."
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-reality-privatekeyfile"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.reality\.privateKeyFile
|
||
|
||
|
||
|
||
Runtime path to the REALITY x25519 private key, as produced by
|
||
` xray x25519 `\. Read at service start time; never lands in the Nix
|
||
store\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/proxy-inbound-reality-key"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-reality-publickey"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.reality\.publicKey
|
||
|
||
|
||
|
||
REALITY x25519 public key matching privateKeyFile, as printed
|
||
alongside it by ` xray x25519 `\. Not a secret: clients need it, and it
|
||
is what generated share links carry as ` pbk `\.
|
||
|
||
Required when proxyInbounds\.shareLinks is enabled\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"jNXH..."
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-reality-servernames"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.reality\.serverNames
|
||
|
||
|
||
|
||
SNI values accepted by this listener\. These must be names the dest
|
||
server actually serves\. The first entry is used in share links\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"www.microsoft.com"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-reality-shortids"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.reality\.shortIds
|
||
|
||
|
||
|
||
Accepted REALITY short IDs (hex, up to 16 characters)\. The default
|
||
accepts the empty short ID\. The first entry is used in share links\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[
|
||
""
|
||
]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"0123abcd"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-tls"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.tls
|
||
|
||
|
||
|
||
TLS termination settings for this listener\. Mutually exclusive with
|
||
reality\.
|
||
|
||
|
||
|
||
*Type:*
|
||
submodule
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
{ }
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-tls-enable"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.tls\.enable
|
||
|
||
|
||
|
||
Terminate TLS on this listener\. Mutually exclusive with reality\.
|
||
|
||
Always on for trojan listeners regardless of this setting\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-tls-certificatefile"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.tls\.certificateFile
|
||
|
||
|
||
|
||
Runtime path to the PEM certificate chain\. Compose with
|
||
security\.acme to keep it renewed\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/var/lib/acme/example.com/fullchain.pem"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-tls-keyfile"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.tls\.keyFile
|
||
|
||
|
||
|
||
Runtime path to the PEM private key matching certificateFile\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/var/lib/acme/example.com/key.pem"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-tls-servername"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.tls\.serverName
|
||
|
||
|
||
|
||
SNI advertised in generated share links\. Defaults to
|
||
proxyInbounds\.serverAddress when unset\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"example.com"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-transport"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.transport
|
||
|
||
|
||
|
||
Stream transport settings for this listener\.
|
||
|
||
|
||
|
||
*Type:*
|
||
submodule
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
{ }
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-transport-host"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.transport\.host
|
||
|
||
|
||
|
||
Expected Host header for the “ws”, “httpupgrade”, and “xhttp”
|
||
transports\. Leave null to accept any host\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"cdn.example.com"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-transport-path"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.transport\.path
|
||
|
||
|
||
|
||
Request path for the “ws”, “httpupgrade”, and “xhttp” transports\.
|
||
Ignored by the other transports\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"/"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/download"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-transport-servicename"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.transport\.serviceName
|
||
|
||
|
||
|
||
gRPC service name for the “grpc” transport\. Ignored otherwise\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
""
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"GunService"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-transport-type"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.transport\.type
|
||
|
||
|
||
|
||
Stream transport for this listener\. “raw” is plain TCP and is what
|
||
REALITY setups normally use\.
|
||
|
||
|
||
|
||
*Type:*
|
||
one of “raw”, “ws”, “grpc”, “httpupgrade”, “xhttp”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"raw"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"ws"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-type"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.type
|
||
|
||
|
||
|
||
Proxy protocol served by this listener\.
|
||
|
||
Set exactly one of type, xrayJson, or jsonFile for each listener\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or one of “vless”, “vmess”, “trojan”, “shadowsocks”, “socks”, “http”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"vless"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-users"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.users
|
||
|
||
|
||
|
||
Accounts accepted by this listener\. vless and vmess use uuid/uuidFile;
|
||
trojan, shadowsocks, socks, and http use password/passwordFile\.
|
||
|
||
A share link is generated for the first user of each listener\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of (submodule)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
{
|
||
uuidFile = "/run/secrets/proxy-inbound-uuid";
|
||
}
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-users-name"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.users\.\*\.name
|
||
|
||
|
||
|
||
Optional label for this account\. Used as the share-link fragment so
|
||
clients show a readable server name, and as the XRay user email\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
""
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"phone"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-users-password"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.users\.\*\.password
|
||
|
||
|
||
|
||
Literal password for trojan, shadowsocks, socks, and http listeners\.
|
||
|
||
This value is embedded in the Nix store\. Prefer passwordFile for real
|
||
credentials\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"hunter2"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-users-passwordfile"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.users\.\*\.passwordFile
|
||
|
||
|
||
|
||
Runtime path to a file containing the account password\.
|
||
The file is read at service start time and never lands in the Nix store\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/proxy-inbound-password"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-users-uuid"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.users\.\*\.uuid
|
||
|
||
|
||
|
||
Literal UUID for vless/vmess accounts\.
|
||
|
||
This value is embedded in the Nix store\. Prefer uuidFile for real
|
||
credentials\.
|
||
|
||
Set exactly one of uuid or uuidFile for vless and vmess listeners\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"b831381d-6324-4d53-ad4f-8cda48b30811"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-users-uuidfile"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.users\.\*\.uuidFile
|
||
|
||
|
||
|
||
Runtime path to a file containing the account UUID\.
|
||
Intended for use with secret managers (sops-nix, agenix, etc\.)\.
|
||
The file is read at service start time and never lands in the Nix store\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/proxy-inbound-uuid"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-via"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.via
|
||
|
||
|
||
|
||
Egress for traffic arriving on this listener: “proxy” (out through
|
||
the local proxy stack, following its current selection), a
|
||
proxy\.outbounds tag (pinned to that specific server), “direct” (out
|
||
from this machine), or “block”\.
|
||
|
||
Give two listeners two different tags to have them leave through two
|
||
different servers\.
|
||
|
||
Leave null to inherit proxyInbounds\.via\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"nl-vps"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-listeners-name-xrayjson"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.listeners\.\<name>\.xrayJson
|
||
|
||
|
||
|
||
Raw XRay inbound configuration as a Nix attribute set, for protocols
|
||
or options the typed fields do not cover\. Embedded into the config at
|
||
build time, so avoid putting credentials here; use jsonFile instead\.
|
||
The tag field is overridden by the listener name\.
|
||
|
||
Set exactly one of type, xrayJson, or jsonFile for each listener\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or (attribute set)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
{
|
||
protocol = "dokodemo-door";
|
||
settings = {
|
||
address = "127.0.0.1";
|
||
port = 8080;
|
||
};
|
||
}
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-openfirewall"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.openFirewall
|
||
|
||
|
||
|
||
Add every listener port to networking\.firewall\. Disable to manage the
|
||
firewall yourself\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-serveraddress"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.serverAddress
|
||
|
||
|
||
|
||
Public hostname or address clients connect to\. Used for generated share
|
||
links only; it does not affect what the listeners bind\.
|
||
|
||
Leave null to detect the machine’s uplink IPv4 address at service start
|
||
time\. Set it explicitly when the server is behind NAT or reached by a
|
||
domain name\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string matching the pattern \[^\[:space:]]+
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"vpn.example.com"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-sharelinks"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.shareLinks
|
||
|
||
|
||
|
||
Write client share links to /run/proxy-suite-inbounds/links\.json at
|
||
service start, for ` proxy-ctl inbounds link ` and
|
||
` proxy-ctl inbounds qr `\.
|
||
|
||
The file is readable by root and the userControl group only, because
|
||
the links carry the listener credentials\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-via"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.via
|
||
|
||
|
||
|
||
Default egress for traffic arriving on the inbounds\. Individual
|
||
listeners can override it with their own via option, which is how two
|
||
listeners can leave through two different servers\.
|
||
|
||
- “proxy”: chain out through the local proxy stack, so the machine
|
||
relays rather than exits\. Requires proxy\.enable\. The inbound service
|
||
hands traffic to the SOCKS listener on proxy\.listenAddress, so it
|
||
follows whatever the client side is currently doing: the selected
|
||
outbound, subscriptions, urltest, and ` proxy-ctl select ` all apply,
|
||
with no second copy of that machinery\.
|
||
- A proxy\.outbounds tag: pin this traffic to that specific server,
|
||
independently of what the client side has selected\. The outbound is
|
||
built into the inbound service’s own config, so it must be one XRay
|
||
can represent (a url/urlFile entry, or xrayJson)\. Subscription
|
||
proxies cannot be named here, because their tags only exist at
|
||
runtime; use “proxy” to reach those\.
|
||
- “direct”: leave from this machine, making it a plain exit node\. Needs
|
||
no client-side proxy configuration at all\.
|
||
- “block”: drop the traffic\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"proxy"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"direct"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-proxyinbounds-zapretdirect"></a>
|
||
## services\.proxy-suite\.proxyInbounds\.zapretDirect
|
||
|
||
|
||
|
||
Route zapret’s hostlist domains and IPs to the direct outbound instead
|
||
of through the proxy, so this host’s own zapret unblocks them for
|
||
inbound clients\.
|
||
|
||
Has no effect unless zapret\.enable and zapret\.syncDirectRouting are on:
|
||
the rules are built from the same hostlists that already feed
|
||
routing\.direct on the client side, so they are empty when zapret is not
|
||
running here\.
|
||
|
||
On by default because a zapret host is by definition inside the filtered
|
||
network, and paying for a proxy hop to reach something zapret already
|
||
unblocks locally is pure latency\. Only applies to listeners using the
|
||
default via; an explicit per-listener via still wins\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/proxy-inbounds\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/proxy-inbounds.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-enable"></a>
|
||
## services\.proxy-suite\.sshProxy\.enable
|
||
|
||
|
||
|
||
Whether to enable SSH dynamic SOCKS5 proxy\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-asoutbound"></a>
|
||
## services\.proxy-suite\.sshProxy\.asOutbound
|
||
|
||
|
||
|
||
Add the SSH tunnel as a proxy-suite outbound tagged “ssh-proxy”\.
|
||
Requires proxy\.enable and an active SingBox or XRay backend\.
|
||
|
||
How the tunnel is built depends on the backend\. SingBox and hybrid
|
||
backends dial SSH natively, with no systemd unit and no local SOCKS5
|
||
listener\. XRay has no SSH outbound, so it keeps the OpenSSH ` ssh -D `
|
||
unit and proxies through its local SOCKS5 listener\. With
|
||
asOutbound = false the OpenSSH unit is always used, since the tunnel is
|
||
then a standalone listener the backends know nothing about\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-domainstrategy"></a>
|
||
## services\.proxy-suite\.sshProxy\.domainStrategy
|
||
|
||
|
||
|
||
Resolve destination domains locally before sending them through the
|
||
SSH SOCKS5 proxy, so the remote SSH server never has to resolve them\.
|
||
Null preserves the backend’s default behavior\.
|
||
|
||
Only applies to the XRay backend, which reaches the tunnel through the
|
||
local SOCKS5 listener and maps this onto the outbound’s
|
||
` sockopt.domainStrategy `\. SingBox and hybrid backends dial SSH natively
|
||
and resolve destinations themselves, so this option is ignored there\.
|
||
|
||
Note that local resolution hands the remote server an address chosen by
|
||
*this* machine’s DNS\. For anycast or geo-steered CDNs that address can
|
||
be unreachable from the remote network, which surfaces as connection
|
||
timeouts rather than as a DNS error\. Prefer fixing DNS on the remote
|
||
server if you have access to it\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or one of “prefer_ipv4”, “prefer_ipv6”, “ipv4_only”, “ipv6_only”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"prefer_ipv4"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-extraargs"></a>
|
||
## services\.proxy-suite\.sshProxy\.extraArgs
|
||
|
||
|
||
|
||
Additional arguments passed to OpenSSH before the destination\.
|
||
This can be used for options such as jump hosts or agent forwarding\.
|
||
|
||
OpenSSH path only: ignored when a SingBox or hybrid backend dials SSH
|
||
natively\. Keepalive, connect-timeout and restart behavior are already
|
||
set by the module, so they do not need to be repeated here\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"-o"
|
||
"ServerAliveInterval=30"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-host"></a>
|
||
## services\.proxy-suite\.sshProxy\.host
|
||
|
||
|
||
|
||
SSH server hostname or address\. Required when sshProxy\.enable is true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string matching the pattern \[^\[:space:]]+
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"ssh.example.com"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-hostkey"></a>
|
||
## services\.proxy-suite\.sshProxy\.hostKey
|
||
|
||
|
||
|
||
Accepted SSH host public keys, in ` authorized_keys ` one-line form\.
|
||
Used by the sing-box backend, which verifies host keys by value rather
|
||
than against a known-hosts file\.
|
||
|
||
List **every** key the server offers, not just one\. The host key
|
||
algorithm is negotiated, so pinning a single key fails the handshake
|
||
outright whenever the server picks a different algorithm\. Get the full
|
||
set with ` ssh-keyscan -p PORT HOST `, or from an existing known-hosts
|
||
entry with ` ssh-keygen -F '[HOST]:PORT' `\.
|
||
|
||
Leaving this empty accepts **any** host key, which allows a
|
||
machine-in-the-middle on the tunnel\. Set it whenever sshProxy\.asOutbound
|
||
is used with a SingBox or hybrid backend\.
|
||
|
||
Ignored by the XRay backend and by a standalone tunnel, which use
|
||
knownHostsFile and strictHostKeyChecking instead\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI..."
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-hostkeyfile"></a>
|
||
## services\.proxy-suite\.sshProxy\.hostKeyFile
|
||
|
||
|
||
|
||
Runtime path to a known-hosts file to read the accepted host keys from,
|
||
instead of listing them inline in sshProxy\.hostKey\. Every key recorded
|
||
there for ` host:sshPort ` is accepted, so a single known-hosts file stays
|
||
the one source of truth\. Hashed known-hosts files work\.
|
||
|
||
Read when the service starts, not at evaluation time, so the file never
|
||
enters the Nix store\. Set either this or sshProxy\.hostKey; if both are
|
||
set the file wins\.
|
||
|
||
Used by the sing-box backend\. The XRay backend and a standalone tunnel
|
||
pass knownHostsFile to OpenSSH instead\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/root/.ssh/known_hosts"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-identityfile"></a>
|
||
## services\.proxy-suite\.sshProxy\.identityFile
|
||
|
||
|
||
|
||
Runtime path to the SSH private key\. Leave unset to use the SSH agent
|
||
or OpenSSH’s normal identity-file lookup\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/proxy-suite-ssh-key"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-knownhostsfile"></a>
|
||
## services\.proxy-suite\.sshProxy\.knownHostsFile
|
||
|
||
|
||
|
||
Optional runtime path to the known-hosts file passed to OpenSSH\.
|
||
|
||
OpenSSH path only\. A SingBox or hybrid backend verifies host keys with
|
||
sshProxy\.hostKey instead\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/proxy-suite-ssh-known-hosts"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-listenaddress"></a>
|
||
## services\.proxy-suite\.sshProxy\.listenAddress
|
||
|
||
|
||
|
||
Local address for the SSH-created SOCKS5 listener\.
|
||
|
||
OpenSSH path only: a SingBox or hybrid backend dials SSH natively and
|
||
creates no local listener\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string matching the pattern \[^\[:space:]]+
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"127.0.0.1"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"127.0.0.1"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-listenport"></a>
|
||
## services\.proxy-suite\.sshProxy\.listenPort
|
||
|
||
|
||
|
||
Local port for the SSH-created SOCKS5 listener\.
|
||
|
||
OpenSSH path only: a SingBox or hybrid backend dials SSH natively and
|
||
creates no local listener\.
|
||
|
||
|
||
|
||
*Type:*
|
||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
1091
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
1091
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-serviceuser"></a>
|
||
## services\.proxy-suite\.sshProxy\.serviceUser
|
||
|
||
|
||
|
||
Unix user for the systemd SSH proxy service\. Leave unset to use
|
||
systemd’s default user\.
|
||
|
||
OpenSSH path only: ignored when a SingBox or hybrid backend dials SSH
|
||
natively and no separate unit is created\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string matching the pattern \[^\[:space:]]+
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"proxy"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-sshport"></a>
|
||
## services\.proxy-suite\.sshProxy\.sshPort
|
||
|
||
|
||
|
||
Remote SSH server port\.
|
||
|
||
|
||
|
||
*Type:*
|
||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
22
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
22
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-stricthostkeychecking"></a>
|
||
## services\.proxy-suite\.sshProxy\.strictHostKeyChecking
|
||
|
||
|
||
|
||
OpenSSH host-key verification policy\. Use “yes” with pinned
|
||
knownHostsFile contents for strict verification\.
|
||
|
||
OpenSSH path only\. A SingBox or hybrid backend verifies host keys with
|
||
sshProxy\.hostKey instead\.
|
||
|
||
|
||
|
||
*Type:*
|
||
one of “yes”, “accept-new”, “no”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"accept-new"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"yes"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-sshproxy-user"></a>
|
||
## services\.proxy-suite\.sshProxy\.user
|
||
|
||
|
||
|
||
SSH login user\. Required when sshProxy\.enable is true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string matching the pattern \[^\[:space:]]+
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"root"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/ssh-proxy\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/ssh-proxy.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-enable"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.enable
|
||
|
||
|
||
|
||
Whether to enable Telegram MTProto WebSocket proxy\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-bufkb"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.bufKb
|
||
|
||
|
||
|
||
Socket send and receive buffer size for tg-ws-proxy, in KiB\.
|
||
|
||
|
||
|
||
*Type:*
|
||
integer between 4 and 2147483647 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
256
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
512
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-bypasstransparentproxy"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.bypassTransparentProxy
|
||
|
||
|
||
|
||
Whether to keep tg-ws-proxy’s own relay connections out of proxy-suite
|
||
transparent routing backends\.
|
||
|
||
When enabled and global TUN or TProxy mode is configured, the
|
||
tg-ws-proxy systemd service receives a packet mark and an earlier
|
||
policy-routing rule back to the main table\. This prevents global TUN
|
||
from routing the local Telegram MTProto relay through the proxy backend again,
|
||
which can otherwise break tg-ws-proxy after enabling TUN mode\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-cfproxydomains"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.cfProxyDomains
|
||
|
||
|
||
|
||
User-defined Cloudflare-proxied domains used by tg-ws-proxy for
|
||
WebSocket fallback\. Each entry is passed as a separate
|
||
–cfproxy-domain argument\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"cdn.example.com"
|
||
"edge.example.net"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-cfproxyfallback"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.cfProxyFallback
|
||
|
||
|
||
|
||
Whether to allow tg-ws-proxy to use Cloudflare proxy fallback when
|
||
direct WebSocket routing is unavailable\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-cfproxyworkerdomains"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.cfProxyWorkerDomains
|
||
|
||
|
||
|
||
Cloudflare Worker domains used by tg-ws-proxy for WebSocket fallback\.
|
||
These are tried before other fallback methods\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"worker.example.com"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-dcips"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.dcIps
|
||
|
||
|
||
|
||
Mapping of Telegram DC IDs to relay IPs\.
|
||
Keys are DC IDs as strings and values are IPv4/IPv6 addresses used by
|
||
tg-ws-proxy for MTProto relay selection\.
|
||
|
||
|
||
|
||
*Type:*
|
||
attribute set of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
{ }
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
{
|
||
"2" = "149.154.167.220";
|
||
"203" = "149.154.167.220";
|
||
"4" = "149.154.167.220";
|
||
}
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-faketlsdomain"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.fakeTlsDomain
|
||
|
||
|
||
|
||
Optional SNI domain used to enable tg-ws-proxy Fake TLS masking\.
|
||
When set, tg-ws-proxy emits an ee-secret connection link\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string matching the pattern \.+
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"www.example.com"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-host"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.host
|
||
|
||
|
||
|
||
Bind address for tg-ws-proxy\.
|
||
Keep ` 127.0.0.1 ` for local-only usage; bind to ` 0.0.0.0 ` only when you
|
||
intentionally expose the proxy to other hosts\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"127.0.0.1"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"127.0.0.1"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-logbackups"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.logBackups
|
||
|
||
|
||
|
||
Number of rotated tg-ws-proxy log files to keep\.
|
||
Only used when tgWsProxy\.logFile is set\.
|
||
|
||
|
||
|
||
*Type:*
|
||
positive integer, meaning >0
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
1
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
3
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-logfile"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.logFile
|
||
|
||
|
||
|
||
Optional path where tg-ws-proxy writes rotating logs\.
|
||
When unset, tg-ws-proxy logs to stderr only\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/var/log/tg-ws-proxy.log"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-logmaxmb"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.logMaxMb
|
||
|
||
|
||
|
||
Maximum tg-ws-proxy log file size in MiB before rotation\.
|
||
Only used when tgWsProxy\.logFile is set\.
|
||
|
||
|
||
|
||
*Type:*
|
||
positive integer or floating point number, meaning >0
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
5.0
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
10.0
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-poolsize"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.poolSize
|
||
|
||
|
||
|
||
WebSocket connection pool size per Telegram DC\.
|
||
Set to 0 to disable connection pooling\.
|
||
|
||
|
||
|
||
*Type:*
|
||
unsigned integer, meaning >=0
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
4
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
8
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-port"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.port
|
||
|
||
|
||
|
||
TCP listen port for tg-ws-proxy\.
|
||
Telegram clients connect to this endpoint when using the local MTProto
|
||
WebSocket proxy\.
|
||
|
||
|
||
|
||
*Type:*
|
||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
1443
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
1076
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-proxyprotocol"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.proxyProtocol
|
||
|
||
|
||
|
||
Whether tg-ws-proxy should accept a PROXY protocol v1 header from a
|
||
fronting reverse proxy such as nginx or HAProxy\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-routingmark"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.routingMark
|
||
|
||
|
||
|
||
Packet mark used by tgWsProxy\.bypassTransparentProxy to bypass
|
||
proxy-suite transparent routing\. Override this only if it collides
|
||
with another local policy-routing mark on your host\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
4
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
4
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-secret"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.secret
|
||
|
||
|
||
|
||
MTProto proxy secret (hex string)\. Legacy inline form; this value ends up
|
||
in the Nix store\. Prefer secretFile for real deployments\.
|
||
|
||
Set exactly one of secret or secretFile when tgWsProxy\.enable = true\.
|
||
Generate one with: openssl rand -hex 16
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-secretfile"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.secretFile
|
||
|
||
|
||
|
||
Runtime path to a file containing the MTProto proxy secret\.
|
||
Intended for use with secret managers so the secret stays out of the Nix store\.
|
||
|
||
Set exactly one of secretFile or secret when tgWsProxy\.enable = true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"/run/secrets/tg-ws-proxy-secret"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tgwsproxy-verbose"></a>
|
||
## services\.proxy-suite\.tgWsProxy\.verbose
|
||
|
||
|
||
|
||
Whether to enable debug logging in tg-ws-proxy\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tray-enable"></a>
|
||
## services\.proxy-suite\.tray\.enable
|
||
|
||
|
||
|
||
Whether to enable system tray indicator for proxy-suite\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tray-autostart"></a>
|
||
## services\.proxy-suite\.tray\.autostart
|
||
|
||
|
||
|
||
Whether to install an XDG autostart entry for the tray application
|
||
for graphical users\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-tray-pollinterval"></a>
|
||
## services\.proxy-suite\.tray\.pollInterval
|
||
|
||
|
||
|
||
Tray status refresh interval in seconds\.
|
||
Lower values make UI state changes appear faster, while higher values
|
||
reduce background polling overhead\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
5
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
5
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-usercontrol-global-enable"></a>
|
||
## services\.proxy-suite\.userControl\.global\.enable
|
||
|
||
|
||
|
||
Whether members of userControl\.group may manage global
|
||
proxy-suite units without password prompts via commands like
|
||
` proxy-ctl tun on|off `, ` proxy-ctl tproxy on|off `,
|
||
` proxy-ctl restart `, or ` proxy-ctl subscription update `\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-usercontrol-group"></a>
|
||
## services\.proxy-suite\.userControl\.group
|
||
|
||
|
||
|
||
Local group allowed to use passwordless polkit-backed ` proxy-ctl `
|
||
commands when userControl\.global\.enable or userControl\.perApp\.enable
|
||
is turned on\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string matching the pattern ^\[a-z_]\[a-z0-9_-]\*$
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"proxy-suite"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"proxy-suite"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-usercontrol-perapp-enable"></a>
|
||
## services\.proxy-suite\.userControl\.perApp\.enable
|
||
|
||
|
||
|
||
Whether members of userControl\.group may start and stop the
|
||
app-scoped backend units used by ` proxy-ctl wrap ... ` for
|
||
route = “tun”, route = “tproxy”, or route = “zapret” profiles
|
||
without password prompts\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/other\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/other.nix)
|
||
|
||
|
||
|
||
<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
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-cidrexemption-enable"></a>
|
||
## services\.proxy-suite\.zapret\.cidrExemption\.enable
|
||
|
||
|
||
|
||
Whether to enable CIDR exemption from zapret NFQUEUE\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-cidrexemption-cidrs"></a>
|
||
## services\.proxy-suite\.zapret\.cidrExemption\.cidrs
|
||
|
||
|
||
|
||
Subnets to exempt from zapret’s NFQUEUE mangle rules\.
|
||
Useful when a VM (libvirt, etc\.) is behind NAT and zapret
|
||
would corrupt its traffic through the host’s nftables\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"192.168.123.0/24"
|
||
"10.0.0.0/8"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-configname"></a>
|
||
## services\.proxy-suite\.zapret\.configName
|
||
|
||
|
||
|
||
zapret strategy preset name selected from the upstream configs
|
||
directory\. Exact filenames are accepted, and names that differ only by
|
||
whitespace are treated as aliases\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"general(ALT)"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"general(ALT)"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-gamefilter"></a>
|
||
## services\.proxy-suite\.zapret\.gameFilter
|
||
|
||
|
||
|
||
zapret game traffic filter mode: “all”, “tcp”, “udp”, or “null” to disable\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
"null"
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"null"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules
|
||
|
||
|
||
|
||
Additional named zapret hostlists with per-list DPI mitigation rules\.
|
||
Each entry generates hostlists/list-\<name>\.txt and can clone a built-in
|
||
zapret family from the active config, clone it from another configName,
|
||
add custom NFQWS rule fragments, or combine these pieces\.
|
||
|
||
defaultDomains selects same-named upstream zapret-discord-youtube
|
||
hostlists such as “general” and “google”, with the aliases “discord”
|
||
and “youtube” for readability\. defaultIps provides upstream IP/CIDR
|
||
groups such as “all”\. configName is a higher-level alternative to
|
||
nfqwsArgs and cannot be used together with nfqwsArgs\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of (submodule)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
{
|
||
configName = "general(ALT9)";
|
||
defaultDomains = [
|
||
"youtube"
|
||
];
|
||
name = "youtube-alt9";
|
||
}
|
||
{
|
||
configName = "general (ALT12)";
|
||
defaultDomains = [
|
||
"discord"
|
||
];
|
||
name = "discord-alt12";
|
||
}
|
||
{
|
||
configName = "general (SIMPLE FAKE)";
|
||
domains = [
|
||
"example.com"
|
||
"example.org"
|
||
];
|
||
ips = [
|
||
"203.0.113.0/24"
|
||
];
|
||
name = "custom-sites";
|
||
preset = "general";
|
||
}
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules-enabledirectsync"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules\.\*\.enableDirectSync
|
||
|
||
|
||
|
||
Whether this custom hostlist should also be mirrored into proxy
|
||
direct domain routing when zapret\.syncDirectRouting = true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules-configname"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules\.\*\.configName
|
||
|
||
|
||
|
||
zapret config name to clone NFQWS rules from for this hostlist\.
|
||
Names use the same matching rules as services\.proxy-suite\.zapret\.configName\.
|
||
|
||
This is a higher-level alternative to nfqwsArgs and cannot be used
|
||
together with nfqwsArgs\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"general(ALT9)"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules-defaultdomains"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules\.\*\.defaultDomains
|
||
|
||
|
||
|
||
Built-in domain groups copied from zapret-discord-youtube hostlists\.
|
||
These are expanded and combined with domains\.
|
||
|
||
Each value maps directly to the same-named upstream file:
|
||
“general” uses list-general\.txt, “google” uses list-google\.txt,
|
||
and the remaining values use their corresponding list-\<name>\.txt\.
|
||
|
||
“discord” is an alias for “general”; “youtube” is an alias for
|
||
“google”\.
|
||
|
||
When “general” or “discord” is used together with configName, the
|
||
module also clones the selected config’s Discord UDP voice rule
|
||
(–filter-l7=discord,stun)\.
|
||
|
||
When preset is unset, use one defaultDomains entry per rule so the
|
||
module can infer a single rule family\. Split groups into separate
|
||
rules when they need different strategies\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of (one of “general”, “google”, “discord”, “youtube”, “instagram”, “soundcloud”, “twitter”)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"google"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules-defaultips"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules\.\*\.defaultIps
|
||
|
||
|
||
|
||
Built-in IP/CIDR groups copied from zapret-discord-youtube ipsets\.
|
||
|
||
“all” uses the upstream ipset-all\.txt list\. The upstream bundle does
|
||
not split this list by service, so site-specific defaults remain in
|
||
defaultDomains\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of value “all” (singular enum)
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"all"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules-domains"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules\.\*\.domains
|
||
|
||
|
||
|
||
Domains written into the generated custom zapret hostlist file\.
|
||
Can be combined with defaultDomains\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"example.com"
|
||
"example.de"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules-ips"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules\.\*\.ips
|
||
|
||
|
||
|
||
IPs or CIDRs written into the generated custom zapret ipset file\.
|
||
Can be combined with defaultIps\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"203.0.113.0/24"
|
||
"2001:db8::/32"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules-name"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules\.\*\.name
|
||
|
||
|
||
|
||
Custom hostlist name\. Used to generate hostlists/list-\<name>\.txt
|
||
inside the derived zapret config directory\.
|
||
|
||
|
||
|
||
*Type:*
|
||
string matching the pattern ^\[a-z0-9]\[a-z0-9-]\*$
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"cloudflare"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules-nfqwsargs"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules\.\*\.nfqwsArgs
|
||
|
||
|
||
|
||
Additional NFQWS argument fragments for this hostlist\.
|
||
The module injects --hostlist=… and trailing --new automatically\.
|
||
|
||
This cannot be used together with configName\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"--filter-tcp=443 --dpi-desync=fake,multisplit"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-hostlistrules-preset"></a>
|
||
## services\.proxy-suite\.zapret\.hostlistRules\.\*\.preset
|
||
|
||
|
||
|
||
Clone this built-in NFQWS rule family for this hostlist\. When
|
||
configName is set, the family is cloned from that zapret config;
|
||
otherwise it is cloned from the active global zapret config\.
|
||
|
||
When unset and defaultDomains is non-empty, rule families are
|
||
inferred from defaultDomains\.
|
||
|
||
|
||
|
||
*Type:*
|
||
null or one of “general”, “google”, “instagram”, “soundcloud”, “twitter”
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
null
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
"google"
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-includeextraupstreamlists"></a>
|
||
## services\.proxy-suite\.zapret\.includeExtraUpstreamLists
|
||
|
||
|
||
|
||
Automatically activate upstream list-instagram\.txt, list-soundcloud\.txt,
|
||
and list-twitter\.txt in the generated zapret config when the selected
|
||
upstream preset does not already reference them\.
|
||
|
||
When syncDirectRouting = true, domains from these extra lists are also
|
||
mirrored into proxy direct routing\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-ipsetall"></a>
|
||
## services\.proxy-suite\.zapret\.ipsetAll
|
||
|
||
|
||
|
||
Extra IPs/CIDRs to add to zapret’s ipset\.
|
||
Mirrored into proxy direct IP routing when
|
||
syncDirectRoutingUserIps = true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"203.0.113.0/24"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-ipsetexclude"></a>
|
||
## services\.proxy-suite\.zapret\.ipsetExclude
|
||
|
||
|
||
|
||
IPs/CIDRs to exclude from zapret’s ipset\.
|
||
Also excluded from zapret-derived proxy direct IP routing when
|
||
syncDirectRoutingUserIps = true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"203.0.113.10/32"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-listexclude"></a>
|
||
## services\.proxy-suite\.zapret\.listExclude
|
||
|
||
|
||
|
||
Domains to exclude from zapret interception\.
|
||
When syncDirectRouting = true, these exclusions also remove matching
|
||
domains from the zapret-derived proxy direct-routing set\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"music.youtube.com"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-listgeneral"></a>
|
||
## services\.proxy-suite\.zapret\.listGeneral
|
||
|
||
|
||
|
||
Extra domains to include in zapret’s interception list\.
|
||
When syncDirectRouting = true, these domains are also mirrored into
|
||
proxy direct routing\.
|
||
|
||
|
||
|
||
*Type:*
|
||
list of string
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
[ ]
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
[
|
||
"youtube.com"
|
||
]
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-perapp-enable"></a>
|
||
## services\.proxy-suite\.zapret\.perApp\.enable
|
||
|
||
|
||
|
||
Whether to enable per-app-scoped zapret backend for perAppRouting profiles\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-perapp-filtermark"></a>
|
||
## services\.proxy-suite\.zapret\.perApp\.filterMark
|
||
|
||
|
||
|
||
Packet mark bit used to mark wrapped app traffic for the
|
||
dedicated per-app-scoped zapret instance\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
268435456
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
268435456
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-perapp-qnum"></a>
|
||
## services\.proxy-suite\.zapret\.perApp\.qnum
|
||
|
||
|
||
|
||
NFQUEUE number used by the dedicated per-app-scoped zapret instance\.
|
||
This backend runs as a second zapret daemon and should use a
|
||
queue distinct from the global zapret instance\.
|
||
|
||
|
||
|
||
*Type:*
|
||
signed integer
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
201
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
201
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-syncdirectrouting"></a>
|
||
## services\.proxy-suite\.zapret\.syncDirectRouting
|
||
|
||
|
||
|
||
When zapret\.enable = true, mirror zapret’s upstream domain hostlists
|
||
into proxy direct domain routing\.
|
||
|
||
This includes the default zapret domain lists and any custom
|
||
hostlistRules entries with enableDirectSync = true\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-syncdirectroutingupstreamips"></a>
|
||
## services\.proxy-suite\.zapret\.syncDirectRoutingUpstreamIps
|
||
|
||
|
||
|
||
When zapret\.enable = true, mirror zapret’s upstream ipset ranges
|
||
(such as ipset-all\.txt minus exclusions) into proxy direct IP routing\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
false
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|
||
|
||
|
||
|
||
<a id="services-proxy-suite-zapret-syncdirectroutinguserips"></a>
|
||
## services\.proxy-suite\.zapret\.syncDirectRoutingUserIps
|
||
|
||
|
||
|
||
When zapret\.enable = true, mirror user-defined zapret\.ipsetAll and
|
||
zapret\.ipsetExclude entries into proxy direct IP routing\.
|
||
|
||
|
||
|
||
*Type:*
|
||
boolean
|
||
|
||
|
||
|
||
*Default:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
|
||
|
||
*Example:*
|
||
|
||
```nix
|
||
true
|
||
```
|
||
|
||
*Declared by:*
|
||
- [modules/proxy-suite/options/zapret\.nix](https://github.com/FUFSoB/proxy-suite-flake/blob/main/modules/proxy-suite/options/zapret.nix)
|