Files
proxy-suite-flake/docs/options/inbounds.md
T
2026-09-29 05:39:33 +00:00

50 KiB
Raw Blame History

services.proxy-suite.inbounds

Server side: listeners for remote clients, share links, subscriptions and stats.

Part of the proxy-suite options reference.

Options

services.proxy-suite.inbounds.enable

Whether to enable server inbounds, which accept proxy clients from outside.

Type: boolean
Default: false

services.proxy-suite.inbounds.package

XRay package that runs the inbounds, whichever client backend is used.

Type: package
Default: proxy-suite’s xray (pkgs/xray.nix)
Example: pkgs.xray

services.proxy-suite.inbounds.listeners

Server listeners, by tag.

Type: attribute set of (submodule)
Default: { }
Example:

{
  vless-reality = {
    type = "vless";
    port = 443;
    users = [ "phone" ];
    flow = "xtls-rprx-vision";
    reality = {
      enable = true;
      serverNames = [ "www.microsoft.com" ];
      privateKeyFile = "/run/secrets/proxy-inbound-reality-key";
      publicKey = "jNXH...";
      shortIds = [ "0123abcd" ];
    };
  };
  # `proxy-ctl inbounds link home phone` prints a vpn:// link; add --config for the .conf.
  home = {
    type = "amneziawg";
    port = 51820;
    users = [ "phone" "laptop" ];
    amneziaWg.mode = "lan";
  };
}

services.proxy-suite.inbounds.listeners.<name>.acceptProxyProtocol

Read the client address from a PROXY protocol header (v1 or v2) that opens every connection, as sent by a TCP front such as nginx’s stream with proxy_protocol on. Without it such a listener records every client as the front’s address, which proxy-ctl inbounds online never counts. TCP listeners only.

Every connection must carry the header, so only set it on a listener nothing but the front can reach, such as one on loopback.

Type: boolean
Default: false

services.proxy-suite.inbounds.listeners.<name>.address

Listening address. A loopback address keeps the port closed in the firewall.

Type: string matching the pattern [^[:space:]]+
Default: "::"
Example: "127.0.0.1"

services.proxy-suite.inbounds.listeners.<name>.amneziaWg

AmneziaWG server settings, for type = "amneziawg".

Type: submodule
Default: { }

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.clientAllowedIPs

AllowedIPs in client configs: what clients send through the tunnel.

Type: list of string
Default: [ "0.0.0.0/0" "::/0" ]

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.dns

DNS servers in client configs. Queries exit like any other traffic.

Type: list of string
Default: [ "1.1.1.1" "1.0.0.1" ]

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.interfaceName

Interface name, at most 15 characters.

Type: string matching the pattern ^[A-Za-z0-9_.-]+$
Default: "awgi-<tag>"

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.mode

What clients can reach besides the internet, which always goes through the listener’s via:

  • “proxy”: nothing else. This host, its LAN and other peers are cut off.
  • “lan”: also this host, its LAN and other peers, directly. Turns on IP forwarding. Only TCP and UDP reach the internet; ping and other protocols are dropped.

Type: one of “proxy”, “lan”
Default: "proxy"

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.mtu

Interface MTU on both ends. null: awg-quick’s default (1280 with AWG 3 fields).

Type: null or (unsigned integer, meaning >=0)
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation

Obfuscation parameters, shared with every client. Jc, Jmin, Jmax, S1, S2 and H1-H4 are generated once if left null; the rest stay unset.

Type: submodule
Default: { }

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.disableCookies

AWG 3 cookie suppression (DisableCookies).

Type: null or boolean
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.headerProtectionKey

AWG 3 header-protection key. Ends up in the Nix store; prefer headerProtectionKeyFile.

Type: null or string
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.headerProtectionKeyFile

File with the AWG 3 header-protection key.

Type: null or string
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.i1

First custom signature packet (I1).

Type: null or string
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.i2

Second custom signature packet (I2).

Type: null or string
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.i3

Third custom signature packet (I3).

Type: null or string
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.i4

Fourth custom signature packet (I4).

Type: null or string
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.i5

Fifth custom signature packet (I5).

Type: null or string
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.jc

Junk packet count (Jc).

Type: null or (unsigned integer, meaning >=0)
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.jmax

