Simple PPTP, L2TP/IPsec, OpenVPN installers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vpn-install/ipsec/disconnect.sh.dist

14 lines
208 B

#!/usr/bin/env bash
set -e
if [[ "$EUID" -ne 0 ]]; then
echo "Sorry, you need to run this as root"
exit 1
fi
echo "d L2TP-PSK-NAT" > /var/run/xl2tpd/l2tp-control
sleep 2
ipsec down L2TP-PSK-NAT
sleep 2