wsl2 设置端口映射

wsl -- ifconfig eth0

新增转发规则
netsh interface portproxy add v4tov4 listenport=6379 listenaddress=0.0.0.0 connectport=6379 connectaddress=10.203.68.225
查看所有转发规则
netsh interface portproxy show all
删除转发规则
netsh interface portproxy delete v4tov4 listenaddress=192.168.88.110 listenport=9988
重置转发规则
netsh interface portproxy reset

posted on 2022-03-13 21:04  帅胡  阅读(1659)  评论(0编辑  收藏  举报

导航