Generate Wireguard keys
Generate the default Wireguard keypair
sudo ${vyos_op_scripts_dir}/wireguard.py --genkey
Generate a Wireguard preshared key
${vyos_op_scripts_dir}/wireguard.py --genpsk
Generate specified Wireguard keypairs
sudo ${vyos_op_scripts_dir}/wireguard.py --genkey --location "$4"
Show Wireguard properties
Show Wireguard keys
Show specified Wireguard public key
${vyos_op_scripts_dir}/wireguard.py --showpub --location "$5"
Show specified Wireguard private key
${vyos_op_scripts_dir}/wireguard.py --showpriv --location "$5"
Show Wireguard interface information
sudo ${vyos_op_scripts_dir}/wireguard.py --showinterface "$4"
Show all IP addresses allowed for the specified interface
sudo wg show "$4" allowed-ips
Show all endpoints for the specified interface
sudo wg show "$4" endpoints
Show all peer IDs for the specified interface
sudo wg show "$4" peers
Show Wireguard interface information
${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireguard --action=show-brief
Show detailed Wireguard interface information
${vyos_op_scripts_dir}/show_interfaces.py --intf-type=wireguard --action=show
Delete Wireguard properties
Delete a Wireguard keypair
sudo ${vyos_op_scripts_dir}/wireguard.py --delkdir --location "$4"