Skip to content
Edit this page

WireGuard Outbound (type: wireguard)

Userspace WireGuard client implemented with BoringTun.

  • Feature: wireguard (enabled in standard / 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).

Example

proxies:
  - name: wg-peer
    type: wireguard
    server: wg.example.com
    port: 51820
    ip: 10.66.66.2/32
    ipv6: fd42:42:42::2/128
    private-key: "BASE64_PRIVATE_KEY"
    public-key: "BASE64_PEER_PUBLIC_KEY"
    mtu: 1280
    udp: true
    remote-dns-resolve: true
    dns:
      - 1.1.1.1
    reserved-bits: [0, 0, 0]