Maximum junk packet size (Jmax).

Type: null or (unsigned integer, meaning >=0)
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.jmin

Minimum junk packet size (Jmin).

Type: null or (unsigned integer, meaning >=0)
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.randomTrailers

AWG 3 random transport trailers (RandomTrailers).

Type: null or boolean
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.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: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.s1

Handshake-init padding (S1).

Type: null or (unsigned integer, meaning >=0)
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.s2

Handshake-response padding (S2).

Type: null or (unsigned integer, meaning >=0)
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.s3

Cookie-reply padding (S3).

Type: null or (unsigned integer, meaning >=0)
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.obfuscation.s4

Transport-message padding (S4).

Type: null or (unsigned integer, meaning >=0)
Default: null

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.persistentKeepalive

PersistentKeepalive in client configs, which keeps NAT open.

Type: null or (unsigned integer, meaning >=0)
Default: 25

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.privateKeyFile

File with the server private key, instead of a generated one.

Type: null or string
Default: null
Example: "/run/secrets/awg-server-key"

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.subnet

Tunnel IPv4 subnet, private and unused elsewhere. This host takes the first address, clients the rest.

Type: string matching the pattern [0-9.]+/[0-9]+
Default: "10.66.0.0/24"

services.proxy-suite.inbounds.listeners.<name>.amneziaWg.subnet6

Tunnel IPv6 subnet (ULA). null: IPv4 only. With mode = "lan" it turns on IPv6 forwarding, which stops this host from configuring itself from router advertisements.

Type: null or string
Default: null
Example: "fd66:66::/64"

services.proxy-suite.inbounds.listeners.<name>.fallbacks

Where to send connections that are not this listener’s protocol, so several services share one port (vless or trojan on raw transport). Entries match in order by SNI, ALPN and path; one with none of these is the catch-all, such as a decoy site. Browsers use h2 by default, so an HTTP/1.1-only dest needs tls.alpn = [ "http/1.1" ].

Type: list of (submodule)
Default: [ ]
Example:

[
  { path = "/ws"; listener = "ws-in"; }  # ws-in: vless, ws, address = "127.0.0.1"
  { dest = 8080; }
]

services.proxy-suite.inbounds.listeners.<name>.fallbacks.*.alpn

ALPN to match. null: any.

Type: null or one of “h2”, “http/1.1”
Default: null
Example: "h2"

services.proxy-suite.inbounds.listeners.<name>.fallbacks.*.dest

Where matching connections go: a port, host:port or unix socket path. Cannot be used with listener.

Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive) or string
Default: null
Example: "127.0.0.1:8080"

services.proxy-suite.inbounds.listeners.<name>.fallbacks.*.listener

Another listener to hand matching connections to, instead of dest. It must be a vless listener on loopback, without tls or reality. It gets decrypted traffic, and its share links use this listener’s port and TLS or REALITY. Behind REALITY it must use xhttp or grpc.

Type: null or string
Default: null
Example: "ws-in"

services.proxy-suite.inbounds.listeners.<name>.fallbacks.*.name

SNI to match. null: any.

Type: null or string
Default: null
Example: "www.example.com"

services.proxy-suite.inbounds.listeners.<name>.fallbacks.*.path

Request path to match. null: any. Works for HTTP/1.1 only, so the target listener must use ws or httpupgrade with this as its transport.path. For xhttp and grpc (h2), match alpn = "h2" or use a catch-all.

Type: null or string
Default: null
Example: "/ws"

services.proxy-suite.inbounds.listeners.<name>.fallbacks.*.xver

PROXY protocol version sent to dest, or 0 for none. A listener always gets 2.

Type: one of 0, 1, 2
Default: 0

services.proxy-suite.inbounds.listeners.<name>.flow

VLESS flow. Raw transport only.

Type: null or value “xtls-rprx-vision” (singular enum)
Default: null
Example: "xtls-rprx-vision"

services.proxy-suite.inbounds.listeners.<name>.hysteria.masquerade

Site shown to anything that is not a hysteria2 client, such as browsers and probes. null: answer 404.

Type: null or string
Default: null
Example: "https://www.example.com"

services.proxy-suite.inbounds.listeners.<name>.hysteria.portHopping

