Turn Windows into a Gateway with Brook

Updated at: 2024-01-01

Requirements

Enabling Forwarding

  1. Open the Registry Editor (regedit).
  2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters.
  3. In the right pane, find the value IPEnableRouter, and set its data to 1 to enable IPv4 forwarding.
  4. Restart the computer.

Run Brook

On this Windows, normally start Brook in TUN mode (The GUI defaults to TUN mode), or running a tun2brook is also fine.

Note that you should disable FakeDNS(The GUI defaults to having FakeDNS enabled). Because other devices do not have the route to the Fake IP, they can't communicate back, of course, you can tweak things yourself, but the I think this is a bit cumbersome and unnecessary.

Test

Try on other device:

Restore

Change the value of the above registry entry to 0 and restart.


Discuss