When I connect to my corporate VPN from home, all network traffic including internet traffic goes through the VPN (Figure 1). The VPN is much slower than my home internet, so I would like to route only requests for intranet data via the VPN (Figure 2).
My route table starts as follows:
IPv4 Route Table ================ Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.2 4000 0.0.0.0 0.0.0.0 On-link 10.0.0.142 26 <-appears when VPN connects 10.0.0.0 255.255.255.0 On-Link 10.0.0.142 26 <-appears when VPN connects
My understanding of routing tables is that the 0.0.0.0 entries describe how traffic reaches the internet. The first entry represents my home router acting as a gateway when the VPN is disconnected. The second entry represents the traffic routed via the VPN.
I have tried:
- With NirSoft NetRouteView, delete the 0.0.0.0 On-Link entry from the routing table. After doing this, I lost internet connection even though the 0.0.0.0 192.168.1.1 entry was still there.
- With NirSoft NetRouteView, change the metric value of the 0.0.0.0 On-Link entry to 5000, to prioritise internet via my home router. This didn't have any effect. Tracert to www.google.com showed the connection still went via my corporate VPN.
The VPN is connected via Windows 10 built-in SSTP.
Can what I'm trying be done, and what should I try next?