wireguard
interface/wireguard
Type: Directory
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled |
| R | running | running |
| Argument | Type | Description |
|---|---|---|
| name | string | |
| mtu | num | |
| listen-port | num | |
| private-key | string | |
| vrf | enum |
| Read-only Argument | Type | Description |
|---|---|---|
| public-key | string |
interface/wireguard/peers
Type: Directory
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled |
| D | dynamic | dynamic |
| Argument | Type | Description |
|---|---|---|
| interface ( mandatory ) | interface_enum | |
| name | string | |
| public-key | string | |
| private-key | alt { enum (none | auto) { none:0, auto:1 } , string } | |
| endpoint-address | address (flags=46D) | |
| endpoint-port | num | |
| allowed-address ( mandatory ) | multi_arg { address (flags=46/) } | |
| preshared-key | alt { enum (none | auto) { none:0, auto:1 } , string } | |
| persistent-keepalive | time | |
| client-address | multi_arg { address (flags=46/) } | |
| client-dns | multi_arg { address (flags=46) } | |
| client-endpoint | address (flags=46D) | |
| client-keepalive | time | |
| client-listen-port | num | |
| client-allowed-address | multi_arg { address (flags=46/) } | |
| responder | bool |
| Read-only Argument | Type | Description |
|---|---|---|
| current-endpoint-address | address (flags=46) | |
| current-endpoint-port | num | |
| rx | num | |
| tx | num | |
| last-handshake | time |
interface/wireguard/peers/show-client-config
Type: Command
| Argument | Type | Description |
|---|---|---|
| file | file_enum { } |
| Read-only Argument | Type | Description |
|---|---|---|
| conf | string | |
| qr | pic_arg |
interface/wireguard/wg-export
Type: Command
| Argument | Type | Description |
|---|---|---|
| file | file_enum |
interface/wireguard/wg-import
Type: Command
| Argument | Type | Description |
|---|---|---|
| config-file | file_enum | |
| config-string | string |