How can I disable 'Use default Gateway for remote networks' setting in Windows 10?

20

7

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?

Asif M

Posted 2015-08-10T15:09:50.853

Reputation: 337

4If 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 – 2015-08-10T15:35:37.530

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 – 2015-08-18T15:45:52.593

This was a bug. It was fixed in TH2. See related answer here.

– StackzOfZtuff – 2016-03-14T13:00:44.403

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 – 2018-05-17T22:44:56.597

@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 – 2018-05-17T22:49:30.050

Some VPN profiles don't have the networking tab. – John Stoneman – 2019-10-02T09:45:09.767

Answers

23

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

Set-VpnConnection -Name "myVPN" -SplitTunneling $True

Madmucho

Posted 2015-08-10T15:09:50.853

Reputation: 346

Tried earlier, but my tracert goes always through VPN, even after applying this command. And yes, I know name of "myVPN". :( – Jiří Herník – 2015-09-01T10:45:09.863

1what 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 – 2016-03-14T21:09:47.830

1Something is missing here. What does True mean? Do, or do not, use the remote default gateway? – underscore_d – 2017-01-11T10:51:05.243

1$True mean this setting will be enabled, default value in windows is $False – Madmucho – 2017-04-07T11:47:49.797

I tried this, and it resulted in no traffic going through the VPN at all, not even the VPN-only sites -.- – Attila Szeremi – 2017-10-10T10:53:59.720

7

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

Chris Mallon

Posted 2015-08-10T15:09:50.853

Reputation: 71

Nice, the tool is cool when run from win+r by rasphone. – Qwerty – 2016-06-13T14:10:07.853

Great answer. But now I found that the VPN I'm using automatically changes this back to 1 when connecting. How can I prevent that? – John Stoneman – 2019-10-02T09:44:24.930