add login and logout script for VPN

This commit is contained in:
2022-10-16 20:07:27 +02:00
parent c5491c6ca1
commit a4e49535a8
2 changed files with 21 additions and 0 deletions

7
VPN/logout.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
ip route del default dev ppp0
ip route del 192.168.2.0/24 dev ppp0
echo "d HOMESERVER" > /var/run/xl2tpd/l2tp-control
service xl2tpd restart