!!! question "Since sing-box 1.11.0"
{
"type": "wireguard",
"tag": "wg-ep",
"system": false,
"name": "",
"mtu": 1408,
"gso": false,
"address": [],
"private_key": "",
"listen_port": 10000,
"peers": [
{
"address": "127.0.0.1",
"port": 10001,
"public_key": "",
"pre_shared_key": "",
"allowed_ips": [],
"persistent_keepalive_interval": 0,
"reserved": [0, 0, 0]
}
],
"udp_timeout": "",
"workers": 0,
... // Dial Fields
}
Use system interface.
Requires privilege and cannot conflict with exists system interfaces.
Custom interface name for system interface.
WireGuard MTU.
1408
will be used by default.
!!! quote ""
Only supported on Linux.
Try to enable generic segmentation offload.
==Required==
List of IP (v4 or v6) address prefixes to be assigned to the interface.
==Required==
WireGuard requires base64-encoded public and private keys. These can be generated using the wg(8) utility:
wg genkey
echo "private key" || wg pubkey
or sing-box generate wg-keypair
.
==Required==
List of WireGuard peers.
WireGuard peer address.
WireGuard peer port.
==Required==
WireGuard peer public key.
WireGuard peer pre-shared key.
==Required==
WireGuard allowed IPs.
WireGuard persistent keepalive interval, in seconds.
Disabled by default.
WireGuard reserved field bytes.
UDP NAT expiration time.
5m
will be used by default.
WireGuard worker count.
CPU count is used by default.
See Dial Fields for details.