windows2008 and windows2003 port mapping, port forwarding commands

Windows 2003 and Windows 2008 including XP and Windows can implement port forwarding with the command:

 

1. Set the 22 port access request data of 192.168.1.100 to be forwarded to 223 port of 192.168.1.200 The command is as follows:

netsh interface portproxy add v4tov4 listenport=22 listenaddress=192.168.1.100 connectport=223 connectaddress=192.168.1.200

2. The command to cancel port forwarding is as follows:

netsh interface portproxy delete v4tov4 listenport=22 listenaddress=192.168.1.100

 

3. Query the port forwarding list:

netsh interface  portproxy show  v4tov4

 

Fourth, the key is here, 2003 and XP cannot be successfully forwarded if IPV6 is not installed, and it can be disabled after installation. The command is as follows:

netsh interface  ipv6 install

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326814400&siteId=291194637