@
@
@defenox2014-09-06 20:17:31
Windows
@defenox, 2014-09-06 20:17:31

How to forward rdp port in debian 7 to virtual machine?

There is a server with Debian 7, on which the vmware virtual machine is installed, on which Windows is installed in turn. How to forward rdp port directly to Windows? for example, the server IP is 1.2.3.4, the Windows IP under the virtual machine is 192.168.1.2. Is it necessary to forward the port so that, for example, on a third-party machine you connect to 1.2.3.4:3389 and immediately connect via RDP to Windows?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2014-09-06
_

iptables -t nat -A PREROUTING -d 1.2.3.4 -p tcp -m tcp --dport 3389 -j DNAT --to-destination 192.168.1.2:3389
iptables -A FORWARD -p tcp -m tcp -d 192.168.1.2 --dport 3389 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question