News for hackers. Stuff that matters.
Re:Linux under WSL2 can be leaking by qz2 on Wednesday September 30, 2020 @02:16PM (#24641779)
It’s a shit show. Can’t trace packets either via wireshark on the host and tcpdump doesn’t work on the guest. I’ve gone back to virtualbox and eviscerated WSL. Another total waste of my life.
Re:Linux under WSL2 can be leaking by muricula on Wednesday September 30, 2020 @03:49PM (#24642972)
Were you using WSL 1 or 2? WSL 1 networking didn't work the way I expected, but WSL 2 seems to support proper Linux networking since it's just a Linux VM under the hood.
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.
Re:Linux under WSL2 can be leaking by debian_lover on Wednesday September 30, 2020 @02:23PM (#24641862)
Better yet just install linux and if you need windows, use it in a locked down VM