Review your favorite Linux distribution.
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, 09: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, 10:47 AM   #2
Registered: Feb 2005
Distribution: Arch, CentOS, Fedora, macOS, SLES, Ubuntu
Posts: 327

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, 11:16 AM   #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, 06:31 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,378

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
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 12:32 AM
NAT and Port Forwarding aq_mishu Linux - Networking 2 09-16-2005 07:58 AM
Port Forwarding without NAT on an old Kernel linuxpyro Linux - Networking 0 06-02-2004 12:31 PM
iptables + NAT + Port forwarding problem SirGertrude Linux - Networking 9 05-14-2004 04:02 AM
NAT Port forwarding problems! nidputerguy Linux - Networking 4 01-31-2004 10:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:24 AM.

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
Open Source Consulting | Domain Registration