Skip to content

Instantly share code, notes, and snippets.

@canbingzt
Last active July 21, 2023 07:19
Show Gist options
  • Save canbingzt/0d9b1aabc7ba43e6c1a4d033520a9c8c to your computer and use it in GitHub Desktop.
Save canbingzt/0d9b1aabc7ba43e6c1a4d033520a9c8c to your computer and use it in GitHub Desktop.
WSL2中允许访问宿主机网络
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