sakai135 / wsl-vpnkit

Provides network connectivity to WSL 2 when blocked by VPN
MIT License
2.32k stars 170 forks source link

WSL2 September 2023 allows for Mirrored Networking Mode #253

Open asaf400 opened 10 months ago

asaf400 commented 10 months ago

In the recent update post from WSL: https://devblogs.microsoft.com/commandline/windows-subsystem-for-linux-september-2023-update/

One of the new features is New Networking Mode – Mirrored among the notes about the feature:

Here are the current benefits to enabling this mode:
-     IPv6 support
-     Connect to Windows servers from within Linux using the localhost address 127.0.0.1
-     Connect to WSL directly from your local area network (LAN)
-     Improved networking compatibility for VPNs
-     Multicast support

I would ask to maybe also mention that in the README of this repo, since this new networking mode, may have made wsl-vpnkit obsolete..

Don't get me wrong, this Repo is amazing, it allowed me and many other WSL2 enthusiasts to use VPNs within WSL, Without it I couldn't have worked efficiently for the last 2 years, so kudos to that ! 🎉

I'm just saying this new thing might be a good working alternative, so maybe it deserves a mention in order to spread the news..

hotchkj commented 10 months ago

You do also have to have Windows 11, version 22H2, build 255xx and above; I'm finding this still incredibly valuable on Windows 10 with a few of the PRed fixes applied.

terlar commented 9 months ago

The new networkingMode=mirrored is not guaranteed to work with all VPN:s. I am currently using it, but still have to use wsl-vpnkit to get the connectivity working.

K2ouMais commented 8 months ago

And networkingMode=mirrored ist still only for Windows 11.

I am still on Windows 10, so I have to use vpn-wslkit, wich still works really good.

MichaelKorn commented 1 month ago

I also had some hope to use networkingMode=mirrored, but it does not work if the IPv6 stack is disabled. (https://github.com/microsoft/WSL/issues/11002)