支持xp 2000 2003 win7 2008ip
1. 關閉防火牆file
netsh advfirewall set allprofiles state off防火牆
(win2003&xp是用netsh firewall set opmode DISABLE 關閉)端口
恢復防火牆netsh advfirewall set allprofiles state onco
2. 安裝IPV6 netsh interface ipv6 install(xp下IPV6必須安裝,不然端口轉發不可用!)let
3. 添加一個IPV4到IPV4的端口映射interface
netsh interface portproxy add v4tov4 listenaddress=192.168.193.1 listenport=22 connectaddress=xxx.xxx.xxx.xxx connectport=22 指定監聽ip和端口connect
4. 刪除 netsh interface portproxy delete v4tov4 listenaddress=192.168.193.1 listenport=22delete
5. 查看存在的轉發 netsh interface portproxy show all