Includes, but not limited to: - zapret2 support - declarative inbounds - proxy-ctl revamp - automatic proxy learning
7.9 KiB
7.9 KiB
proxy-suite options
Generated from the services.proxy-suite option descriptions under
modules/proxy-suite/options/.
Update the module option docs there instead of editing these files by hand.
Option groups
Complete default config
services.proxy-suite = {
amneziaWg = {
enable = false;
kernelModulePackage = pkgs.amneziawg;
profiles = { };
toolsPackage = pkgs.amneziawg-tools;
userspacePackage = pkgs.amneziawg-go;
};
enable = false;
geodata = {
singBox = {
geoip = pkgs.sing-geoip;
geosite = pkgs.sing-geosite;
};
xray = {
assets = pkgs.v2ray-rules-dat;
};
};
inbounds = {
enable = false;
listeners = { };
openFirewall = true;
package = pkgs.xray;
routing = {
blockPrivate = true;
blockRu = true;
proxy = {
domains = [ ];
geoips = [ ];
geosites = [ ];
ips = [ ];
};
via = "proxy";
zapretDirect = true;
};
serverAddress = null;
shareLinks = true;
subscriptions = {
baseUrl = null;
enable = false;
group = "nginx";
};
};
perAppRouting = {
createDefaultProfiles = false;
enable = false;
profiles = [ ];
proxychains = {
enable = false;
proxyDns = true;
quiet = true;
};
tproxy = {
enable = false;
fwmark = 17;
localSubnets = [
"192.168.0.0/16"
];
routeTable = 102;
};
tun = {
address = "172.20.0.1/30";
enable = false;
fwmark = 16;
interface = "psperapptun0";
localSubnets = [
"192.168.0.0/16"
];
mtu = 1400;
routeTable = 101;
};
zapret = {
enable = false;
filterMark = 268435456;
qnum = 201;
};
};
proxy = {
auth = { };
autoProxy = {
enable = false;
exclude = [ ];
interval = "10m";
maxExits = 12;
probeBasePort = 18540;
probesPerRun = 200;
slowBelowKiBps = 150;
ttlDays = 30;
};
autostart = null;
backend = "sing-box";
dns = {
local = {
address = "1.1.1.1";
port = 53;
type = "udp";
};
remote = {
address = "1.1.1.1";
port = 53;
type = "udp";
};
};
enable = false;
listener = {
address = "127.0.0.1";
auth = {
password = null;
passwordFile = null;
username = null;
};
port = 1080;
};
outbounds = [ ];
routing = {
block = {
domains = [ ];
geoips = [ ];
geosites = [ ];
ips = [ ];
};
default = "proxy";
direct = {
domains = [ ];
geoips = [ ];
geosites = [ ];
ips = [ ];
};
directRu = true;
proxy = {
domains = [ ];
geoips = [ ];
geosites = [ ];
ips = [ ];
};
rules = [ ];
};
selection = "first";
singBox = {
clashApiPort = 9090;
package = pkgs.sing-box;
urlTest = { };
};
subscriptionUpdateInterval = "1d";
subscriptions = [ ];
tproxy = {
enable = false;
fwmark = 1;
localSubnets = [
"192.168.0.0/16"
];
port = 1085;
proxyMark = 2;
routeTable = 100;
};
tun = {
address = "172.19.0.1/30";
enable = false;
interface = "singtun0";
mtu = 1400;
};
urlTest = {
interval = "3m";
tolerance = 50;
url = "https://www.gstatic.com/generate_204";
};
xray = {
package = pkgs.xray;
};
};
sshProxy = {
asOutbound = false;
domainStrategy = null;
enable = false;
extraArgs = [ ];
hostKey = [ ];
hostKeyFile = null;
identityFile = null;
knownHostsFile = null;
listener = {
address = "127.0.0.1";
port = 1091;
};
server = {
host = null;
port = 22;
user = null;
};
serviceUser = null;
strictHostKeyChecking = "accept-new";
};
tgWsProxy = {
bufferKiB = 256;
bypassTransparentProxy = true;
cloudflare = {
domains = [ ];
fallback = true;
workerDomains = [ ];
};
dcIps = { };
enable = false;
fakeTlsDomain = null;
fwmark = 4;
listener = {
address = "127.0.0.1";
port = 1443;
};
log = {
file = null;
keep = 1;
maxSizeMiB = 5.0;
verbose = false;
};
poolSize = 4;
proxyProtocol = false;
secret = null;
secretFile = null;
};
tray = {
autostart = true;
enable = false;
pollInterval = 5;
};
userControl = {
allow = [
"global"
"perApp"
];
global = { };
group = "proxy-suite";
perApp = { };
};
zapret = {
cidrExemption = {
cidrs = [ ];
enable = false;
};
directSync = {
enable = true;
upstreamIps = false;
userIps = true;
};
enable = false;
engine = "zapret-discord-youtube";
zapret-discord-youtube = {
configName = "general(ALT)";
domains = [ ];
excludeDomains = [ ];
excludeIps = [ ];
gameFilter = "null";
hostlistRules = [ ];
includeExtraUpstreamLists = false;
ips = [ ];
};
zapret2 = {
autoHostlist = {
debugLog = false;
enable = true;
failThreshold = 3;
failTime = 300;
incomingMaxseq = 4096;
retransMaxseq = 32768;
retransReset = true;
retransThreshold = 3;
udpIn = 1;
udpOut = 4;
};
blobs = {
quic_initial = "quic_initial_www_google_com.bin";
tls_clienthello = "tls_clienthello_www_google_com.bin";
};
domains = [ ];
excludeDomains = [ ];
ipv6 = false;
ports = {
tcp = "80,443,1984,2053,2083,2087,2096,5222,8443";
udp = "443,590-600,1400,3478-3481,5349,19294-19344,49152-65535";
};
profiles = [
''
--filter-tcp=443,80,1984,5222 --filter-l7=http,tls,mtproto <HOSTLIST>
--payload=tls_client_hello,mtproto_initial
--lua-desync=circular:fails=2:time=300:retrans=3:nld=2
--lua-desync=fake:blob=tls_clienthello:tls_mod=rnd,dupsid,sni=fonts.google.com:tcp_seq=10000:strategy=1
--lua-desync=multisplit:pos=1,midsld:seqovl=1:seqovl_pattern=tls_clienthello:tcp_ts_up:strategy=1
--lua-desync=fake:blob=0x00000000:tcp_ack=-66000:tls_mod=rnd,dupsid,sni=www.google.com:repeats=2:strategy=2
--lua-desync=multisplit:pos=1,midsld:strategy=2
--lua-desync=hostfakesplit:host=ozon.ru:midhost=host-2:seqovl=sniext+3:seqovl_pattern=tls_clienthello:badsum:tcp_md5:tcp_ts_up:strategy=3
--lua-desync=hostfakesplit:tcp_md5:tcp_ts_up:strategy=3
--payload=http_req
--lua-desync=http_methodeol:badsum
''
''
--filter-udp=443 --filter-l7=quic <HOSTLIST_NOAUTO>
--payload=quic_initial
--lua-desync=fake:blob=quic_initial:repeats=11
''
''
--filter-udp=590-600,1400,3478-3481,5349,19294-19344,49152-65535
--filter-l7=wireguard,stun,discord,mtproto,unknown
--out-range=<n2
--payload=wireguard_initiation,wireguard_response,wireguard_cookie,stun,discord_ip_discovery,mtproto_initial,unknown
--lua-desync=circular:fails=2:time=300:retrans=3:nld=2
--lua-desync=fake:repeats=6:strategy=1
--lua-desync=fake:blob=quic_initial:repeats=6:strategy=2
''
];
};
};
};
services.proxy-suite.enable
Whether to enable proxy-suite.
Type: boolean
Default:
false
Example:
true