-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot reach ipv6 only address #4518
Comments
Could you please take some networking logs for us? Instructions on how to do so are here! And then post the link to your feedback in this issue so we can easily find it. :) Thanks! Also for reference for myself and the team this may be a similar issue to #4436, however it's different enough since this is accessing an external site. |
Here you are: https://aka.ms/AA63cvl |
I have same issue. In wsl2, I have a docker of oracle bind to tcp6. From inside wsl2, I can connect with ::1 or 127.0.0.1, which means it is dual-stack. From the host windows: C:>netstat -an | findstr 1521 | findstr /i list C:>telnet 127.0.0.1 1521 |
As of right now the Host Network service does not support ipv6 only websites. We've filed this as a feature request with them and we will post any updates on this thread as they become available! Thank you for filing this. |
@craigloewen-msft any progress with this? Also I noticed the kernel doesn't have IPv6 enabled. Could you get the kernel bits done first if we're still waiting for underlying platform support? |
I don't have any updates for this feature request. @WSLUser what kernel modules would you like added to the kernel? And what workflows would it enable for you? |
Basically anything that lights up usage of IPv6. I'm thinking more of a network pen test perspective using Kali tools but I'm sure there are some more enterprise-y workflows that would benefit as well if hosted on Windows Server 2019. Something that comes to mind is mostly being able to serve up DHCPv6 and DNS from WSL2 for multiple hosts. |
@craigloewen-msft could the wsl2 upgrade docs be updated to explicit mention breaking IPv6? I would have probably waited a little longer had I know. Thanks. |
@hcooper Yes! I'll add that in, thank you for the suggestion. :) |
... Wow... we're in February (nearly 6 months) and this is still an issue? That's disappointing. |
In 2020 I would expect "IPv6 first, IPv4 second". Apparently not so at Microsoft. But good to know, so I will not update to WSL 2. |
Thanks for this thread - I spent about 45 minutes trying to figure out how to get IPv6 working (I have an IPv6 only site I'm trying to connect to) from WSL 2. Looking forward to seeing the protocol added! |
@craigloewen-msft Any update? WSL 2 is coming close to being widely available |
We're working on it! This feature won't be available in the initial general release of WSL2. Thanks for your patience here, this is something that we are actively looking into improving. |
WSL2 has no ipv6, and mapping to the external network requires port forwarding. |
Is there any kind of work around for this? We recently went completely remote at our organization and all access is being handled using Direct Access. Direct Access is completely IP6, which means WSL2 does not have any access to our internal network. I manage several dozen Linux based servers behind the firewall and my workflow has been completely stopped in its tracks. Ansible can't access any of the servers etc... |
If you have multiple distros, you can pick and choose which of them uses WSL1 and which uses WSL2. Just do |
What is worse is that if you are on an IPv6-only network (NAT64 for IPv4 access), WSLv2 has no internet access whatsoever. Is there a timeline on the fix? Microsoft said they are working on it (good) but working on it could mean "will deliver in May 2021 update or even later". |
IPv6 is actually a difficult mess, I think Hyper-V needs to learn prefix delegation like VMware and the ISP must provide that (my setup with TunnelBroker didn't). I had managed to make a manual setup, configure router advertisements on the "vEthernet (WSL)" interface and gave the VM an IP address in a /64 I had allocated (and also manually added a route in my Raspberry Pi so packets returning to WSL will reach it) |
@paulstelian97 Can you describe more? As I see, in my case host adapter and eth0 in wsl has different ipv6 prefixes. But I didn't manage to setup routing upd: found your question here https://superuser.com/questions/1545629/how-can-i-give-ipv6-to-wsl2 |
Is there any ETA for a fix for this? At Facebook, our internal network is mostly IPv6-only (see https://www.internetsociety.org/blog/2014/06/facebook-moving-to-an-ipv6-only-internal-network/) so this issue limits the usefulness of WSL2 in this environment. |
I managed to setup routing because the WSL network is part of a /48 that is allocated for my tunnel. That's probably what went wrong in your case. Unless WSL2 can either use prefix delegation or a bridged adapter you'll have issues (IPv6 doesn't have NAT) |
Broken IPv6 is a serious deal breaker for me. I am sitting behind a DS-lite setup, with rather painfull v4. Are there any technical issues that prevent a feature/configuration for bridging the WSL system to the host IF (or rather the bridge over that IF i have anyway for my hyperv VMs)? |
Guys, come on! I've updated to w10 2004 only because of WSL2 and I can't connect to most of my intranet? How is it still not solved since first insider builds?? |
IPv6 is actually hard to do. Hyper-V only has IPv4 NAT support, for IPv6 NAT to be supported you need something else. I have managed to do a workaround at home for this but what is supported (without the workaround) is IPv6 servers hosted in WSL. That does work just fine via the "automatic port forwarding" that is done for IPv4 as well. While it is surprisingly difficult to deploy IPv6 to virtual machines (including WSL2) because NAT isn't exactly Kosher in the IPv6 world (and that may be the reason Hyper-V won't support it), it can be done after a lot of work. But I wouldn't be surprised if 20H2 didn't have it; maybe 21H1? It would be nice if DHCP prefix delegation were a thing. |
Well, technically i'd argue that there should not be NAT, but the hyper-v host should actually do rfc4389 (https://tools.ietf.org/html/rfc4389) style proxy nd. This is v6 after all... |
Hi folks, we have put out a new update that aims to address networking issues in WSL. In your More info on this release and the changes can be found here in the blog post. Please note: You need to be on a Windows Insiders version to use the new networking settings (Any channel of Windows Insiders will do, including release preview). If you see the "These are not supported" messages it means that your current Windows version doesn't have support, and you will need to upgrade. These features will eventually be coming to Windows 11 22H2. |
Will the fix also reach win10? |
@craigloewen-msft Good news! Could you elaborate on how this mirrored mode works? Does it create an external virtual switch just like you can in regular Hyper-V? This works great for Ethernet, but I never got it to work on WiFi, probably due to lack of an ND proxy. |
These new networking features are now available on the latest version of Win11 22H2! @NiKiZe currently this is not planned to go back to Win10. Please make sure you're on the latest build to get these features, you can do that by clicking "Check for Updates" in Windows settings. You can check you have the right build by either ensuring you have KB5031354 installed, or run |
Thanks @craigloewen-msft, tried it and it works great for me on WiFi! Windows 11 22H2 10.0.22621.2428, WSL 2.0.6. I now understand that mirrored mode is indeed not a bridge, but shares the IPv6 addresses of the host system. No NAT and no ND proxy required. 👍 Will this eventually make its way into Windows Subsystem for Android? |
Hi, does "latest version of Win11 22H2" mean latest stable, which is 22H2 or latest insider version, which belongs to 22H2 branch? |
@TurnOffNOD Latest stable, you don't need an Insiders version anymore. |
For those playing at home, you may need to run: wsl --update --pre-release |
For me it did not work initially even though I had the latest version. |
For everyone having issues, in the meantime it's without the experimental prefix
|
This one worked for me: https://www.marvinweber.net/posts/wsl2-ipv6-support/ It's in bridge mode though. But I already run a VM in Hyper V in bridge mode, so as long as it doesn't break other stuff I will continue with this. |
I am actually on
Setting
doesn't help either. |
Mine now works on windows 11
|
Worked for me too.
|
Have done that on 2 systems. One worked, one not. Both running WSL 2.2.4.0. I tried also the I can ping the own WSL IPv6 but not a IPv6 outside of WSL...
|
Writing to confirm that I have had success creating a
|
Your Windows build number: 10.0.18980.1
What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
I tried to access a ipv6 only website and failed. My commands run in Debian Buster with WSL 2:
The curl command should succeed. Here is the result if I run it in Windows (outside of WSL):
FYI, here is my network interface info:
The text was updated successfully, but these errors were encountered: