windows端口转发

netsh interface portproxy add v4tov4 listenaddress=192.168.0.2 listenport=6020 connectaddress=172.22.31.20 connectport=22
netsh interface portproxy show all
pause

 

删除

netsh interface portproxy delete v4tov4 listenaddress=192.168.0.2 listenport=6020
posted @ 2018-08-09 12:07  kuailewangzi1212  阅读(119)  评论(0编辑  收藏  举报