VPNs & Tailscale

[l3vpns]

This section defines Layer 3 VPN interfaces. The key for each entry is a user-defined name for the interface.

Common Fields

KeyTypeDescriptionRequired
typeStringActive types include wireguard, amneziawg, and experimental tailscale. openvpn is accepted by the schema but should not be treated as an implemented OpenVPN client.Yes
nicknameStringA user-friendly name for the interface.No
enabledBooleanWhether the interface is enabled. Defaults to true.No

WireGuard Specific Fields (When type=wireguard)

KeyTypeDescriptionRequired
private-keyStringThe private key for the interface.Yes
addressCIDRThe internal IP address and subnet for the interface.Yes

Tailscale fields (type:tailscale, experimental, Pro)

KeyMeaning
login-serverHTTPS control server URL, normally https://controlplane.tailscale.com; no embedded credentials, query, or fragment.
auth-keyOptional bootstrap enrollment key. Prefer browser login or a one-time key submission to avoid saving secrets in the profile.
exit-node-ipOptional preferred exit-node IPv4 address, without a CIDR or port. Applied on VPN restart and explicit login. The node must be available and advertise exit capability; otherwise inspect Tailscale status. Omit to use the device's saved preference.
drive-dnsDefault false. Derive peer IPv4 DNS records through MintFlow DNS; this does not enable the Tailscale OS MagicDNS resolver. Requires Pro and the MintFlow DNS path.
enabledDefault true. Only one active Tailscale interface per profile.
[l3vpns]
tailnet=type:tailscale,login-server:https://controlplane.tailscale.com,enabled:true

[routing]
CIDR,100.64.0.0/10,L3VPN,tailnet
DEFAULT,DIRECT
DNS-FALLBACK,DIRECT

Use with [dns] app-routing-enabled=true and suitable direct-dns upstreams. See the complete login and routing guide. Machine identity and Accept Routes remain device-local. The optional exit-node-ip saves a preferred exit node in the profile and syncs with it; live overrides do not change the profile. Without this field, each device keeps its own exit-node preference. Losing Pro access excludes the interface during compilation and changes routes targeting it to REJECT.

AmneziaWG Specific Fields (When type=amneziawg)

AmneziaWG requires Pro. MintFlow 2.2.0 supports AmneziaWG 1.5, 2.0, 3.0, and 3.1. Interfaces use type:amneziawg in [l3vpns]; peers are configured separately in [amneziawg-peers]. Existing WireGuard and earlier AmneziaWG configurations remain supported.

KeyTypeDescriptionRequired
private-keyStringThe private key for the interface.Yes
addressCIDRThe internal IP address and subnet for the interface.Yes
jcIntegerJunk packet count parameter.No
jminIntegerMinimum junk packet size.No
jmaxIntegerMaximum junk packet size.No
s1IntegerAmneziaWG S1 parameter.No
s2IntegerAmneziaWG S2 parameter.No
s3IntegerAmneziaWG S3 parameter.No
s4IntegerAmneziaWG S4 parameter.No
h1Integer or rangeH1 packet header value, for example 1 or 843739526-1233562642.No
h2Integer or rangeH2 packet header value, for example 2 or 1383464517-1389039856.No
h3Integer or rangeH3 packet header value, for example 3 or 1558777559-1611162592.No
h4Integer or rangeH4 packet header value, for example 4 or 1797613837-1977519157.No
i1 ... i5StringAmneziaWG 2.0 CPS instruction strings. Each field is limited to 255 UTF-8 bytes. Supported tags are <b>, <r>, <rd>, <rc>, and <t>.No

Example:

[l3vpns]
my-wireguard=type:wireguard,nickname:My WG,private-key:...,address:10.0.0.1/32
my-awg=type:amneziawg,nickname:My AWG,private-key:...,address:10.8.9.2/32,jc:4,jmin:40,jmax:70,s1:0,s2:0,s3:0,s4:0,h1:1,h2:2,h3:3,h4:4,i1:<r 33>

AmneziaWG 3.0 and 3.1 (Pro)

Import the native client configuration supplied by your AmneziaWG server. MintFlow recognizes supported 3.x settings and enables AmneziaWG 3 mode automatically. The existing interface editor also lets you review and edit these settings.

