routing from one interface to another in windows 11

Billy Moon 0 Reputation points
2025-04-15T02:56:29.61+00:00

I setup a tunnel between a Mac and a Windows 11 box. The windows machine has one network on the tun interface it also has a different network on its wifi interface. I send a "ping" packet via the tunnel connected to the tun interface. The ping packet arrives at the windows 11 machine. Its destination is the WiFi interface's IP address. The ping packet (ICMP Pingv4) is dropped. I have tried:

  1. disabling firewall
  2. adding an advanced firewall rule to enable ICMPv4
  3. netsh interface ipv4 set interface tun forwding=enabled on both the tun and the wifi cards --> with this set on the tun interface I can ping its address from the remote machine but not the wifi address. With this set on both interfaces, I can't ping either interface from the remote machine. In all cases the packets arrive and are dropped
  4. I have tried turning on the very basic "remote access and routing" functionality

Note this is quite simple on a mac or on a linux box. You just have to turn on ipv4 or ipv6 routing and you're done. Works great. Simple cli command. I simply can't find a combination of cli commands to enable this on a windows 11 laptop. I'm far from an expert on windows or windows network. I am a 40+ year veteran networking software engineer. Any pointers would be greatly appreciated!

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Geoff McKenzie 865 Reputation points
    2025-04-15T04:21:21.88+00:00

    Hi Bill,

    I haven't tried this on windows 10/11, personally, however, have you looked at this article?

    https://umatechnology.org/how-to-enable-ip-routing-windows-11/#google_vignette

    It looks like there are some additional steps after turning on RRAS. Personally I would use a server edition for routing (or something meant for routing like an opensense/pfsense VM).

    Here are some other possible Options - again I haven't tried any of them on Windows 10/11....

    https://answers.microsoft.com/en-us/windows/forum/all/ipenablerouter/c35cc4ba-a7d7-4b46-80a1-4379829236bd

    https://serverfault.com/questions/929081/how-can-i-enable-packet-forwarding-on-windows

    https://support.tetcos.com/support/solutions/articles/14000098272-how-to-enable-ip-forwarding-in-windows-for-emulation-using-netsim-

    https://serverfault.com/questions/1164386/why-is-the-windows-routing-registry-value-ipenablerouter-1-no-longer-working

    https://www.elevenforum.com/t/routing-through-win-11.4581/

    It has been a long time since I had windows 'acting' as a router. I have used internet connection sharing and the registry hack but neither since about windows xp timeline.

    HTH


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.