from:
http://wenku.baidu.com/link?url=hdlyWUK1GgGhnqu9S7nSJm-WTv1rlwEj78fRDyeXczpqPGIDAQAWOeV6dXGrqNQdve2wQogTBjIiQuIYiCLuUAf6EgMtQoHrI54dwly58Zi skillfully use the netsh
command to achieve port forwarding (port mapping) After adding in batches, and view the mapping: netsh interface portproxy add v4tov4 listenport=701 connectaddress=192.168.157.130 connectport=701 netsh interface portproxy add v4tov4 listenport=2463 connectaddress=192.168.157.130 connectport=2468 netsh interface portproxy add v4tov4 listenport=1993 connectaddress= 192.168.157.130 connectport=1982 netsh interface portproxy add v4tov4 listenport=50003 connectaddress=192.168.157.130 connectport=55555 netsh interface portproxy show all cmd.exe cmd command execution
View all port forwarding proxy parameters:
netsh interface portproxy show all
Example 1: single ip forwarding Forward the data of
the local 8080 port to the 8080 port on 192.168.56.101, or it can be forwarded to other external network ip to
add: netsh interface portproxy add v4tov4 listenport=8080 connectaddress=192.168.56.101 connectport=8080
Delete: netsh interface portproxy delete v4tov4 listenport=8080
Example 2: Double ip and multiple ip can use the following to
add an IPV4 to IPV4 port mapping, that is, specify an ip
to add: netsh interface portproxy add v4tov4 listenaddress=192.168.193.1 listenport=701 connectaddress=192.168.192.128 connectport=701 The
specified listening ip and port can be deleted
Delete : netsh interface portproxy delete v4tov4 listenaddress=192.168.193.1 listenport=701
-------- --------- Troubleshooting:
2003 xp system needs to install IPV6 (otherwise port forwarding is not available!) 2008 2012 system directly execute the above command
Installation command: netsh interface ipv6 install
Important Open IPv6 service: After installation, also open
Management Tools-Services-IPv6 Helper Service to start, otherwise, after mapping the port, it still cannot connect to
the win7 system . Used to disable the system firewall, the opposite command "netsh firewall set opmode enable" enables the firewall.
Skillfully use the netsh command to achieve port forwarding (port mapping) without asking for help
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326436253&siteId=291194637
Ranking