Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-17-2006, 03:19 PM   #1
Registered: Jan 2006
Posts: 70

Rep: Reputation: 15
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.
Old 11-18-2006, 05:21 AM   #2
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
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).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
iptables and port forwarding cs.cracker Linux - Networking 5 09-02-2006 01:03 PM
iptables port forwarding abdul_zu Linux - General 1 02-05-2006 03:39 AM
iptables don't do port forwarding gomen Linux - Networking 4 12-26-2005 03:05 PM
IPTables port forwarding.. NeoTech Linux - Networking 2 01-03-2005 11:27 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration