LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-28-2009, 10:39 AM   #1
LQ Newbie
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
NAT port forwarding

Hey guys I'm really new to Linux and need some help. At the company I work at, we're trying figure out a way to forward ports through NAT. I apologize if what I am asking doesn't make a lot of sense because I really am a newbie haha. Anyway, we're looking for something to type into the command line that says, open this port up, and redirect it to another location. I've heard of Gated and Routed but not sure if this is something that will work or not.

Any help would be much appreciated!

Old 09-28-2009, 11:47 AM   #2
Registered: Feb 2005
Distribution: CentOS, Fedora, OS X, SLES, Ubuntu
Posts: 326

Rep: Reputation: 63
Sure--the linux firewall supports all kinds of options, and can be configured in many different ways. Unfortunately, all the complexity of the options can be a bit daunting at first for newcomers.

Not for the squeamish, but this provides a pretty detailed overview of the linux firewall ("iptables") system:

If you're not used to doing a lot of command-line-based /non-GUI sort of work you might find one of the linux firewall-specific distributions to be more your cup of tea. IPCop and Smoothwall come to mind... there's also *BSD-based m0n0wall and pfSense. One of these would be installed on a freestanding machine--separate from your file/application server.

Some mainstream linux distributions include built-in firewall managements tools, such as Novell SuSE and Redhat. Depending which linux distribution your company is using, you might very well already have an iptables configuration tool present on the system.

Hope this helps.
Old 09-28-2009, 12:16 PM   #3
LQ Newbie
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0

Thank you very much for the quick reply. I really appreciate your help. This should definitely get me started!

Old 09-28-2009, 07:31 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 16,916

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
Please add your Linux distro & version to your profile; this will save us asking for it all the time.

Welcome to LQ


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
Problem with port forwarding (NAT) on FC 5 heberrdacruz Linux - Networking 49 08-20-2006 01:32 AM
NAT and Port Forwarding aq_mishu Linux - Networking 2 09-16-2005 08:58 AM
Port Forwarding without NAT on an old Kernel linuxpyro Linux - Networking 0 06-02-2004 01:31 PM
iptables + NAT + Port forwarding problem SirGertrude Linux - Networking 9 05-14-2004 05:02 AM
NAT Port forwarding problems! nidputerguy Linux - Networking 4 01-31-2004 11:29 AM

All times are GMT -5. The time now is 06:56 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