News for hackers. Stuff that matters.
Re:Linux under WSL2 can be leaking by GekkePrutser on Wednesday September 30, 2020 @02:28PM (#24641952)
Conceptually this makes sense. It doesn't really run Under windows, it runs beside windows. Unlike WSL1 which was basically part of Windows. It's strange tcpdump doesn't run though as WSL2 is running a real kernel.

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.

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

Re:Linux under WSL2 can be leaking by qz2 on Wednesday September 30, 2020 @02:53PM (#24642273)
Try dumping UDP packets from the host to the WSL machine...
Re:Linux under WSL2 can be leaking by tw04 on Wednesday September 30, 2020 @03:12PM (#24642516)
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.
Re:Linux under WSL2 can be leaking by qz2 on Wednesday September 30, 2020 @03:42PM (#24642888)
I’m taking about traffic sent to the guest not on the interfaces.
Re:Linux under WSL2 can be leaking by rrdharan on Wednesday September 30, 2020 @07:24PM (#24645299)
It was theoretically more resource efficient but practically worse and harder to optimize. A state of affairs that VMware has exploited for a couple decades.