Wireguard cli reference

show wireguard interface

show wireguard

Declaration: wg_show_itfs_command src/plugins/wireguard/wireguard_cli.c line 353

Implementation: wg_show_if_command_fn

show wireguard peer

show wireguard peer

Declaration: wg_show_peers_command src/plugins/wireguard/wireguard_cli.c line 323

Implementation: wg_show_peer_command_fn

wireguard create

wireguard create listen-port <port> private-key <key> src <IP> [generate-key]

Create a Wireguard interface.

Declaration: wg_if_create_command src/plugins/wireguard/wireguard_cli.c line 98

Implementation: wg_if_create_cli

wireguard delete

wireguard delete <interface>

Delete a Wireguard interface.

Declaration: wg_if_delete_command src/plugins/wireguard/wireguard_cli.c line 147

Implementation: wg_if_delete_cli

wireguard peer add

wireguard peer add <wg_int> public-key <pub_key_other>endpoint <ip4_dst> allowed-ip <prefix>dst-port [port_dst] persistent-keepalive [keepalive_interval]

Declaration: wg_peer_add_command src/plugins/wireguard/wireguard_cli.c line 249

Implementation: wg_peer_add_command_fn

wireguard peer remove

wireguard peer remove <index>

Declaration: wg_peer_remove_command src/plugins/wireguard/wireguard_cli.c line 297

Implementation: wg_peer_remove_command_fn