19

I have been disabling the 'use default gateway for remote networks' option to bypass unnecessary traffic from going through vpn. But after upgrading to Windows 10 I can't change the setting since the IPv4 Properties does not open up when I click it.

enter image description here

Is there any other way to access this setting?

  • 4
    If the IPv4 properties don't open, then I'd say you probably have a bigger problem that you should be concerned about first. – Ƭᴇcʜιᴇ007 Aug 10 '15 at 15:35
  • 4
    @Ƭᴇcʜιᴇ007 well, he isn't alone with that problem. I have a fresh Windows 10 Installation here and the Properties button does nothing. There a number of TechNet Topics but so far, silence from Microsoft. – enzi Aug 18 '15 at 15:45
  • This was a bug. It was fixed in TH2. See related answer here. – StackzOfZtuff Mar 14 '16 at 13:00
  • How did you even get to this dialog box in Windows 10? I can't find anything like this in the current version of Windows. – Jonathan Wood May 17 '18 at 22:44
  • @JonathanWood Easiest way is to go to Control Panel-> Network and Internet-> Network and Sharing Center-> Change Adapter Settings (on left)-> Right click any adapter and select properties. You will see a dialog like this open up with Networking Tab on it. – Asif M May 17 '18 at 22:49
23

You can use this powershell command to enable/disable default gateway on VPN:

Set-VpnConnection -Name "myVPN" -SplitTunneling $True
  • Tried earlier, but my tracert goes always through VPN, even after applying this command. And yes, I know name of "myVPN". :( – Jiří Herník Sep 1 '15 at 10:45
  • 1
    what if I am using VPN Client called 'FortiClient' ? I can't list or set config using this above command. What is the solution for that. – OverrockSTAR Mar 14 '16 at 21:09
  • 1
    Something is missing here. What does True mean? Do, or do not, use the remote default gateway? – underscore_d Jan 11 '17 at 10:51
  • 1
    $True mean this setting will be enabled, default value in windows is $False – Madmucho Apr 7 '17 at 11:47
  • I tried this, and it resulted in no traffic going through the VPN at all, not even the VPN-only sites -.- – Attila Szeremi Oct 10 '17 at 10:53
6

If you go to here: %appdata%\Microsoft\Network\Connections\Pbk\rasphone.pbk open with text editor and for every Vpn connection listed change IpPrioritizeRemote=1 – change this to 0 to disable

  • Nice, the tool is cool when run from win+r by rasphone. – Qwerty Jun 13 '16 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.