I'm using network-manager-openvpn (w Ubuntu 14.04) to manage VPN connections (client end).
I need to run a script when a VPN is activated to fix some routing issues. I know how to do this using openvpn config options ( --script-security 2 --up /script.. ) but I can not figure out a sensible way with network-manager in the mix.
Is there a "recommended" way to approach this without reverting to pre-network-manager config files?
Or is there a suggested way to detect that the VPN has come up and hence triggering an action (something a bit more elegant than firing off a cron to look at the status every minute would be appreciated!)?