In MintFlow profile text, use type:amneziawg with awg3:true. The awg3 field belongs to MintFlow's profile format; it is not an option to add to a native WireGuard/AmneziaWG .conf file. Omitting it keeps the earlier AmneziaWG behavior.

KeyMeaning
awg3Set to true for 3.0/3.1 configuration. Defaults to false when omitted.
header-protection-keyOptional server-issued Base64 key that decodes to 32 bytes and is not all zero. It is separate from the private key and peer preshared key. When present, each of s1–s4 must be at least 12 bytes.
content-padding-additionAdditional content padding in bytes, as one value or an inclusive min-max range.
random-trailersBoolean, default false. The 3.1 random-trailer option requires support on both sides; keep it off for a 3.0-only server.
disable-cookiesBoolean, default false. The 3.1 cookie-policy option; use the server-issued configuration.
rekey-after-timeRekey interval in seconds, as one value or an inclusive range.
rekey-timeoutHandshake retry interval in seconds, as one value or an inclusive range.
reject-after-timeKey rejection interval in seconds, as one value or an inclusive range.
keepalive-timeoutKeepalive timeout in seconds, as one value or an inclusive range.
max-handshake-attemptsHandshake attempt count, as one value or an inclusive range.

These additional settings require awg3:true. Copy the server-issued header key, s1–s4 prefixes, and h1–h4 values or ranges. Do not generate a replacement header key or change framing parameters on only one side. Adding awg3:true to an old profile does not upgrade its server or enable every optional feature.

Ranges use minimum-maximum, for example 10-100, with the minimum no greater than the maximum. MintFlow validates the settings before compiling the profile, including header-key format, prefix lengths, non-overlapping header ranges, and timer consistency. Resolve reported configuration errors before connecting.

In [amneziawg-peers], persistent-keepalive also accepts an inclusive range when the referenced interface has awg3:true. A single 0 disables persistent keepalive; a nonzero interval or range uses seconds. Earlier AmneziaWG mode accepts a single interval only.

The following example shows the structure of a 3.1 profile. The placeholder keys are not usable credentials, and the sample parameters must be replaced with the values supplied for your server:

[l3vpns]
office=type:amneziawg,awg3:true,private-key:<client-private-key>,address:10.8.0.2/32,s1:32,s2:32,s3:32,s4:32,header-protection-key:<server-header-key>,content-padding-addition:10-100,random-trailers:true

[amneziawg-peers]
server=interface:office,public-key:<server-public-key>,endpoint:vpn.example.com:51820,allowed-ips:0.0.0.0/0,persistent-keepalive:25-35

Select the interface in Simple Mode or reference it in Rules Mode, then save and restart VPN to apply changes.

[wireguard-peers]

This section defines peers for WireGuard interfaces. The key for each entry is a user-defined name for the peer.

KeyTypeDescriptionRequired
interfaceStringThe name of the l3vpns interface this peer belongs to.Yes
public-keyStringThe public key of the peer.Yes
preshared-keyStringAn optional pre-shared key.No
endpointStringThe public endpoint of the peer (e.g., 1.2.3.4:51820).Yes
allowed-ipsList of CIDRsA list of IP addresses/ranges to be routed through this peer.Yes

Example:

[wireguard-peers]
my-peer=interface:my-wireguard,public-key:...,endpoint:1.2.3.4:51820,allowed-ips:0.0.0.0/0

[amneziawg-peers]

This section defines peers for AmneziaWG interfaces. The key for each entry is a user-defined peer name. The fields match WireGuard peers, but interface must reference an [l3vpns] entry whose type is amneziawg.

KeyTypeDescriptionRequired
interfaceStringThe name of the amneziawg interface this peer belongs to.Yes
public-keyStringThe public key of the peer.Yes
preshared-keyStringAn optional pre-shared key.No
endpointStringThe public endpoint of the peer, for example 1.2.3.4:51820.Yes
allowed-ipsList of CIDRsA list of IP addresses/ranges to be routed through this peer.Yes
persistent-keepaliveInteger or rangeKeepalive interval in seconds. 0 disables it. An inclusive range such as 25-35 requires awg3:true on the interface.No

Example:

[amneziawg-peers]
my-awg-peer=interface:my-awg,public-key:...,endpoint:1.2.3.4:51820,allowed-ips:0.0.0.0/0,::/0

Read this page as Markdown