Forwarding rdp traffic using netsh

I am trying to configure port forwarding on a windows machine. I have the following setup:

  • Machine P with an IP address of 192.168.0.120 accessible from my network.
  • Machine D with an IP address of 192.168.120.6, accessible only from Computer D.

I need to access machine D. Now I use rdp for P , and then run rdp to D. It is not comfortable. What I wanted to do was forward rdp from D to my local machine via P.

netsh.exe interface portproxy add v4tov4 listenport=33891 connectport=3389 connectaddress=192.168.120.6 

But when I try to connect using rdp to 192.168.0.120{3891, it fails. Telnet also cannot open port 33891. Therefore, port forwarding does not work.

I would be grateful for any suggestions, thanks!

+4
source share
1 answer

Please use this Windows Port Forwarding tool

+1
source

Source: https://habr.com/ru/post/1484458/


All Articles