WSL 2 Firewall Unlock
时间: 2023-10-18 16:55:28 浏览: 159
回答: "WSL 2 Firewall Unlock"是用于解锁WSL 2防火墙的规则。根据引用,可以使用命令`Remove-NetFireWallRule -DisplayName 'WSL 2 Firewall Unlock'`来删除该规则。而根据引用,可以使用命令`New-NetFireWallRule -DisplayName 'WSL 2 Firewall Unlock' -Direction Outbound -LocalPort $ports_a -Action Allow -Protocol TCP`和`New-NetFireWallRule -DisplayName 'WSL 2 Firewall Unlock' -Direction Inbound -LocalPort $ports_a -Action Allow -Protocol TCP`来添加入站和出站规则。最后,根据引用,如果找到WSL 2的IP地址,则可以将其用于相应的配置。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* *3* [ip.ps1](https://blog.csdn.net/cajole_zero/article/details/115806393)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文