-
Notifications
You must be signed in to change notification settings - Fork 821
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
WSL2 no internet/net connection #10421
Comments
I have to run these commands every time I leave the computer for a while. This started happening since a few weeks after some windows update. It was fine before for years.
from #5821 |
looks like a duplicate of #10349 |
@keith-horton, what logs do you want collected for this? |
Reopening due to overzealous bot. |
Hi there. For the host configuration: For the Linux configuration: Then please run WPR with this config file and repro (e.g. try to run curl against a URL). |
WslLogs-2023-08-30_09-37-39.zip |
Something is definitely odd. DNS apparently works fine (the Linux DNS servers were updated to not use the NAT DNS proxy, which is just fine) - which means UDP packets are being routed out of the container to the Internet and back again. That's great. You state that it starts working then eventually stops working. It works after force resetting a lot of network configuration options, at least for a while. I see there are other virtual network adapters that are connected. I'm guessing these are for the security software you have installed. I don't have visibility into how they are interacting with the NAT'd packets that are injected. The symptoms you describe strongly suggest this 3rd party software is dropping some of the traffic being sent. We don't see where the packets are being lost (in our layers). Is there a way to configure your security software to not filter traffic as a test? |
it is the same as I faced? |
Here is the solution. |
Windows Version
Microsoft Windows [Versione 10.0.19045.3324]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
Ubuntu 22.04
Other Software
Trellix Endpoint Security 10.7
Repro Steps
Connections time-out in wsl2/ubuntu.
For example open WSL2/Ubuntu and run
curl -m 5 -v https://microsoft.com
Failed to connect to microsoft.com port 443 after 4859 ms: Connection timed out
if I run these commands
after the restart connections start working again but for a brief time span, then they return to time-out.
Expected Behavior
(after running the commands above and restarting)
Actual Behavior
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: