-   Linux - Networking (
-   -   Forwarding a port using iptables (

xtremeclones 11-17-2006 03:19 PM

Forwarding a port using iptables
Hey guys, hope all is well.

I have a linux box which uses iptables as a firewall and does dhcp for all my network, on that network i have a 2k3 server with an internal ipaddress of

I want to configure iptables so that when i do remote desktop to that linux box it will forward me to the .249 system. so i can do remote desktop from home. Can you plz give me what to put on the iptables?

thanks for the help.

amitsharma_26 11-18-2006 05:21 AM


iptables -t nat -A PREROUTING -p tcp --dport 3389 -j DNAT --to
& make your windows box to have this linux box as its gateway.

Apart from that you got to have other firewall rules as well(not for the purpose mentioned above). Please revert back with your iptables script (if you have any).

All times are GMT -5. The time now is 08:19 PM.