WSL 问题记录

预估阅读时间:1 分钟

Debian系列等安装

Nothing: Just in the Microsoft Store Installed

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

wsl --list --online

端口转发配置

# Clash
# 172.17.40.17 为 WSL 的地址,可以使用 `ifconfig` 查看 eth0 网卡地址
netsh interface portproxy add v4tov4 listenport=7891 listenaddress=0.0.0.0 connectport=7891 connectaddress=172.17.40.17

netsh interface portproxy add v4tov4 listenport=7890 listenaddress=0.0.0.0 connectport=7890 connectaddress=172.17.40.17

netsh interface portproxy add v4tov4 listenport=9090 listenaddress=0.0.0.0 connectport=9090 connectaddress=172.17.40.17
# 展示所有端口转发
netsh interface portproxy show all

# 清除所有端口转发
netsh interface portproxy reset
Tags: