...
Let’s imagine that our task is to make the RDP service to respond on a non-standard port, for example 3340 (the port can be changed in the settings of the service, but we will use RDP to make it easier to demonstrate forwarding). To do this, you need to redirect incoming traffic from TCP port 3340 to another local port – 3389 (standard rdp port).
Start the command prompt as an administrator and perform the following command:
Code Block |
---|
netsh interface portproxy add v4tov4 listenport=3340 listenaddress=10.1.1.110 connectport=3389 connectaddress=10.1.1.110
netsh int portproxy add v4tov4 listenport=3340 listenaddress=10.1.1.110 connectport=3389 connectaddress=10.1.1.110 |
Below example enables your PC to forward all packets from any clients on 15000 to 10.65.8.239
Code Block |
---|
netsh interfaceint portproxy add v4tov4 listenport=15000 listenaddress=0.0.0.0 connectport=15000 connectaddress=10.65.8.239 |
Info |
---|
Once you run "netsh", server will permanently remember the configuration as long as you do not delete it. |
Show all list of portproxy in NetSh
Code Block |
---|
netsh int portproxy show all |
You will be able to see the list like below
Reset all the settings in portproxy in NetSh
Code Block |
---|
netsh int portproxy reset all |