IPtables and Remote Desktop with Proxy
Posted
by
Sebastian
on Server Fault
See other posts from Server Fault
or by Sebastian
Published on 2012-09-20T13:59:21Z
Indexed on
2012/09/20
21:40 UTC
Read the original article
Hit count: 174
So I setup a windows 2008 web server R2 on VirtualBox.
Currently using Bridged Network.
I can remote desktop to the machine hosting the VM (10.0.0.183) but cannot remote desktop to the VM itself (10.0.0.195).
The remote port on the VM set to 5003. VM setup to accept remote connections (windows side).
We also use a proxy for our internet, and I added these rules under NAT. (centOS 5) on our proxy box.
-A INPUT -p tcp --dport 3389 -j ACCEPT
-A REROUTING -i ppp0 -p tcp --dport 3389 -j REDIRECT --to-port 5003
-A FORWARD -d 10.0.0.195 --dport 5003 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
I've been trying for hours and hours and just cannot get it to work.
I also used freedns so that we can use a domain name to connect too this VM over the internet. (the DNS points to our external IP address).
If we don't get this right we will have to purchase a PPoE from an ISP to connect to this VM remotely, but I know that there is an alternative route if I can just get this port forwarding right!
© Server Fault or respective owner