Windows 10. We have a VPN that we use to access our servers and we can also use that to protect internet traffic when connecting via public WiFi. I have checked the IPv4 advanced setting to use default gateway for the VPN network adapter.
When doing tracert to some arbitrary internet site, e.g. kth.se (Swedish edu institution), the route goes via one of our servers, indicating that it is routed via the VPN.
But when I do tracert to a domain that points to the public IP of one of our other servers (on the same LAN at our hosting company), the route seems to go through the public WiFi, none of our servers appearing anywhere in the list. (But the gateway of the public WiFi does appear).
Why is that, and how can I change it? In fact, how do I make sure all internet traffic goes through the VPN? (I'd like connection to fail if the VPN somehow gets lost, so I clearly notice it).
I read this post: In Windows 10 how do you ensure all traffic goes through VPN?
It tried to follow the instructions in Moab's answer but the route didn't change. I noticed that the public IP address I was testing with was listed as a separate line in the list of active routes, so I tried deleting that route as well. At that point I was unable to access anything, and my VPN was also disconnected. Unsure in what order what happened there and what caused what (maybe VPN was lost just before I deleted that route?).