-
Notifications
You must be signed in to change notification settings - Fork 836
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
HNS Container Networking firewall rules for DNS queries are broken after rebooting #8236
Comments
Thanks, folks, for reporting this to us. We have addressed it in this next release of WSL: https://github.com/microsoft/WSL/releases/tag/0.70.5. WSL will ensure the Firewall rules which it requires for its NAT configuration are present on the host system. Thanks! |
Finally! This issue has persisted for far too long, and effectively cripples WSL2 usage on many platforms. I trust the fix is dynamic enough to react to NIC changes in a live system? |
Yep. WSL worked around the entire issue with a single Firewall rule which was crafted specifically for this DNS NAT flow. It's no longer dependent on individual interfaces. |
@keith-horton Any chance of linking to the changes/commits? I pulled down the 0.70.5 release, and I'm not seeing a change in behavior. |
I've since installed builds 25231 and 25236, and did a couple other reboots. So far so good, the issue seems to be gone on my machine! |
Version
Microsoft Windows [Version 10.0.22581.200]
WSL Version
Kernel Version
5.10.102.1
Distro Version
Ubuntu 21.04
Other Software
No response
Repro Steps
The initial system state has DNS queries failing, but succeeding when you disable Windows Defender Firewall or when you add an Allow rule for the vEthernet (WSL) network interface.
As you can see, after rebooting, the firewall rule is no longer applied to the vEthernet (WSL) network interface. This is (to my understanding) because the network interface is recreated on every boot, and is also observed in various comments in #4285, #5256, #4139 when workarounds with firewall rules are suggested.
These steps can be repeated to reliably fix and reproduce the issue each time.
Expected Behavior
The firewall rules are updated after rebooting so they refer to the newly created vEthernet (WSL) network interface, and DNS queries continue working.
Actual Behavior
The firewall rules refer to a network interface that no longer exists, and DNS queries stop working.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: