WSL端口映射到win
#在powershell中执行,获取虚拟机内ubuntu的ip地址
wsl -- ifconfig eth0
#将ip地址的对应的端口映射到宿主win10对应的端口
netsh interface portproxy add v4tov4 listenport=3128 listenaddress=0.0.0.0 connectport=3128 connectaddress=172.20.xx.xx
#检测是否设置成功
netsh interface portproxy show all