Files
2026-10-18 16:53:08 +05:00

511 lines
12 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# proxy-suite options
Generated from the `services.proxy-suite` option descriptions under
[`modules/proxy-suite/options/`](/modules/proxy-suite/options/).
Update the module option docs there instead of editing these files by hand.
## Option groups
| Group | What it covers |
|---|---|
| [proxy](./proxy.md) | The local proxy: outbounds, subscriptions, selection, routing, DNS, TUN and TProxy. |
| [killSwitch](./killSwitch.md) | Block traffic outside the global tunnel. |
| [perAppRouting](./perAppRouting.md) | Route single apps through proxychains, a per-app TUN or TProxy, or zapret. |
| [zapret](./zapret.md) | DPI bypass without a proxy: zapret-discord-youtube or zapret2. |
| [amneziaWg](./amneziaWg.md) | AmneziaWG client profiles, as a global VPN or as outbounds. |
| [warp](./warp.md) | Cloudflare WARP, as an outbound or an AmneziaWG profile. |
| [tor](./tor.md) | Tor as an outbound, with bridges, and an onion service for the inbounds. |
| [sshProxy](./sshProxy.md) | An SSH SOCKS5 tunnel, optionally as an outbound. |
| [tgWsProxy](./tgWsProxy.md) | A Telegram MTProto proxy over WebSocket. |
| [whitelistBypass](./whitelistBypass.md) | Tunnels through video-call servers, past mobile internet whitelists. |
| [inbounds](./inbounds.md) | Server side: listeners for remote clients, share links, subscriptions and stats. |
| [geodata](./geodata.md) | Geosite and geoip databases used by routing. |
| [userControl](./userControl.md) | Let a group use `proxy-ctl` without root. |
| [gui](./gui.md) | The desktop app with a tray icon. |
| [tui](./tui.md) | The `proxy-tui` terminal UI. |
| [tools](./tools.md) | Heavy helpers `proxy-ctl` can do without: lnav and curl-impersonate. |
| [debug](./debug.md) | Troubleshooting: backend log levels, a connection recorder, DNS and zapret2 logs. |
<a id="services-proxy-suite-enable"></a>
## services\.proxy-suite\.enable
Whether to enable proxy-suite\.
**Type:** boolean\
**Default:** `false`
## Complete default config
<details>
<summary>Every option at its default</summary>
```nix
services.proxy-suite = {
amneziaWg = {
enable = false;
kernelModulePackage = ‹amneziawg from boot.kernelPackages on NixOS, null elsewhere›;
profiles = { };
runtime = {
enable = true;
interfaceName = "awg-rt";
outboundKind = "userspace";
};
serverUdpPorts = [ ];
toolsPackage = ‹proxy-suite's patched amneziawg-tools (pkgs/amneziawg.nix)›;
userspacePackage = ‹proxy-suite's patched amneziawg-go (pkgs/amneziawg.nix)›;
wireproxyPackage = ‹proxy-suite's wireproxy-awg (pkgs/wireproxy-awg.nix)›;
};
debug = {
connectionLog = {
enable = false;
hosts = [ ];
inbounds = [ ];
interval = 0.5;
stallAfter = 10;
};
logLevel = "warn";
perAppDns = false;
tgWsProxy = false;
zapret2 = {
autoHostlist = false;
packets = false;
};
};
enable = false;
geodata = {
singBox = {
geoip = pkgs.sing-geoip;
geosite = pkgs.sing-geosite;
};
xray = {
assets = pkgs.v2ray-rules-dat;
};
};
gui = {
autostart = true;
enable = false;
floating = true;
refreshInterval = 3;
};
inbounds = {
accessLog = false;
enable = false;
listeners = { };
manager = {
api = {
group = null;
listen = null;
tokensFile = null;
};
deleteExpiredAfter = null;
enable = false;
interval = 30;
ipLimit = {
banTime = 600;
};
notify = {
expiryDays = [
3
1
];
trafficPercent = [
80
100
];
};
speedLimits = {
enable = false;
slots = 512;
};
subscriptions = {
enable = config.services.proxy-suite.inbounds.shareLinks;
group = config.services.proxy-suite.inbounds.subscriptions.group;
listen = null;
profileTitle = "{user}";
supportUrl = null;
updateInterval = 12;
webPageUrl = null;
};
webhooks = [ ];
};
openFirewall = true;
package = ‹proxy-suite's xray (pkgs/xray.nix)›;
routing = {
blockPorts = [
25
];
blockPrivate = true;
blockRu = true;
blockTorrent = true;
proxy = {
domains = [ ];
geoips = [ ];
geosites = [ ];
ips = [ ];
};
serverSource = {
interface = "ps-self";
ipv4 = null;
ipv6 = null;
};
via = "proxy";
zapretDirect = true;
};
runtime = {
enable = false;
fallbackDests = [ ];
ports = [ ];
tlsCertificates = { };
vias = [ ];
};
serverAddress = null;
serverAliases = [ ];
serverPorts = [ ];
shareLinks = true;
subscriptions = {
baseUrl = null;
enable = false;
group = "nginx";
keyFile = null;
};
users = { };
};
killSwitch = {
allowedSubnets = config.services.proxy-suite.proxy.tproxy.localSubnets;
directFallbacks = true;
enable = false;
timeSyncUsers = ‹the users of the enabled timesyncd, chrony, ntp and openntpd on NixOS; elsewhere
[ "systemd-timesync" "chrony" "_chrony" "ntp" "ntpsec" ]
›;
};
perAppRouting = {
createDefaultProfiles = false;
enable = false;
profiles = [ ];
proxychains = {
enable = false;
proxyDns = true;
quiet = true;
};
tproxy = {
enable = false;
fwmark = 17;
keepRunning = false;
localSubnets = [
"192.168.0.0/16"
];
routeTable = 102;
};
tun = {
address = "172.20.0.1/30";
enable = false;
fwmark = 16;
interface = "psperapptun0";
keepRunning = false;
localSubnets = [
"192.168.0.0/16"
];
mtu = 1400;
routeTable = 101;
};
via = {
localSubnets = [
"192.168.0.0/16"
];
pinSlots = 8;
};
zapret = {
enable = false;
filterMark = 268435456;
keepRunning = false;
qnum = 201;
};
};
proxy = {
autoProxy = {
enable = false;
exclude = [ ];
interval = "10m";
maxExits = 12;
probeBasePort = 18540;
probesPerRun = 200;
slowBelowKiBps = 150;
ttlDays = 30;
};
autostart = null;
backend = "sing-box";
dns = {
clientSubnet = null;
fakeIp = {
enable = false;
inet4Range = "198.18.0.0/15";
};
local = {
address = "1.1.1.1";
port = 53;
type = "tcp";
};
remote = {
address = "1.1.1.1";
port = 53;
type = "udp";
};
singBox = {
rules = [ ];
servers = [ ];
};
strategy = null;
};
enable = false;
groups = { };
ipv6 = config.networking.enableIPv6;
listener = {
address = "127.0.0.1";
auth = {
password = null;
passwordFile = null;
username = null;
};
port = 1080;
};
outbounds = [ ];
priority = { };
routing = {
block = {
domains = [ ];
geoips = [ ];
geosites = [ ];
ips = [ ];
ruleSets = [ ];
};
default = "proxy";
direct = {
domains = [ ];
geoips = [ ];
geosites = [ ];
ips = [ ];
ruleSets = [ ];
};
directRu = true;
proxy = {
domains = [ ];
geoips = [ ];
geosites = [ ];
ips = [ ];
ruleSets = [ ];
};
ruleSetUpdateInterval = "1d";
ruleSets = { };
rules = [ ];
};
runtimeSubscriptions = {
allowHttp = false;
allowInsecure = false;
allowPrivateServers = false;
};
selection = "first";
selectionExclude = [ ];
singBox = {
clashApiPort = 9090;
package = ‹sing-box from proxy-suite's own nixpkgs input›;
};
subscriptionUpdateInterval = "1d";
subscriptions = [ ];
tproxy = {
enable = false;
fwmark = 1;
lanInterfaces = [ ];
localSubnets = [
"192.168.0.0/16"
];
port = 1085;
proxyMark = 2;
routeTable = 100;
};
tun = {
address = "172.19.0.1/30";
enable = false;
interface = "singtun0";
mtu = 1400;
};
urlTest = {
interval = "3m";
tolerance = 50;
url = "https://www.gstatic.com/generate_204";
};
xray = {
package = ‹proxy-suite's xray (pkgs/xray.nix)›;
xhttpXmux = null;
};
};
sshProxy = {
asOutbound = false;
domainStrategy = null;
enable = false;
extraArgs = [ ];
hostKey = [ ];
hostKeyFile = null;
identityFile = null;
knownHostsFile = null;
listener = {
address = "127.0.0.1";
port = 1091;
};
server = {
host = null;
port = 22;
user = null;
};
serviceUser = "proxy-suite-daemon";
strictHostKeyChecking = "yes";
};
tgWsProxy = {
bufferKiB = 256;
bypassTransparentProxy = true;
cloudflare = {
domains = [ ];
fallback = true;
workerDomains = [ ];
};
dcIps = { };
enable = false;
fakeTlsDomain = null;
fwmark = 4;
listener = {
address = "127.0.0.1";
port = 1443;
};
log = {
file = null;
keep = 1;
maxSizeMiB = 5.0;
};
poolSize = 4;
proxyProtocol = false;
secret = null;
secretFile = null;
};
tools = {
curlImpersonate = {
enable = ‹true, false on nix-on-droid›;
};
lnav = {
enable = ‹true, false on nix-on-droid›;
};
};
tor = {
asOutbound = false;
bridges = {
file = null;
lines = [ ];
};
clientOnly = true;
enable = false;
extraConfig = "";
keepAwake = false;
lyrebirdPackage = pkgs.lyrebird;
onionService = {
enable = false;
listeners = null;
secretKeyFile = null;
};
package = pkgs.tor;
routeOnion = true;
snowflakePackage = pkgs.snowflake;
socksPort = 18530;
upstream = "direct";
};
tui = {
enable = true;
};
userControl = {
enable = false;
group = "proxy-suite";
groups = { };
scopes = [ ];
};
warp = {
asAmneziaWg = false;
asOutbound = null;
autostart = false;
configFile = null;
devices = { };
domainStrategy = if config.networking.enableIPv6 then "prefer_ipv6" else "prefer_ipv4";
enable = false;
endpoint = null;
generatorUrl = null;
group = {
failback = true;
strategy = "failover";
};
instances = null;
};
whitelistBypass = {
creators = { };
enable = false;
joiners = { };
package = ‹proxy-suite's whitelist-bypass (pkgs/whitelist-bypass.nix)›;
};
zapret = {
cidrExemption = {
cidrs = [ ];
enable = false;
};
directSync = {
enable = true;
upstreamIps = false;
userIps = true;
};
enable = false;
engine = "zapret-discord-youtube";
global = {
enable = true;
};
zapret-discord-youtube = {
configName = "general(ALT)";
domains = [ ];
excludeDomains = [ ];
excludeIps = [ ];
gameFilter = "null";
hostlistRules = [ ];
includeExtraUpstreamLists = false;
ips = [ ];
};
zapret2 = {
autoHostlist = {
enable = true;
extendedDetection = true;
failThreshold = 3;
failTime = 300;
incomingMaxseq = 4096;
retransMaxseq = 32768;
retransReset = true;
retransThreshold = 3;
udpIn = 1;
udpOut = 4;
};
blobs = { };
cutoff = {
enable = true;
proxyFallback = true;
};
domains = [ ];
excludeDomains = [ ];
ipv6 = false;
ports = {
extraTcp = [ ];
extraUdp = [ ];
tcp = null;
udp = null;
};
profiles = null;
proxyFallback = true;
strategyLog = true;
strategySource = "nfqws2-keenetic";
};
};
};
```
</details>