Files
proxy-suite-flake/docs/options/amneziaWg.md
T
FUFSoB fdb2b08790 refactor: overhaul of options and features
Includes, but not limited to:
- zapret2 support
- declarative inbounds
- proxy-ctl revamp
- automatic proxy learning
2026-09-13 22:37:45 +05:00

22 KiB
Raw Permalink Blame History

services.proxy-suite.amneziaWg

Part of the proxy-suite options reference.

Options

services.proxy-suite.amneziaWg.enable

Whether to enable native AmneziaWG client profiles.

Type: boolean

Default:

false

Example:

true

services.proxy-suite.amneziaWg.kernelModulePackage

AWG 3.1 kernel module package. Set null to use userspace-only fallback.

Type: null or package

Default:

<derivation amneziawg-3.1.20260812>

services.proxy-suite.amneziaWg.profiles

Named AmneziaWG client profiles. Only one global profile can be active.

Type: attribute set of (submodule)

Default:

{ }

services.proxy-suite.amneziaWg.profiles.<name>.allowConfigHooks

Allow trusted imported configs to execute wg-quick hooks or use SaveConfig.

Type: boolean

Default:

false

services.proxy-suite.amneziaWg.profiles.<name>.autostart

Whether to start this profile at boot. At most one profile may autostart.

Type: boolean

Default:

false

services.proxy-suite.amneziaWg.profiles.<name>.configFile

Runtime path to an AmneziaWG .conf file.

Type: null or string

Default:

null

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:

"awg-‹name›"

services.proxy-suite.amneziaWg.profiles.<name>.settings

Typed declarative AmneziaWG client configuration.

Type: null or (submodule)

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.addresses

IP prefixes assigned to the AWG interface.

Type: list of string

Default:

[ ]

Example:

[
  "10.8.0.2/32"
]

services.proxy-suite.amneziaWg.profiles.<name>.settings.dns

DNS servers installed while this profile is active.

Type: list of string

Default:

[ ]

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:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.mtu

Optional interface MTU.

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

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation

AmneziaWG 1.x through 3.x obfuscation parameters.

Type: submodule

Default:

{ }

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:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.disableCookies

AWG 3 cookie suppression (DisableCookies).

Type: null or boolean

Default:

null

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:

null

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:

null

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:

null

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:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.headerProtectionKey

Inline AWG 3 header-protection key. Prefer headerProtectionKeyFile.

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.headerProtectionKeyFile

Runtime path containing the AWG 3 header-protection key.

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.i1

First custom signature packet (I1).

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.i2

Second custom signature packet (I2).

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.i3

Third custom signature packet (I3).

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.i4

Fourth custom signature packet (I4).

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.i5

Fifth custom signature packet (I5).

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.jc

Junk packet count (Jc).

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

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.jmax

Maximum junk packet size (Jmax).

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

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.jmin

Minimum junk packet size (Jmin).

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

Default:

null

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:

null

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:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.randomTrailers

AWG 3 random transport trailers (RandomTrailers).

Type: null or boolean

Default:

null

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:

null

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:

null

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:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.s1

Handshake-init padding (S1).

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

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.s2

Handshake-response padding (S2).

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

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.s3

Cookie-reply padding (S3).

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

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.obfuscation.s4

Transport-message padding (S4).

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

Default:

null

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:

null

Example:

"/run/secrets/awg-obfuscation.json"

services.proxy-suite.amneziaWg.profiles.<name>.settings.peers

AmneziaWG peers.

Type: list of (submodule)

Default:

[ ]

services.proxy-suite.amneziaWg.profiles.<name>.settings.peers.*.advancedSecurity

Optional AWG peer AdvancedSecurity setting.

Type: null or boolean

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.peers.*.allowedIPs

IP prefixes routed to and accepted from this peer.

Type: list of string

Default:

[ ]

Example:

[
  "0.0.0.0/0"
  "::/0"
]

services.proxy-suite.amneziaWg.profiles.<name>.settings.peers.*.endpoint

Optional peer endpoint in host:port form.

Type: null or string

Default:

null

Example:

"vpn.example.com:51820"

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:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.peers.*.presharedKey

Inline peer preshared key. Prefer presharedKeyFile for secrets.

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.peers.*.presharedKeyFile

Runtime path containing the peer preshared key.

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.peers.*.publicKey

AmneziaWG peer public key.

Type: string matching the pattern [^[:space:]]+

services.proxy-suite.amneziaWg.profiles.<name>.settings.privateKey

Inline client private key. Prefer privateKeyFile.

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.privateKeyFile

Runtime path containing the client private key.

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.settings.table

wg-quick routing table name/number, auto, or off.

Type: null or string

Default:

null

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:

null

services.proxy-suite.amneziaWg.profiles.<name>.vpnContainer

AWG container/protocol identifier to select when a vpn:// bundle is ambiguous.

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.profiles.<name>.vpnFile

Runtime path containing a self-contained vpn:// export.

Type: null or string

Default:

null

services.proxy-suite.amneziaWg.toolsPackage

AWG 3.1 package providing awg and awg-quick.

Type: package

Default:

<derivation amneziawg-tools-3.1.20260812>

services.proxy-suite.amneziaWg.userspacePackage

AWG 3.1 userspace implementation used when the kernel interface is unavailable.

Type: package

Default:

<derivation amneziawg-go-3.1.20260828>