Last active
July 21, 2023 07:19
-
-
Save canbingzt/0d9b1aabc7ba43e6c1a4d033520a9c8c to your computer and use it in GitHub Desktop.
WSL2中允许访问宿主机网络
This file contains 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
Remove-NetFirewallRule -DisplayName "WSL" | |
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment