#!/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