UDP port range redirected to port (nftables, NixOS only), which clients hop across every half a minute or so. A single throttled or blocked flow then lasts until the next hop instead of for the whole session. Share links name it as mport; clients that do not know it stay on port.

Keep it clear of ports other services on this host receive on, and below the ephemeral range (32768 and up on Linux).

Type: null or string matching the pattern [0-9]±[0-9]+
Default: null
Example: "20000-30000"

services.proxy-suite.inbounds.listeners.<name>.hysteria.salamander.enable

Salamander obfuscation: every packet is scrambled with a shared password, so the traffic no longer looks like QUIC (no visible handshake or SNI) but like random UDP. Clients need the password, which the share links carry; those without it cannot connect, and probes no longer reach masquerade.

Type: boolean
Default: false

services.proxy-suite.inbounds.listeners.<name>.hysteria.salamander.password

Salamander password. Ends up in the Nix store; prefer passwordFile.

Type: null or string
Default: null
Example: "hunter2"

services.proxy-suite.inbounds.listeners.<name>.hysteria.salamander.passwordFile

File with the Salamander password. With neither this nor password, one is generated on first start and kept in the state directory.

Type: null or string
Default: null
Example: "/run/secrets/proxy-inbound-salamander"

services.proxy-suite.inbounds.listeners.<name>.jsonFile

File with a raw XRay inbound JSON (no share link). Its tag is replaced; a missing port is filled in.

Type: null or string
Default: null
Example: "/run/secrets/proxy-inbound-vless.json"

services.proxy-suite.inbounds.listeners.<name>.method

Shadowsocks cipher. 2022 ciphers take a base64 key of matching length as the password. Multiple users need a 2022-blake3-aes cipher and serverPassword.

Type: string
Default: "2022-blake3-aes-128-gcm"
Example: "aes-128-gcm"

services.proxy-suite.inbounds.listeners.<name>.order

Position in subscriptions and link listings, lowest first; listeners with the same order follow their tags alphabetically. Clients usually pick the first entry.

Type: signed integer
Default: 1000
Example: 0

services.proxy-suite.inbounds.listeners.<name>.port

Listening port. For raw JSON listeners it must match the JSON; the firewall uses this one.

Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: 443

services.proxy-suite.inbounds.listeners.<name>.reality

REALITY settings.

Type: submodule
Default: { }

services.proxy-suite.inbounds.listeners.<name>.reality.enable

Enable REALITY. Cannot be used with tls.

Type: boolean
Default: false

services.proxy-suite.inbounds.listeners.<name>.reality.dest

Real TLS 1.3 + HTTP/2 site that non-client connections are forwarded to.

Type: string
Default: "www.microsoft.com:443"

services.proxy-suite.inbounds.listeners.<name>.reality.privateKey

x25519 private key. Ends up in the Nix store; prefer privateKeyFile.

Type: null or string
Default: null
Example: "gG1Yz..."

services.proxy-suite.inbounds.listeners.<name>.reality.privateKeyFile

File with the x25519 private key (from xray x25519).

Type: null or string
Default: null
Example: "/run/secrets/proxy-inbound-reality-key"

services.proxy-suite.inbounds.listeners.<name>.reality.publicKey

x25519 public key, needed for share links.

Type: null or string
Default: null
Example: "jNXH..."

services.proxy-suite.inbounds.listeners.<name>.reality.serverNames

Accepted SNIs, served by dest. The first goes into share links.

Type: list of string
Default: [ ]
Example: [ "www.microsoft.com" ]

services.proxy-suite.inbounds.listeners.<name>.reality.shortIds

Accepted short IDs (hex). The first goes into share links.

Type: list of string
Default: [ "" ]
Example: [ "0123abcd" ]

services.proxy-suite.inbounds.listeners.<name>.reality.xver

PROXY protocol version sent to dest with each forwarded connection, or 0 for none. Lets a dest on this host that expects the header (nginx with proxy_protocol) see the visitor’s address instead of XRay’s.

Type: one of 0, 1, 2
Default: 0

services.proxy-suite.inbounds.listeners.<name>.serverPassword

Shared server key of a multi-user shadowsocks 2022 listener. Ends up in the Nix store; prefer serverPasswordFile.

Type: null or string
Default: null
Example: "c2VydmVyLWtleS0xNmJ5dGU="

