A remote computer has two options to use the internet when it connects to an internal network, and one of them is the default gateway. If you want to prevent the remote client computer from using the internet through the default gateway and allow it to use the secure tunnel that DirectAccess generates, this guide will help you do that. You can route all traffic through the internal network in Windows 11/10 if you follow this step-by-step tutorial.
Route all Traffic through the Internal Network in Windows
To route all traffic through the internal network in Windows 11/10 using Group Policy, follow these steps:
- Search for gpedit.msc in the Taskbar search box.
- Click on the individual search result.
- Navigate to Network Connections in Computer Configuration.
- Double-click on the Route all traffic through the internal network setting.
- Select the Enabled option.
- Click the OK button.
Let’s delve into these steps in detail.
At first, you need to open the Local Group Policy Editor on your computer. For that, you can search for gpedit.msc in the Taskbar search box and click on the individual search result. Once it is opened, navigate to this path:
Computer Configuration > Administrative Templates > Network > Network Connections
Here you can find a setting on the right side called Route all traffic through the internal network. You need to double-click on this setting and choose the Enabled option.
Click the OK button to save the change.
However, if you want to revert to the default setting or do not want to route all traffic through the internal network, you need to follow these steps. At first, open the Local Group Policy Editor and navigate to the same path as mentioned above to open the same setting.
Then, choose the Disabled or Not Configured option. At last, click the OK button to save the change.
As mentioned earlier, you can do the same thing using the Registry Editor. As you are about to change the values in the Registry Editor, it is recommended to backup all Registry files.
How to route all Traffic through the Internal Network using Registry
To route all traffic through the internal network in Windows 11/10 using Registry, follow these steps:
- Press Win+R to open the Run prompt.
- Type regedit > hit the Enter button > click the Yes option.
- Navigate to Windows in HKLM.
- Right-click on Windows > New > Key.
- Set the name as TCPIP.
- Right-click on TCPIP > New > Key.
- Name it as v6Transition.
- Right-click on v6Transition > New > String Value.
- Name it as Force_Tunneling.
- Double-click on it to set the Value data as Enabled.
- Click the OK button.
- Reboot your computer.
To know more about these steps in detail, continue reading.
At first, you need to press Win+R > type regedit > press the Enter button and click on the Yes option to open the Registry Editor on your computer.
Then, navigate to this path:
Right-click on the Windows key > select New > Key > set the name as TCPIP. Then, right-click on the TCPIP > select New > Key > enter the name as v6Transition.
Following that, you need to create a String Value. For that, right-click on the v6Transition > New > String Value, and set the name as Force_Tunneling.
Next, double-click on this String Value to set the Value data as Enabled to allow and Disabled to block.
Click the OK button and reboot your computer.
That’s all! Hope this guide was helpful.
How do I force all traffic through VPN?
A well-encrypted VPN doesn’t need extra or special settings to route all traffic through a virtual private network on your Windows 11/10 computer. All you need is a reliable VPN connection that is up and running. While using a free VPN tool might leak your network traffic, a premium VPN tool supports better encryption. You should also check if there is a kill switch (that prevents leaks) in your VPN settings or preferences and if it is turned on.
How do I route all traffic through Tor in Windows?
If you want to route all your PC traffic through the Tor network in Windows 11/10, then use a free tool called OnionFruit (similar to VPN). You can download this tool from dragonfruit.network. Run the downloaded EXE file to install this tool and open its interface. Use the Tor Disconnected button to turn it on. You can also change the country if you want or keep it to random. After that, the tool will connect your PC to the Tor network.
Read: Deploying Always On VPN with the Remote Access in Windows.