Skip to content
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

WSL2 mirrored networking unexpectedly killing connections #11308

Open
1 of 2 tasks
peterbro1 opened this issue Mar 14, 2024 · 3 comments
Open
1 of 2 tasks

WSL2 mirrored networking unexpectedly killing connections #11308

peterbro1 opened this issue Mar 14, 2024 · 3 comments
Labels

Comments

@peterbro1
Copy link

Windows Version

Microsoft Windows [Version 10.0.22635.3350]

WSL Version

2.1.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.146.1-2

Distro Version

Kali 2024.1 rolling

Other Software

No response

Repro Steps

  1. Install kali-linux distro from microsoft store
  2. Enable mirrored networking mode
  3. On the kali machine, execute nc -nvlp 5050
  4. In a separate terminal on the kali machine, execute nc 127.0.0.1 5050

Expected Behavior

Netcat is designed to create a TCP connection. When the commands are issued, the user on the second command is able to type into STDIN and that information gets sent to the recipient side

Actual Behavior

The connection is received on the recipient side, then immediately closed.

Diagnostic Logs

Client strace: https://gist.github.com/peterbro1/5de18e43f3260279adae9ee2486643ba
Server strace: https://gist.github.com/peterbro1/da519b52194614860be4a25f3190a7e1
WslNetworkingLogs-2024-03-14_19-21-31.zip
https://superuser.com/questions/1835183/ncat-inside-wsl2-not-behaving-correctly

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ghost ghost added the network label Mar 19, 2024
@chanpreetdhanjal
Copy link

Please follow the networking diagnostic script. https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

It should create a folder like [WslNetworkingLogs-date_ver.zip]

@peterbro1
Copy link
Author

Hey @chanpreetdhanjal. The networking logs are attached in the initial issue comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants