Files
proxy-suite-flake/docs/options/index.md
T

9.3 KiB
Raw Blame History

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

Group What it covers
proxy The local proxy: outbounds, subscriptions, selection, routing, DNS, TUN and TProxy.
killSwitch Block traffic outside the global tunnel.
perAppRouting Route single apps through proxychains, a per-app TUN or TProxy, or zapret.
zapret DPI bypass without a proxy: zapret-discord-youtube or zapret2.
amneziaWg AmneziaWG client profiles, as a global VPN or as outbounds.
warp Cloudflare WARP, as an outbound or an AmneziaWG profile.
tor Tor as an outbound, with bridges, and an onion service for the inbounds.
sshProxy An SSH SOCKS5 tunnel, optionally as an outbound.
tgWsProxy A Telegram MTProto proxy over WebSocket.
whitelistBypass Tunnels through video-call servers, past mobile internet whitelists.
inbounds Server side: listeners for remote clients, share links, subscriptions and stats.
geodata Geosite and geoip databases used by routing.
userControl Let a group use proxy-ctl without root.
gui The desktop app with a tray icon.
tui The proxy-tui terminal UI.

services.proxy-suite.enable

Whether to enable proxy-suite.

Type: boolean
Default: false

Complete default config

Every option at its default
services.proxy-suite = {
  amneziaWg = {
    enable = false;
    kernelModulePackage = ‹amneziawg from boot.kernelPackages on NixOS, null elsewhere›;
    profiles = { };
    runtime = {
      enable = true;
      interfaceName = "awg-rt";
    };
    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)›;
  };
  enable = false;
  geodata = {
    singBox = {
      geoip = pkgs.sing-geoip;
      geosite = pkgs.sing-geosite;
    };
    xray = {
      assets = pkgs.v2ray-rules-dat;
    };
  };
  gui = {
    autostart = true;
    enable = false;
    refreshInterval = 3;
  };
  inbounds = {
    enable = false;
    listeners = { };
    openFirewall = true;
    package = ‹proxy-suite's xray (pkgs/xray.nix)›;
    routing = {
      blockPrivate = true;
      blockRu = 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";
    };
    users = { };
  };
  killSwitch = {
    enable = false;
  };
  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 = {
    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;
    ipv6 = config.networking.enableIPv6;
    listener = {
      address = "127.0.0.1";
      auth = {
        password = null;
        passwordFile = null;
        username = null;
      };
      port = 1080;
    };
    outbounds = [ ];
    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 = [ ];
    };
    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)›;
    };
  };
  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 = "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;
  };
  tor = {
    asOutbound = false;
    bridges = {
      file = null;
      lines = [ ];
    };
    clientOnly = true;
    enable = false;
    extraConfig = "";
    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";
    scopes = [ ];
  };
  warp = {
    asAmneziaWg = false;
    asOutbound = null;
    autostart = false;
    configFile = null;
    domainStrategy = if config.networking.enableIPv6 then "prefer_ipv6" else "prefer_ipv4";
    enable = false;
    endpoint = null;
    generatorUrl = 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 = {
        debugLog = false;
        enable = 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 = {
        tcp = null;
        udp = null;
      };
      profiles = null;
      strategySource = "nfqws2-keenetic";
    };
  };
};