services.proxy-suite.inbounds.listeners.<name>.serverPasswordFile

File with the server key.

Type: null or string
Default: null
Example: "/run/secrets/proxy-inbound-ss-server-key"

services.proxy-suite.inbounds.listeners.<name>.shareAddress

Address in this listener’s share links (and the default SNI of their TLS), instead of inbounds.serverAddress: a name of its own, so the name clients look up is the one they then send as SNI. Links of listeners behind its fallbacks use it too.

Type: null or string
Default: null
Example: "cdn.example.com"

services.proxy-suite.inbounds.listeners.<name>.sharePort

Port in share links, if something in front owns the public port. null: port.

Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default: null
Example: 443

services.proxy-suite.inbounds.listeners.<name>.tls

TLS settings.

Type: submodule
Default: { }

services.proxy-suite.inbounds.listeners.<name>.tls.enable

Terminate TLS (always on for trojan). Cannot be used with reality.

Type: boolean
Default: false

services.proxy-suite.inbounds.listeners.<name>.tls.alpn

ALPN offered and put in share links. [ "h3" ] alone makes an xhttp listener UDP-only, leaving the TCP port to a web server.

Type: null or (list of (one of “h3”, “h2”, “http/1.1”))
Default: null
Example: [ "h3" ]

services.proxy-suite.inbounds.listeners.<name>.tls.certificateFile

File with the PEM certificate chain.

Type: null or string
Default: null
Example: "/var/lib/acme/example.com/fullchain.pem"

services.proxy-suite.inbounds.listeners.<name>.tls.keyFile

File with the PEM private key.

Type: null or string
Default: null
Example: "/var/lib/acme/example.com/key.pem"

services.proxy-suite.inbounds.listeners.<name>.tls.serverName

SNI in share links. Defaults to inbounds.serverAddress.

Type: null or string
Default: null
Example: "example.com"

services.proxy-suite.inbounds.listeners.<name>.transport

Transport settings.

Type: submodule
Default: { }

services.proxy-suite.inbounds.listeners.<name>.transport.host

Expected Host header (ws, httpupgrade, xhttp). null: any.

Type: null or string
Default: null
Example: "cdn.example.com"

services.proxy-suite.inbounds.listeners.<name>.transport.mode

xhttp mode. null: the client chooses. Behind an HTTP/1.1 proxy, use “packet-up”.

Type: null or one of “auto”, “packet-up”, “stream-up”, “stream-one”
Default: null
Example: "packet-up"

services.proxy-suite.inbounds.listeners.<name>.transport.path

Request path (ws, httpupgrade, xhttp).

Type: string
Default: "/"
Example: "/download"

services.proxy-suite.inbounds.listeners.<name>.transport.serviceName

gRPC service name.

Type: string
Default: ""
Example: "GunService"

services.proxy-suite.inbounds.listeners.<name>.transport.trustedXForwardedFor

Headers that mark a request as coming from your web server (ws, httpupgrade, xhttp, grpc). If one is present, XRay takes the client address from “X-Forwarded-For”. Needed behind a web server on loopback, or proxy-ctl inbounds online and the stats show no client addresses.

Only set it if the web server overwrites both headers on every request. Otherwise any client that reaches the listener directly can fake its address.

Type: list of string
Default: [ ]
Example: [ "X-Real-IP" ]

services.proxy-suite.inbounds.listeners.<name>.transport.type

Stream transport. “raw” is plain TCP, the usual pick for REALITY.

Type: one of “raw”, “ws”, “grpc”, “httpupgrade”, “xhttp”
Default: "raw"
Example: "ws"

services.proxy-suite.inbounds.listeners.<name>.type

Protocol. Set exactly one of type, xrayJson or jsonFile.

  • “amneziawg”: an AmneziaWG server on a UDP port (see amneziaWg). Its traffic exits like any other listener’s.
  • “hysteria2”: QUIC on a UDP port. Needs tls and passwords; no transport, reality or flow.

Type: null or one of “vless”, “vmess”, “trojan”, “hysteria2”, “shadowsocks”, “socks”, “http”, “amneziawg”
Default: null
Example: "vless"

services.proxy-suite.inbounds.listeners.<name>.users

Accepted users, by their names in inbounds.users.

