Ok well I got something working
It looks like /etc/NetworkManager/dispatcher.d/01ifupdown calls all the scripts in /etc/network/*
There are 2 (broken)scripts for automatic vpn startup in /etc/network/if-down.d/openvpn and /etc/network/if-up.d/openvpn
I just modified them so that they call /etc/init.d/openvpn start/stop
/etc/network/if-up.d/openvpn:
Quote:
#!/bin/sh
OPENVPN=/etc/init.d/openvpn
if [ ! -x $OPENVPN ]; then
exit 0
fi
sleep 2 # sleep to let the network settle
$OPENVPN start
echo "nameserver 10.36.40.1" > /etc/resolv.conf #overwrite local lan dns with dns on vpn server
|