Created
June 7, 2025 13:23
-
-
Save sjmf/449fb02b5a00e89d8efc000f26e42376 to your computer and use it in GitHub Desktop.
Allow inbound traffic to WSL2 VM running in mirrored mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [wsl2] | |
| networkingMode=mirrored | |
| [experimental] | |
| hostAddressLoopback=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Allow inbound traffic to WSL2 VM running in mirrored mode | |
| # https://learn.microsoft.com/en-us/windows/wsl/networking#mirrored-mode-networking | |
| # | |
| Get-NetFirewallHyperVVMCreator | |
| Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow | |
| Get-NetFirewallHyperVVMSetting -PolicyStore ActiveStore -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment