By default (I guess) Ubuntu cuts my internet connection whenever I disconnect a VPN, which is nice unless you don't want it, and have to reconnect (stop and start) your connection every time. How can I configure it so that it does not block my traffic after disconnecting a particular VPN connection?
A workaround for this issue is to create a dispatch script for Network-Manager that will do this automagically for you.
Create
/etc/NetworkManager/dispatcher.d/80-ppp-vpn-down
with the following contents:Make sure to make it executable as well: