WSL2 Proxy Setup

2022/04/05

找到主机 IP :

grep nameserver /etc/resolv.conf | sed 's/nameserver //'

Windows 防火墙里面打开 WSL 的入站访问:

New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow

修改防火墙设置,允许 clash-win64

参考