-
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
WSL guest does not receive response packets except from the Windows host #11091
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
Hi. Can you please collect networking logs by following the instructions below? |
@chanpreetdhanjal I think I already did... Is there something wrong with the WslNetworkingLogs-2024-01-29_04-08-12.zip file I provided? |
I believe I share this issue. The only difference is that the problem exists only on certain types of wifi networks. For example, everything works on a mobile hotspot. I do not know enough about WiFi networks to tell if this is helpful. Those that have worked have Wi-Fi 5 protocols and those that don't have a Wi-Fi 6 protocol. I am not sure if that is coincidental. Windows VersionMicrosoft Windows [Version 10.0.22631.3737] WSL Version2.2.4.0 (WSL 2) Kernel Version5.15.153.1-2 Distro VersionUbuntu 20.04.6 LTS Diagnostic Logs |
This issue could be related |
Windows Version
Microsoft Windows [Version 10.0.22621.3007]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
In a WSL guest on my computer, attempt to establish any network connection to the public Internet, or to any host other than the machine running WSL. For the logged session, I tried to reach
1.1.1.1
withping
, plusdig
in case the issue was specific to ICMP.Unfortunately I don't have any idea how to reproduce this on a different computer / fresh Windows install. My laptop, which is running the same version of Windows and is connected to the same network, works fine.
Expected Behavior
WSL VMs should be able to connect to networks outside the host machine.
Actual Behavior
No response packets are received by the WSL VM.
In the network traces attached in
pcaps.zip
below, the expected response packets are visible from Windows when monitoring the vEthernet interface, but are not visible from inside the WSL VM.I can ping the host at
172.24.16.1
.Diagnostic Logs
WslNetworkingLogs-2024-01-29_04-08-12.zip: captured with the
collect-networking-logs.ps1
script linked inCONTRIBUTING.md
pcaps.zip:
windows.pcapng
captured from Windows with Wireshark on the "vEthernet (WSL (Hyper-V firewall))" interface, andubuntu.pcapng
captured from within the WSL VM withtcpdump -i eth0 -w ubuntu.pcapng -s0
I checked all of the networking entries in the WSL Troubleshooting Guide. All of them appeared to already be configured correctly or were about DNS issues. Since I'm testing with an IP address, this isn't a DNS issue.
I am not running any sort of VPN or corporate firewall. My computer is attached to a normal home network via wired Ethernet.
I've tried uninstalling WSL and reinstalling it:
wsl --unregister ubuntu
wsl --install ubuntu
I've looked at
ip address show
andip route show
in Ubuntu and everything appears correct.I checked both
iptables -L -vn
andnft list tables
in Ubuntu; neither iptables nor nftables seems to be configured to block anything.I don't know enough about how the routing and firewalls between Windows and the WSL guest work to debug this any further on my own.
The text was updated successfully, but these errors were encountered: