Get the App
SLTechnology News&Howtos  ›  Servers  › 

Windows configure port forwarding

Shulou Source: shulou.com Published: 2022-06-02 03:56:49 10月04日 Update

1. Windows netsh implementation

Advantages:

1) Deployment is simple. Windows comes with IPv4 and IPv6 support

(2) No need to restart the machine, but also long memory. Command takes effect immediately, configuration still exists after system restart.

Disadvantages:

(1) UDP is not supported

(2) XP/2003 requires IPV6 to be installed first, Win7 or above comes with the system.

Execute orders:

(1) Installation environment support (if IPV6 is already installed, it can be omitted)

netsh interface ipv6 install

(2) View the configured "port mapping" list

netsh interface portproxy show v4tov4

(3) Add port mapping

netsh interface portproxy add v4tov4 listenaddress=10.139.1.30 listenport=13016 connectaddress=172.16.13.16 connectport=22

(4) View configured port forwarding

netsh interface portproxy show v4tov4

(5) Delete port mapping

netsh interface portproxy delete v4tov4 listenaddress=10.139.1.30 listenport=13016

Tags: Port configuration support command system no advantages machine list environment disadvantages memory Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi vpn Linux Shulou Information MySQL