How to route all Traffic through the Internal Network in Windows 11/10

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:

  1. Search for gpedit.msc in the Taskbar search box.
  2. Click on the individual search result.
  3. Navigate to Network Connections in Computer Configuration.
  4. Double-click on the Route all traffic through the internal network setting.
  5. Select the Enabled option.
  6. 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:

  1. Press Win+R to open the Run prompt.
  2. Type regedit > hit the Enter button > click the Yes option.
  3. Navigate to Windows in HKLM.
  4. Right-click on Windows > New > Key.
  5. Set the name as TCPIP.
  6. Right-click on TCPIP > New > Key.
  7. Name it as v6Transition.
  8. Right-click on v6Transition > New > String Value.
  9. Name it as Force_Tunneling.
  10. Double-click on it to set the Value data as Enabled.
  11. Click the OK button.
  12. 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:

HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindows

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.

How to route all traffic through DirectAccess?

To route all traffic through DirectAccess, you need to follow the aforementioned guides. In the Local Group Policy Editor, open the Route all traffic through the internal networksetting and choose the Enabled option. However, if you want the Registry method, you need to create a String value named ­Force_Tunneling and set the Value data as Enabled.

Original Article