1

I am connecting to my workplace's network through a vpn. All I need is the local network there (offline servers, local computers and data stores). After I connected to the VPN, all of my packets go through the vpn and slows down everything for me and generates an unnecessary load on my office's internet connection (once windows started to update on my computer and it started to use most of the office's internet connection, because they only have 30/10 MBit/s internet connection).

Is it possible to set the vpn in a way, where it only allows access to the local resources?

enter image description here

Edit 1:

Can't I just set the default gateway off to the vpn?

enter image description here

1 Answers1

0

I had the same problem some days ago and finally got it solved by modifying the priority windows assigns to each interface. You can do this by:

  1. on a command window, run "route PRINT" and annotate the priority of the vpn and non-vpn routes.
  2. go to the properties of the non-vpn interface, to the properties of tcp/ipv4 or tpc/ipv6 and click on "advanced". There you can uncheck the "automatic metric" and set another higher for that interface. By doing this when a connection can be established either by the vpn or the non-vpn, the one with the higher priority will be used.

However, there is a drawback: some VPNs automatically set the priority to the highest when they boot. So, before starting the VPN you should set again the metric to automatic, start the VPN, and reset the metric to whatever number you want.

chronos
  • 147