-
Notifications
You must be signed in to change notification settings - Fork 823
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
In Mirrored mode incoming packets from remote device on LAN are not received in WSL2 #10535
Comments
@Rybasum use |
Yes, this worked! Many thanks!
I hope this is safe enough, since the LAN in question has no connection to external world (it is for embedded Linux device development). Thank you (and Microsoft) very much - for the first time I have a full-featured embedded Linux development system in WSL2 - including NFS server and USB-to-serial port gadget enabled thanks to usbip-win. I can develop and debug a Linux kernel entirely from VS Code, awesome... Still, I wonder if the issue I reported still qualifies as a bug. The WSL2 v2.0.0 blog (https://devblogs.microsoft.com/commandline/windows-subsystem-for-linux-september-2023-update) says that with |
It seems like a bug actually in WSL 2.0. My WSL version is 2.0.4.0. I set |
@yqs112358 On another computer that uses Windows Firewall (not Norton) I observed that the firewall settings were not forwarded into Ubuntu (wsl2) either. Regardless what firewall I used, I had to set rules both in Windows and in Hyper-V. |
This REALLY needs to go prominently into the WSL docs. I've spent hours tonight trying to figure this out until stumbling into this github issue. It's not safe at all to assume that a consumer of WSL is intimately familiar with how to modify HyperV to manage this. The info bubble in the existing docs is wildly insufficient. |
I am trying this mode (mirrored), my local ip is 192.168.1.103 and I am connected through an OpenVPN to a remote network so my tun0 ip is 10.10.16.25. I tried establishing a hyperV firewall rules to allow traffic through this port, tried disabling both Windows and HyperV firewalls, tried connecting to VPN from inside WSL2 instance. Nothing seems to get me this call back inside WSL2... |
Windows Version
Microsoft Windows [Version 10.0.22631.2338]
WSL Version
2.0.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1-1
Distro Version
Ubuntu 22.04
Other Software
OpenBSD netcat (Debian patchlevel 1.218-4ubuntu1)
Mac Pro with the latest MacOS
Repro Steps
System description:
Both computers can ping each other. Now start a server in WSL2 (Ubuntu):
$ nc -l 4333
and try connecting and sending data from the Mac:
$ nc 192.168.1.33 4333
Typing anything at any of the two terminals does not appear on the other computer. No connection.
Now, in the opposite direction (listening on the Mac and connecting from Ubuntu) works correctly - text typed on any terminal does appear on the other one.
Expected Behavior
When WSL2 runs a netcat server, packets from a remote computer on the same LAN should be received by the server on WSL2.
Actual Behavior
Packets sent from the remote computer on the same LAN into a mirrored NIC are not received in WSL2.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: