WireGuard
DeviceConfig and PeerConfig
Proto: protos/proto/vx/proxy/wireguard/config.proto
WireGuard is used only as an outbound DeviceConfig (this proto has no *ServerConfig).
DeviceConfig
secretKeystring
Local interface private key (WireGuard key format)
endpointstring[]
Device-level endpoint host list (optional)
mtuint32
TUN interface MTU
numWorkersint32
Number of encryption worker threads
reservedbytes
WireGuard protocol reserved bytes (3 bytes, used to bypass blocking)
noKernelTunbool
When true, use userspace TUN only; do not use kernel WireGuard
{
"@type": "type.googleapis.com/vx.proxy.wireguard.DeviceConfig",
"secretKey": "...",
"isClient": true,
"peers": [
{
"publicKey": "...",
"endpoint": "vpn.example.com:51820",
"allowedIps": ["0.0.0.0/0", "::/0"]
}
]
}PeerConfig
publicKeystring
Peer public key
preSharedKeystring
Optional pre-shared key (PSK)
endpointstring
Peer endpoint host:port
keepAliveuint32
Persistent keepalive interval (seconds)
allowedIpsstring[]
List of IP CIDRs routed through this peer
Related
- Outbounds
- TCP header masking —
wireguardheader type