07.2024
Parameter | |||
---|---|---|---|
wireguardwireguard updatewireguard update |
– | wireguard update | |
wireguard getwireguard get |
– | wireguard get | |
wireguard interfacewireguard interface getwireguard interface get |
– | wireguard interface get | |
wireguard interface newwireguard interface new |
interface new name "wg0" type WIREGUARD | ||
interface_name | wireguard interface new interface_name "wg0" interface_description "wg_server" interface_keyobj_id "689" interface_listen_port "51820" | ||
interface_description | |||
interface_keyobj_id | |||
interface_listen_port | |||
wireguard interface setwireguard interface set |
wireguard interface set interface_id "691" interface_listen_port "51820" interface_keyobj_id "689" interface_keyobj_name "Wireguard-Key" | ||
interface_id | |||
interface_listen_port | |||
interface_keyobj_id | |||
interface_keyobj_name | |||
wireguard interface deletewireguard interface delete |
wireguard interface delete interface_id "691" | ||
interface_id | |||
wireguard peerwireguard peer getwireguard peer get |
– | wireguard peer get | |
wireguard peer newwireguard peer new |
wireguard peer new peer_name "peer" peer_public_keyobj_id "690" peer_endpoint [ ] peer_keepalive "25" peer_address_list [ 192.168.10.1/24 ] peer_interface_name_list [ wg0 ] | ||
peer_name | |||
peer_public_keyobj_id | |||
peer_psk | Optional. | ||
peer_endpoint | |||
peer_keepalive | |||
peer_address_list | |||
peer_interface_name_list | |||
wireguard peer setwireguard peer set |
wireguard peer set peer_name "peer1" peer_public_keyobj_id "706" peer_endpoint [ ] peer_address_list ["192.168.11.1/24"] peer_keepalive "25" peer_interface_id_list ["710"] peer_id "5" | ||
peer_name | |||
peer_public_keyobj_id | |||
peer_endpoint | |||
peer_address_list | |||
peer_psk | Optional. | ||
peer_keepalive | |||
peer_interface_id_list | |||
peer_id | |||
wireguard peer deletewireguard peer delete |
wireguard peer delete peer_id "5" | ||
peer_id | |||
wireguard exportwireguard export |
wireguard export | ||
wireguard pingwireguard ping |
wireguard ping peer_id_list "1" | ||
peer_id_list |