From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/wireguard.xml.in | 137 +++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 op-mode-definitions/wireguard.xml.in (limited to 'op-mode-definitions/wireguard.xml.in') diff --git a/op-mode-definitions/wireguard.xml.in b/op-mode-definitions/wireguard.xml.in new file mode 100644 index 000000000..69ba8043d --- /dev/null +++ b/op-mode-definitions/wireguard.xml.in @@ -0,0 +1,137 @@ + + + + + + + + wireguard key generation utility + + + + + generates the wireguard default-keypair + + sudo ${vyos_op_scripts_dir}/wireguard.py --genkey + + + + generate a wireguard preshared key + + ${vyos_op_scripts_dir}/wireguard.py --genpsk + + + + Generates named wireguard keypairs + + sudo ${vyos_op_scripts_dir}/wireguard.py --genkey --location "$4" + + + + + + + + + + Show wireguard properties + + + + + Shows named wireguard keys + + + + + Show wireguard private named key + + + + + ${vyos_op_scripts_dir}/wireguard.py --showpub --location "$5" + + + + Show wireguard public named 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 allowed-ips 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" + + + + + + -- cgit v1.2.3