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

WSL 2 - Network. #12632

Open
1 of 2 tasks
chiddekel opened this issue Feb 25, 2025 · 4 comments
Open
1 of 2 tasks

WSL 2 - Network. #12632

chiddekel opened this issue Feb 25, 2025 · 4 comments

Comments

@chiddekel
Copy link

Windows Version

PRO 11 WINDOWS

WSL Version

4.11

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

ubuntu 22.04

Other Software

Wsl 2 - Network stable work only wsl-vpnkit - (NAT) which makes some "magick" because it uses some .*exe executable files.
How do we recreate the script more openly? I mean how to make a configuration that bypasses any firewall like this script does? An additional plus is that we can use localhost as is - from Ubuntu on Windows 11 to serve developed web apps. All with NAT mode?

Repro Steps

NAT set on WSL2 - how to expose all NETWORK setup - Ubuntu 22.04 <---> Windows 11 - full-duplex.

Expected Behavior

JUST work after installation.

Actual Behavior

Don't work out of the box after installation. ( Microsoft )

Diagnostic Logs

No response

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

@chiddekel
Copy link
Author

No logs - company policy.

@OneBlue
Copy link
Collaborator

OneBlue commented Feb 26, 2025

@chiddekel: Based on your use case it sounds mirrored networking might solve your issue. Can you try it and let us know if it works for you ?

@chiddekel
Copy link
Author

On my windows 11 corporation setup work only NAT + VPNkit that make tap device.

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

No branches or pull requests

2 participants