so i have vpn configured, but sometimes for unknown reason, either my vpn disconnects or the route in ip/routes just disables itself (this happens more often)
i have a certain range mangled to connect to vpn/ is there a line i can add so if ppp vpn connection gets disconnected or ip/route gets disabled, the mangled ip range automatically gets disconnected?
a) Somehow detect disconnected VPN (netwatch, script, ...) and disable what you want when it happens.
b) Add firewall rules to only allow some traffic to go out via VPN interface. When VPN goes down, if will try to go via default route and will be blocked.