-
Notifications
You must be signed in to change notification settings - Fork 827
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
config networkingMode=mirrored
doesn't apply to wsl2
#11228
Comments
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:
|
the |
Thank you for comment. but the method dosen't reslove the problem directly. Here is the final .wslconfig # Settings apply across all Linux distros running on WSL 2
[wsl2]
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=4GB
# Sets the VM to use two virtual processors
processors=2
# Network settings
# [experimental]
networkingMode=mirrored
# dnsTunneling=true
# firewall=true
# autoProxy=true i reboot after change the .wslconfig, seems like it doesn't apply to wsl2. |
This works for me too. |
Windows Version
Microsoft Windows [Version 10.0.22621.3155]
WSL Version
2.0.14.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
I got only 1 distro installed in my PC, here's the steps:
wsl --shutdown
in cmd.exeNew-NetFirewallHyperVRule -Name MyWebServer -DisplayName “My Web Server” -Direction Inbound -VMCreatorId “{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}” -Protocol TCP -LocalPorts 80
in cmd.exe, i copy this command from Docwsl
in cmd.exeHere is the .wslconfig file:
Expected Behavior
successfully set the wsl's
networkingMode
tomirrored
and hopefully wsl can access the network using VPN.Actual Behavior
I got a message from Ubuntu:
Traslation:
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: