Development environment - realize port forwarding under windows

What is port forwarding:

Here is an example, our task is to forward an RDP service (Remote Desktop Protocol) to any port, such as 3340 (the port can actually be changed in the service settings, but here we use the RDP protocol to implement a simpler port Forwarding example). Well, we need to forward the incoming traffic to port 3340 (the standard port is 3389)

 

Execute as an administrator:

netsh interface portproxy add v4tov4 listenport=3340 listenaddress=10.1.1.110 connectport=3389 connectaddress=10.1.1.110

 

To give another example, hope to forward the data received by network card A (telnet service, default port 23) to another network card B.

Execute as an administrator:

netsh interface portproxy add v4tov4 listenport=23 listenaddress=0.0.0.0 connectport=23 connectaddress=2.1.30.100

 

After setting, check the current status:

netsh interface portproxy show all

 

Guess you like

Origin blog.csdn.net/Ivan804638781/article/details/97103656