Re:Linux under WSL2 can be leaking
by muststopmyths on Wednesday September 30, 2020 @02:50PM
(#24642227)
>It's strange tcpdump doesn't run though as WSL2 is running a real kernel.
It works just fine. Just tested it
Try dumping UDP packets from the host to the WSL machine...
The WSL machine is a Hyper-V VM. Why would you expect the default configuration to be able to sniff traffic from the host operating system? That would be a massive security hole.
I’m taking about traffic sent to the guest not on the interfaces.
Personally I really liked the resource efficient WSL1 approach and I lament that they dropped it. But I know for some usecases (e.g. docker) a real Linux kernel was needed.