WSL 问题记录

 131 字 [子系统]

Debian系列等安装

Nothing: Just in the Microsoft Store Installed

没什么好说的,凡是微软应用商店有的直接下载安装即可

1wsl --list --online

端口转发配置

1# Clash
2# 172.17.40.17 为 WSL 的地址,可以使用 `ifconfig` 查看 eth0 网卡地址
3netsh interface portproxy add v4tov4 listenport=7891 listenaddress=0.0.0.0 connectport=7891 connectaddress=172.17.40.17
4
5netsh interface portproxy add v4tov4 listenport=7890 listenaddress=0.0.0.0 connectport=7890 connectaddress=172.17.40.17
6
7netsh interface portproxy add v4tov4 listenport=9090 listenaddress=0.0.0.0 connectport=9090 connectaddress=172.17.40.17
1# 展示所有端口转发
2netsh interface portproxy show all
3
4# 清除所有端口转发
5netsh interface portproxy reset