Type: list of string matching the pattern [^[:space:]]+
Default: [ ]
Example: [ "phone" "laptop" ]

services.proxy-suite.inbounds.listeners.<name>.via

Where this listener’s traffic exits, as in inbounds.routing.via. null: use that default.

Type: null or string
Default: null
Example: "nl-vps"

services.proxy-suite.inbounds.listeners.<name>.xrayJson

Raw XRay inbound JSON (ends up in the Nix store). Its tag is replaced; a missing port is filled in.

Type: null or (attribute set)
Default: null
Example: { protocol = "dokodemo-door"; settings = { port = 8080; }; }

services.proxy-suite.inbounds.openFirewall

Open the firewall for every listener not on loopback.

Type: boolean
Default: true

services.proxy-suite.inbounds.routing.blockPrivate

Block private and loopback addresses, so clients cannot reach this host’s LAN or local services.

Type: boolean
Default: true

services.proxy-suite.inbounds.routing.blockRu

Block Russian destinations (geosite “category-ru”, geoip “ru”).

Type: boolean
Default: true

services.proxy-suite.inbounds.routing.proxy.domains

Domains, with their subdomains, that clients always reach through the local proxy, whatever the listener’s via.

Type: list of string
Default: [ ]
Example: [ "youtube.com" ]

services.proxy-suite.inbounds.routing.proxy.geoips

Geoip codes that clients always reach through the local proxy, whatever the listener’s via; countries by default (see geodata).

Type: list of string
Default: [ ]
Example: [ "us" ]

services.proxy-suite.inbounds.routing.proxy.geosites

Geosite categories that clients always reach through the local proxy, whatever the listener’s via (see geodata).

Type: list of string
Default: [ ]
Example: [ "netflix" ]

services.proxy-suite.inbounds.routing.proxy.ips

IP ranges (CIDR) that clients always reach through the local proxy, whatever the listener’s via.

Type: list of string
Default: [ ]
Example: [ "1.1.1.0/24" ]

services.proxy-suite.inbounds.routing.serverSource.interface

Dummy interface the serverSource addresses are put on.

Type: string matching the pattern [a-zA-Z0-9_-]{1,15}
Default: "ps-self"

services.proxy-suite.inbounds.routing.serverSource.ipv4

Range each inbound user gets an address from, for the connections they make to this host itself (serverAddress, serverAliases, serverPorts). Otherwise those come from this host’s own address, and its services (mail, the web server, their rate limits and bans) see every user as one. They see neither the users’ real addresses. The addresses sit on a dummy interface and reach nothing but this host. Pick a range nothing here routes or trusts. Users are numbered by their order, then name, from the range’s second address: set order to keep each user’s address as users come and go.

