/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.
| 标志 | 名称 | 描述 |
|---|---|---|
X | disabled | 项目是否已禁用。 |
R | running | 接口是否正在运行。 |
| 参数 | 类型 | 描述 |
|---|---|---|
name | string | 隧道名称。 |
mtu | num | 三层最大传输单元。 |
listen-port | num | WireGuard 服务用于监听传入会话的端口。 |
private-key | string | Base64 私钥。如果未指定,则在创建接口时自动生成。每个网络接口都有一个私钥和一个对等点列表。 |
vrf | enum | 指定 WireGuard UDP 套接字使用哪个 VRF 来决定加密数据包的发送或接收方式。 |
| 只读参数 | 类型 | 描述 |
|---|---|---|
public-key | string | 根据私钥计算出的 Base64 公钥。对等点使用公钥相互认证。 |