WireGuard Outbound (type: wireguard)¶
Userspace WireGuard client implemented with BoringTun.
- Feature:
wireguard(enabled instandard/ default builds). connect-via: Ignored at runtime.
Fields¶
| Key | Alias | Type | Required | Default | Description |
|---|---|---|---|---|---|
name, server, port |
— | Common | Yes | — | Peer endpoint hostname/IP and UDP port. |
private-key |
— | string |
Yes | — | Base64 WireGuard client private key. |
public-key |
— | string |
Yes | — | Base64 peer public key. |
pre-shared-key |
preshared-key |
string |
No | None |
Optional Base64 pre-shared key. |
ip |
— | IPv4 CIDR | Yes | — | Local tunnel IPv4 CIDR (e.g. 10.0.0.2/32). |
ipv6 |
— | IPv6 CIDR | No | None |
Local tunnel IPv6 CIDR. |
mtu |
— | u16 |
No | 1420 |
WireGuard tunnel MTU. |
udp |
— | bool |
No | false |
Enable UDP relay over the tunnel. |
remote-dns-resolve |
— | bool |
No | false |
Resolve destination domains through dns servers over the tunnel. |
dns |
— | list[IP] |
No | None |
DNS server IPs (port 53) used when remote-dns-resolve: true. |
allowed-ips |
— | list[CIDR] |
No | [] |
Allowed peer CIDRs. |
reserved-bits |
— | list[u8] |
No | [0, 0, 0] |
3-byte WireGuard reserved field (first 3 bytes used when length >= 3). |