VPN problem

AndrewZ

Ars Legatus Legionis
11,860
I have a VPN problem. I work from home with a work laptop. I initiate the VPN from an externally accessible web page. When I stop working it times out and drops. In the past, traffic would revert back to 192.168.1.1, so the next day I could access the external page and restart the VPN. Lately traffic does not revert back to 192.168.1.1, I cannot access the VPN start page, or any web sites.

I cannot ping the VPN default gateway, XX.0.0.1. I can ping 192.168.1.1.

If I reboot, I can restart everything but I lose 30 minutes of work.

When I contacted the help desk I got a tier 1 support person who did not know any networking and told me to come into the office. If I have to go into the office I will, but it will take a while to schedule.

Any advice on how to get web access?
 
Assuming you route everything over the VPN when it's connected. It sounds like when the VPN drops, the default route doesn't get cleaned up and so your computer still tries to send everything over VPN.

Next time it happens, print out the list of routes (netstat -anr) and see if the default route is anything other than 192.168.1.1. If so, you'll want to delete it and make 192.168.1.1 the default.

Do you have admin privileges on your computer? It'll be impossible to delete and create a new default route if you don't.

dt
 
Which OS? If you can ping your local gateway but not your VPN gateway, it might be something other than routing. I'm inclined to think it's an issue with DNS since you can't access ANY site... have you tried pinging 8.8.8.8? Restart your DNS service, how to do this will depend on your OS.

I have the same issue as you with OpenVPN on Ubuntu 18.04. Shutting down my link requires me to restart resolved, since the nameservers in /etc/resolv.conf don't get reset back to whatever DHCP provides. Therefore, I can ping anything I want all day long as long as I know the IP address, but trying to ping any site by the domain name times out (until I restart resolved).