I'm using Ubuntu Network Manager VPN client to connect to a PPTP vpn server.
I have an application that get some data from internet and must be runned from behind the VPN.
I need to suspend application process if VPN connection dropped.
How can I find out the VPN is connected/disconnected (script or command)?
Or is there a service that be able to call an script when VPN connected/disconnected?