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
| Key | Type | Description | Required |
|---|---|---|---|
type | String | Active types include wireguard, amneziawg, and experimental tailscale. openvpn is accepted by the schema but should not be treated as an implemented OpenVPN client. | Yes |
nickname | String | A user-friendly name for the interface. | No |
enabled | Boolean | Whether the interface is enabled. Defaults to true. | No |
WireGuard Specific Fields (When type=wireguard)
| Key | Type | Description | Required |
|---|---|---|---|
private-key | String | The private key for the interface. | Yes |
address | CIDR | The internal IP address and subnet for the interface. | Yes |
Tailscale fields (type:tailscale, experimental, Pro)
| Key | Meaning |
|---|---|
login-server | HTTPS control server URL, normally https://controlplane.tailscale.com; no embedded credentials, query, or fragment. |
auth-key | Optional bootstrap enrollment key. Prefer browser login or a one-time key submission to avoid saving secrets in the profile. |
exit-node-ip | Optional 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-dns | Default 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. |
enabled | Default 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.
| Key | Type | Description | Required |
|---|---|---|---|
private-key | String | The private key for the interface. | Yes |
address | CIDR | The internal IP address and subnet for the interface. | Yes |
jc | Integer | Junk packet count parameter. | No |
jmin | Integer | Minimum junk packet size. | No |
jmax | Integer | Maximum junk packet size. | No |
s1 | Integer | AmneziaWG S1 parameter. | No |
s2 | Integer | AmneziaWG S2 parameter. | No |
s3 | Integer | AmneziaWG S3 parameter. | No |
s4 | Integer | AmneziaWG S4 parameter. | No |
h1 | Integer or range | H1 packet header value, for example 1 or 843739526-1233562642. | No |
h2 | Integer or range | H2 packet header value, for example 2 or 1383464517-1389039856. | No |
h3 | Integer or range | H3 packet header value, for example 3 or 1558777559-1611162592. | No |
h4 | Integer or range | H4 packet header value, for example 4 or 1797613837-1977519157. | No |
i1 ... i5 | String | AmneziaWG 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.
| Key | Meaning |
|---|---|
awg3 | Set to true for 3.0/3.1 configuration. Defaults to false when omitted. |
header-protection-key | Optional 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-addition | Additional content padding in bytes, as one value or an inclusive min-max range. |
random-trailers | Boolean, default false. The 3.1 random-trailer option requires support on both sides; keep it off for a 3.0-only server. |
disable-cookies | Boolean, default false. The 3.1 cookie-policy option; use the server-issued configuration. |
rekey-after-time | Rekey interval in seconds, as one value or an inclusive range. |
rekey-timeout | Handshake retry interval in seconds, as one value or an inclusive range. |
reject-after-time | Key rejection interval in seconds, as one value or an inclusive range. |
keepalive-timeout | Keepalive timeout in seconds, as one value or an inclusive range. |
max-handshake-attempts | Handshake 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.
| Key | Type | Description | Required |
|---|---|---|---|
interface | String | The name of the l3vpns interface this peer belongs to. | Yes |
public-key | String | The public key of the peer. | Yes |
preshared-key | String | An optional pre-shared key. | No |
endpoint | String | The public endpoint of the peer (e.g., 1.2.3.4:51820). | Yes |
allowed-ips | List of CIDRs | A 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.
| Key | Type | Description | Required |
|---|---|---|---|
interface | String | The name of the amneziawg interface this peer belongs to. | Yes |
public-key | String | The public key of the peer. | Yes |
preshared-key | String | An optional pre-shared key. | No |
endpoint | String | The public endpoint of the peer, for example 1.2.3.4:51820. | Yes |
allowed-ips | List of CIDRs | A list of IP addresses/ranges to be routed through this peer. | Yes |
persistent-keepalive | Integer or range | Keepalive 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