ENS Firewall blocks some network traffic from WSL2 or Docker instances.
From the WSL2 console, when you execute
ping google.com, the DNS resolution fails, which causes the command to fail.
Output results:
ping: google.com: Temporary failure in name resolution
The ENS
FirewallEventMonitor.log shows blocked network traffic entries similar to the following (application, IP addresses, and port numbers can vary).
Time: 05/27/2021 12:32:52
Event: Traffic
IP Address: 172.19.111.65
Description: HOST PROCESS FOR WINDOWS SERVICES
Path: C:\Windows\System32\svchost.exe
Message: Blocked Incoming UDP - Source 172.19.111.65 : (39171) Destination 172.19.96.1 : dns (53)
Matched Rule: Block all traffic