$ netstat -nr
Destination Gateway
....
[home-ip]/32 [school-router-ip-i-think] ....
....$ netstat -nr
Destination Gateway
...
[home-ip]/32 [school-router-ip-i-think] ...
...
$ ping [home-ip]
PING [home-ip]: 56 data bytes
ping: sendto: Network is unreachable
ping: sendto: Network is unreachable
Request timeout for icmp_seq 0
...
I can't under any circumstances connect to my home network (VPN, ping, anything) after this happens. If I then just delete the route:
$ sudo route -n delete [home-ip]
delete net [home-ip]
$ ping [home-ip]
PING [home-ip]: 56 data bytes
64 bytes from [home-ip]: icmp_seq=1 ttl=56 time=13.111 ms
64 bytes from [home-ip]: icmp_seq=1 ttl=56 time=13.111 ms
64 bytes from [home-ip]: icmp_seq=1 ttl=56 time=13.111 msIt works fine.
I don't notice this happening when I connect and disconnect from a commercial VPN. Why does a route get left behind when I connect/disconnect from my home OpenVPN server? Is it possible to add a line to the disconnect script so that this gets removed?
Thanks for your help!