windows 自带端口转发功能 |
命令:netsh interface portproxy add v4tov4 listenaddress=160.19.51.180 listenport=22 connectaddress=160.19.51.187 connectport=2200 查看转发:netsh interface portproxy show v4tov4 如果想取消上面配置的端口转发,可以用如下语句:netsh interface portproxy delete v4tov4 listenaddress=160.19.51.180 listenport=22 |