windows端口转发 wsl

有某些需求,所以有了此命令,估摸着也可以转发虚拟机等等,,,

netsh interface portproxy add v4tov4 listenaddress=192.168.31.54 listenport=6380 connectaddress=172.23.176.238 connectport=6379

netsh interface portproxy add v4tov4 listenaddress=192.168.31.54 listenport=10022 connectaddress=172.23.176.238 connectport=22

显示所有

netsh interface portproxy show all

重置所有

netsh interface portproxy reset

posted @ 2023-12-11 17:51  NorseLZJ  阅读(101)  评论(0编辑  收藏  举报