Type: null or string matching the pattern ([0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]{1,2}
Default: null
Example: "10.78.0.0/24"

services.proxy-suite.inbounds.routing.serverSource.ipv6

The same for IPv6: a prefix written with “::”, such as a ULA /64. Needed as well when serverAliases lists an IPv6 address, which is otherwise dialed from this host’s own.

Type: null or string matching the pattern [0-9a-fA-F:]*::/[0-9]{1,3}
Default: null
Example: "fd78:78:78::/64"

services.proxy-suite.inbounds.routing.via

Where client traffic exits by default. Each listener can override it.

  • “proxy”: through the local proxy and its current pick (needs proxy.enable).
  • an outbound tag from proxy.outbounds: always that one (url, urlFile or xrayJson only).
  • “direct”: straight from this host.
  • “block”: dropped.

Type: string
Default: "proxy"
Example: "direct"

services.proxy-suite.inbounds.routing.zapretDirect

Send zapret hostlist sites direct, so this host’s zapret unblocks them. Only for the default via. With a direct listener or the XRay backend, only by IP: XRay matches names by what a client puts in its handshake, whatever address it connects to.

Type: boolean
Default: true

services.proxy-suite.inbounds.serverAddress

Public address for share links. null: detect the uplink IPv4.

Type: null or string matching the pattern [^[:space:]]+
Default: null
Example: "vpn.example.com"

services.proxy-suite.inbounds.serverAliases

Other names and IPs of this host that clients reach through the tunnel, such as a TURN relay’s name beside the site on serverAddress. Like serverAddress, they go direct on the listener ports instead of looping back through routing.via, which often cannot reach this host at all. List the IPs too: a client that resolves a name itself hands XRay the address, which no name rule matches. domain:example.com covers that name and every name under it, for a host behind a wildcard record.

Type: list of string matching the pattern [^[:space:]]+
Default: [ ]
Example:

[
  "turn.example.com"
  "domain:example.com"
  "203.0.113.10"
  "2001:db8::10"
]

services.proxy-suite.inbounds.serverPorts

Ports of this host’s other services that clients reach through the tunnel on serverAddress and serverAliases, such as mail, beside the listeners’ own. Direct like those: a connection to this host from itself skips its firewall, so list only what the firewall already opens to the internet. TCP and UDP alike.

Type: list of (16 bit unsigned integer; between 0 and 65535 (both inclusive) or string matching the pattern [0-9]±[0-9]+)
Default: [ ]
Example: config.networking.firewall.allowedTCPPorts

Generate client share links for proxy-ctl inbounds link. Readable by root, and by userControl.group with the secrets scope.

Type: boolean
Default: true

services.proxy-suite.inbounds.subscriptions.enable

Generate a subscription per user, with their links from every listener, in /run/proxy-suite-inbounds/subscriptions/<token>. Serve that directory with a web server. Needs shareLinks.

Type: boolean
Default: false

services.proxy-suite.inbounds.subscriptions.baseUrl

Public URL of the subscription directory, used by proxy-ctl inbounds sub.

Type: null or string
Default: null
Example: "https://vpn.example.com/sub"

services.proxy-suite.inbounds.subscriptions.group

Group of the web server that serves the subscription files.

Type: string
Default: "nginx"
Example: "caddy"

services.proxy-suite.inbounds.users

Inbound users, by name, which listeners accept by naming them in their users. Each listener takes the secret its protocol wants: uuid/uuidFile for vless and vmess, password/passwordFile for the others, the keys for AmneziaWG.

Type: attribute set of (submodule)
Default: { }
Example:

{
  phone = {
    order = 1;
    uuidFile = "/run/secrets/proxy-inbound-uuid";
  };
  laptop.order = 2;
}

services.proxy-suite.inbounds.users.<name>.address

AmneziaWG tunnel IPv4 address, inside amneziaWg.subnet. null: the lowest free one, kept for as long as the user exists.

Type: null or string
Default: null
Example: "10.66.0.10"

services.proxy-suite.inbounds.users.<name>.order

The user’s number, for good: their inbounds.routing.serverSource addresses are that many past the start of each range (5: 10.78.0.5 in 10.78.0.0/24). Users without one follow the highest number given, by name, and move when users are added before them. Unique.

Type: null or (positive integer, meaning >0)
Default: null
Example: 1

services.proxy-suite.inbounds.users.<name>.password

Password (trojan, shadowsocks, socks, http). Ends up in the Nix store; prefer passwordFile.

Type: null or string
Default: null
Example: "hunter2"

services.proxy-suite.inbounds.users.<name>.passwordFile

File with the password.

Type: null or string
Default: null
Example: "/run/secrets/proxy-inbound-password"

services.proxy-suite.inbounds.users.<name>.presharedKeyFile

File with the AmneziaWG preshared key, instead of a generated one.

Type: null or string
Default: null
Example: "/run/secrets/awg-phone-psk"

services.proxy-suite.inbounds.users.<name>.privateKeyFile

File with the AmneziaWG client private key, instead of a generated one.

Type: null or string
Default: null
Example: "/run/secrets/awg-phone-key"

services.proxy-suite.inbounds.users.<name>.publicKey

AmneziaWG public key, for a client that keeps its own private key (no config or link is generated for it). null: generate a key pair.

Type: null or string
Default: null
Example: "jNXH..."

services.proxy-suite.inbounds.users.<name>.uuid

UUID (vless, vmess). Ends up in the Nix store; prefer uuidFile.

Type: null or string
Default: null
Example: "b831381d-6324-4d53-ad4f-8cda48b30811"

services.proxy-suite.inbounds.users.<name>.uuidFile

File with the UUID.

Type: null or string
Default: null
Example: "/run/secrets/proxy-inbound-uuid"