New sequence for installing openvpn with setup of custom scripts

This commit is contained in:
2021-03-27 05:35:11 +00:00
parent 260daa009c
commit 741d0c74c9
7 changed files with 168 additions and 0 deletions

13
seqs/openvpn/vpn-down Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Manage nameserver with resolvconf
#/etc/openvpn/update-resolv-conf
# Manage nameserver with /etc/resolv.conf only
#/usr/lib/openvpn/down.sh $@
# Delete route to internal network
#/usr/sbin/ip route del 10.5.0.0/24 via 192.168.0.20 dev eth0
# Stop services only active while vpn is connected
/usr/lib/openvpn/vpn-services stop