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/reset-vpn.xml.in | 96 ++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 op-mode-definitions/reset-vpn.xml.in (limited to 'op-mode-definitions/reset-vpn.xml.in') diff --git a/op-mode-definitions/reset-vpn.xml.in b/op-mode-definitions/reset-vpn.xml.in new file mode 100644 index 000000000..71dbb4ed9 --- /dev/null +++ b/op-mode-definitions/reset-vpn.xml.in @@ -0,0 +1,96 @@ + + + + + Reset a service + + + + + Reset Virtual Private Network (VPN) information + + + + + Reset remote access VPN connections + + + + + Terminate all users current remote access VPN session(s) + + + + + Terminate specified users current remote access VPN session(s) with specified protocol + + + + + Terminate all users current remote access VPN session(s) with L2TP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="l2tp" + + + + Terminate all users current remote access VPN session(s) with PPTP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="pptp" + + + + Terminate all users current remote access VPN session(s) with SSTP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="sstp" + + + + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" + + + + Terminate a remote access VPN interface + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --interface="$5" + + + + Terminate specified users current remote access VPN session(s) + + + + + Terminate specified users current remote access VPN session(s) with specified protocol + + + + + Terminate all users current remote access VPN session(s) with L2TP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="$5" --protocol="l2tp" + + + + Terminate all users current remote access VPN session(s) with PPTP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="$5" --protocol="pptp" + + + + Terminate all users current remote access VPN session(s) with SSTP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="$5" --protocol="sstp" + + + + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="$5" + + + + + + + + -- cgit v1.2.3