1. Using the Netsh implementation of Windows
Advantages:
(1) Simple deployment. Windows comes with support for IPV4 and IPV6
(2) Do not restart the machine, but also a long memory. The command takes effect immediately, and the configuration still exists after rebooting the system.
Disadvantages:
(1) UDP not supported
(2) xp/2003 need to install the ipv6,win7 above the system to bring their own.
Execute command:
(1) Installation environment support (can not be performed if IPV6 is already installed)
netsh interface ipv6 install
(2) View the configured Port mappings checklist
netsh interface portproxy show v4tov4
(3) Adding port mappings
netsh interface portproxy add v4tov4 listenaddress=10.139.1.30 listenport=13016 connectaddress=172.16.13.16 Connectport=22
(4) View the configured port forwarding
netsh interface portproxy show v4tov4
(5) Delete port mappings
netsh interface portproxy delete v4tov4 listenaddress=10.139.1.30 listenport=13016
Windows Configuration Port forwarding