Open aerophagiano opened 1 year ago
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.
echo "Restarting WSL Service"
Restart-Service LxssManager
echo "Restarting Host Network Service"
Stop-Service -name "hns"
Start-Service -name "hns"
echo "Restarting Hyper-V adapters"
Get-NetAdapter -IncludeHidden | Where-Object `
{$_.InterfaceDescription.StartsWith('Hyper-V Virtual Switch Extension Adapter')} `
| Disable-NetAdapter -Confirm:$False
Get-NetAdapter -IncludeHidden | Where-Object `
{$_.InterfaceDescription.StartsWith('Hyper-V Virtual Switch Extension Adapter')} `
| Enable-NetAdapter -Confirm:$False
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: collect-wsl-logs.ps1
For the Linux configuration: networking.sh
Then please run WPR with this config file and repro (e.g. try to run curl against a URL). wsl_networking.wprp
WslLogs-2023-08-30_09-37-39.zip hi, here the are the wsl logs networking.bat.output.txt and the networking.bat output
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. https://github.com/microsoft/WSL/issues/4150#issuecomment-504209723
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