New sequence for installing openvpn with setup of custom scripts
This commit is contained in:
16
seqs/openvpn/vpn-up
Executable file
16
seqs/openvpn/vpn-up
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Make sure firewall is active
|
||||
#ufw --force enable
|
||||
|
||||
# Manage nameserver with resolvconf
|
||||
#/etc/openvpn/update-resolv-conf
|
||||
|
||||
# Manage nameserver with /etc/resolv.conf only
|
||||
#/usr/lib/openvpn/up.sh $@
|
||||
|
||||
# Add route to internal network
|
||||
#/usr/sbin/ip route add 10.5.0.0/24 via 192.168.0.20 dev eth0
|
||||
|
||||
# Start services only active while vpn is connected
|
||||
/usr/lib/openvpn/vpn-services start
|
Reference in New Issue
Block a user