-
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
Unable to connect to internet #11512
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 scipt will output the path of the log file once done. 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:
|
Here are the logs.... |
Diagnostic information
|
+1 also getting this issue |
Shutted down the wsl using |
I'm also having this issue with WSL2 on Microsoft Windows [Version 10.0.19045.4291]. It started sometime in the last 5-10 days... |
I have this issue. If I allow Hyper-V firewall outbound connections it works, but I don't know if this is a safe practice. |
Recent changes in the latest version of Windows 11 have made it so that the Hyper-V Network Firewall blocks inbound and outbound traffic by default. The ONLY default rules that exist are for ICMP (v4 and v6) In order to get connectivity working again, it is currently necessary to use Powershell on the host machine to create new Hyper-V Firewall rules allowing the necessary traffic. For example, if we want 'nslookup' to work from an Ubuntu WSL2 install, we need to create a rule to allow outbound traffic on port 53 through the Hyper-V Firewall
And to allow standard web traffic, we need to allow ports 80 and 443 (TCP only)
You can read about how to manage Hyper-V firewall rules here: https://learn.microsoft.com/en-us/windows/security/operating-system-security/network-security/windows-firewall/hyper-v-firewall ............................................ With that out of the way, time for my personal opinion: This is awful. Truly awful. There is no GUI option for managing HyperV firewall rules. There was no warning that this change was coming. There is no indication to the average WSL user that this is the cause of the problem. And there is no reasonable default configuration for the HyperV firewall. I am not looking forward to managing these rules going forward. What a nightmare. |
Hi. Can you please collect networking logs by following the instructions below? |
Would you like the logs with or without the Hyper-V firewall rules I described above? |
@neatchee I see you encounter a "Temporary failure in name resolution" - can you please try enabling dnsTunneling and see if that resolves the problem? If you still encounter the problem after doing this, please collect networking logs thanks |
Windows Version
Microsoft Windows [Version 10.0.22631.3447]
WSL Version
2
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146
Distro Version
Ubuntu 22.4.3 LTS
Other Software
No response
Repro Steps
Tried using the following commands:
And also I tried updating the
/etc/resolv.conf
as follows:GNU nano 6.2 /etc/resolv.conf
And updated the
/etc/wsl.conf
as follows:Expected Behavior
I expected it to connect to the internet, so that I can download multiple applications from the internet.
Actual Behavior
[Not updating and not even pinging to the google.]
ping: google.com: Temporary failure in name resolution
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: