From 785a2d26998db580a1996edba584aac612b11b3a Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Thu, 12 Sep 2019 15:40:00 +0000 Subject: [l2tp] T834 fix cli reset commands for l2tp and pptp. Adding l2tp%d tunnel naming. --- op-mode-definitions/reset-vpn.xml | 84 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 op-mode-definitions/reset-vpn.xml (limited to 'op-mode-definitions/reset-vpn.xml') diff --git a/op-mode-definitions/reset-vpn.xml b/op-mode-definitions/reset-vpn.xml new file mode 100644 index 000000000..c0b0ddeb1 --- /dev/null +++ b/op-mode-definitions/reset-vpn.xml @@ -0,0 +1,84 @@ + + + + + Reset a service + + + + + Reset Virtual Private Network (VPN) information + + + + + Reset remote access VPN connections + + + + + Terminate all user's current remote access VPN session(s) + + + + + Terminate specified user's current remote access VPN session(s) with specified protocol + + + + + Terminate all user's current remote access VPN session(s) with L2TP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="l2tp" + + + + Terminate all user's current remote access VPN session(s) with PPTP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="pptp" + + + + + 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 user's current remote access VPN session(s) + + + + + Terminate specified user's current remote access VPN session(s) with specified protocol + + + + + Terminate all user's current remote access VPN session(s) with L2TP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="l2tp" + + + + Terminate all user's current remote access VPN session(s) with PPTP protocol + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="all_users" --protocol="pptp" + + + + + sudo ${vyos_op_scripts_dir}/reset_vpn.py --username="$5" + + + + + + + + -- cgit v1.2.3