Statement
The Stars last night
Blog:http://yestreenstars.blog.51cto.com/
This article by oneself creation, if need reprint, please indicate source, thank cooperation!
Objective
Implementing port forwarding for Windows platforms
Configuration
First time use to install IPv6 (measured 2008 does not need this step, 2003 required)
netsh interface ipv6 install
Add rule
netsh interface portproxy add v4tov4 listenaddress=ip1 listenport=port1 connectaddress=ip2 connectport=port2
Note:
ListenAddress (optional): If you do not fill in the listener all the network card, if you want to specify which network card to listen for, you need to listen to the network card corresponding IP address, you can listen to the private network IP, you can also monitor the public network IP.
Listenport (required): Fill in the ports you need to listen to.
Connectaddress (required): you need to forward to which IP to fill in which IP.
Connectport (required): you need to forward to which port you want to forward to (not necessarily the same as Listenport).
View Rules
netsh interface portproxy show v4tov4
Delete Rule
netsh interface portproxy delete v4tov4 listenaddress=ip listenport=port
Note: You only need to specify the local listening address and port.
This article is from the "Last Night Stars" blog, please make sure to keep this source http://yestreenstars.blog.51cto.com/1836303/1716404
Implementing port forwarding for Windows platforms