/interface/wireguard
当前显示英文原文,切换到「中文」可查看译文。
wireguard
WireGuard creates encrypted IP tunnels between peers identified by public keys.
interface/wireguard
Type: Directory
WireGuard creates encrypted IP tunnels between peers identified by public keys.
| Flag | Name | Description |
|---|---|---|
X | disabled | Whether an item is disabled. |
R | running | Whether the interface is running. |
| Argument | Type | Description |
|---|---|---|
name | string | Name of the tunnel. |
mtu | num | Layer3 maximum transmission unit. |
listen-port | num | Port for the WireGuard service to listen on for incoming sessions. |
private-key | string | A base64 private key. If not specified, it is automatically generated upon interface creation. Each network interface has a private key and a list of peers. |
vrf | enum | Specifies which VRF the WireGuard UDP socket uses to determine how encrypted packets are sent or received. |
| Read-only Argument | Type | Description |
|---|---|---|
public-key | string | A base64 public key calculated from the private key. Public keys are used by peers to authenticate each other. |