-
Notifications
You must be signed in to change notification settings - Fork 830
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
After Windows Update 24H2 WSL cannot access the internet #12353
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease 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! Open similar issues:
Closed similar issues:
|
Diagnostic logs - WslNetworkingLogs-2024-12-07_07-22-13.zip |
Diagnostic information
|
Using WSL Settings and changing network mode from NAT to VirtioProxy enables http from within WSL (e.g. |
@CatalinFetoiu looks like this user is using NAT and doesn't have connectivity. What would be the next steps to root cause? |
thanks for sending the logs |
sorry no, with mirrored all network commands seem to be broken.
|
Upgrading to pre-release 2.4.8 did not change behaviour in any noticeable way. WSL version: 2.4.8.0 VirtioProxy:
Mirrored:
|
Same problem here after 24H2 update. Using "virtioproxy" enables connectivity for https at least, but ping is not working. |
Couple additional details:
|
Unfortunately this didn't change anything for my machine, but thanks for giving me something to try! |
I stepped through https://learn.microsoft.com/en-us/windows/security/operating-system-security/network-security/windows-firewall/hyper-v-firewall. Two possibly interesting things I observed:
Firewall is false in wslconfig:
but still enabled:
(meta: the enable firewall cmdlet shown in the doc page has a typo for |
Same issue here |
Same issue here, already tried resetting all network stuff (perhaps this comment on a past issue would be helpful if it still worked). |
I tried resetting winsock as per that comment, rebooting twice as recommended by output of first two commands, but nothing changed. Admin prompt:
I also tried shutting off the firewall using cmd line per a further comment in that thread (thinking perhaps using the Settings gui as I tried ealier does something differently):
no change, network still broken. |
Windows Version
Microsoft Windows [Version 10.0.26100.2314]
WSL Version
2.3.26.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.167.4-1
Distro Version
any / all
Other Software
No response
Repro Steps
All of the below started after installing Windows Update 24H2. I had no WSL network issues in the days prior.
Open any WSL distribution (example below with Alpine)
Try to ping an external IP:
> wsl ping -c 3 microsoft.com PING microsoft.com (20.112.250.133): 56 data bytes --- microsoft.com ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss
Observe 100% packet loss
Verify that DNS resolution works:
> wsl nslookup microsoft.com Server: 10.255.255.254 Address: 10.255.255.254:53 Non-authoritative answer: Name: microsoft.com Address: 20.236.44.162 Name: microsoft.com Address: 20.231.239.246 Name: microsoft.com Address: 20.76.201.171 Name: microsoft.com Address: 20.70.246.20 Name: microsoft.com Address: 20.112.250.133 Non-authoritative answer: Name: microsoft.com Address: 2603:1030:c02:8::14 Name: microsoft.com Address: 2603:1020:201:10::10f Name: microsoft.com Address: 2603:1030:20e:3::23c Name: microsoft.com Address: 2603:1030:b:3::152 Name: microsoft.com Address: 2603:1010:3:3::5b
Verify host Windows can ping the same addresses successfully
Test http
WSL fails:
Windows host succeeds:
Remedies Attempted
1. WSL Network Reset
wsl --shutdown
2. Firewall Configuration
3. Network Configuration
4. Basic Network Verification
Current Situation
Expected Behavior
connection to and response from any normally accessible internet host.
Actual Behavior
see repo steps
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: