配置windows端口转发

查看现有转发情况

1
netsh interface portproxy show  all | v4tov4 

增加端口转发

1
netsh interface portproxy add v4tov4 listenaddress="172.16.0.21" listenport=22 connectaddress="192.168.159.129"  connectport=22
  • listenaddress: 转发机器本地的地址
  • connectaddress: 目的机器的地址