LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-07-2009, 03:23 PM   #1
Hades_Pluto
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Newbie needs help!!! plz.. :-(


Hi guys:

I am new to Linux CentOS, I would like to setup a router that will perform NAT but I have never done it before and I really need some help from you guys!! Greatly appreciated!!


I am running CentOS 5 with GNU Zebra to act as my router, (again, I am new to all these things even to the Zebra

I would like to configure NAT with iptables but I do not know how exactly to do it, please help me!!

I have checked with my network cards with command of "ls /etc/sysconfig/network-scripts/ifcfg-eth* | wc -l" and the output is "2"

but to be honest, I need some help from here. . .

please be as detailed as possible, that will help alot!!


Thank you guys,


Best,

Hades
 
Old 08-07-2009, 03:30 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
A good start would be
http://tldp.org/HOWTO/IP-Masquerade-HOWTO/
 
Old 08-07-2009, 03:46 PM   #3
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
For future reference, it's important to give your threads titles that tell us as much as possible in a few words - this thread could have been titled 'Set up CentOS as a router' or 'Linux router configuration' or even 'I'm having trouble configuring my box as a router'. You get the idea. A thread called 'foobar!' will get a lot more interest from people who are interested in foobar than a thread called 'Help!!!'. In fact, the only reason I came to this thread was to share that bit of good practice with you.

That said, you should take a look at that link, but notably, it's a bit dated. I'll give you two possible pointers - firestarter is a GUI that will configure this up nicely, though I don't really like it due to the interface sucking a little bit and the desire for finer controls than it really allows. That's easy mode. If you want to do this on medium, look into shorewall - it's command-line, but it ships with a set of config files for the network configuration you want and after that you only have to read all of them and open the ports you want. Your call.

Hard mode, by the way, is using iptables directly, for which both of those are frontends. I do not recommend this. iptables makes sense but is rather painful to use, especially compared to the GUI of firestarter or the feature-oriented configs of shorewall.
 
Old 08-07-2009, 11:12 PM   #4
Hades_Pluto
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
thank you

Thank you for your link, I will dig deeper into it!! Thanks!!

Quote:
Originally Posted by repo View Post
 
Old 08-07-2009, 11:13 PM   #5
Hades_Pluto
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the remind

Okay, I will be more specific next time, thank you for reminding me

Quote:
Originally Posted by karamarisan View Post
For future reference, it's important to give your threads titles that tell us as much as possible in a few words - this thread could have been titled 'Set up CentOS as a router' or 'Linux router configuration' or even 'I'm having trouble configuring my box as a router'. You get the idea. A thread called 'foobar!' will get a lot more interest from people who are interested in foobar than a thread called 'Help!!!'. In fact, the only reason I came to this thread was to share that bit of good practice with you.

That said, you should take a look at that link, but notably, it's a bit dated. I'll give you two possible pointers - firestarter is a GUI that will configure this up nicely, though I don't really like it due to the interface sucking a little bit and the desire for finer controls than it really allows. That's easy mode. If you want to do this on medium, look into shorewall - it's command-line, but it ships with a set of config files for the network configuration you want and after that you only have to read all of them and open the ports you want. Your call.

Hard mode, by the way, is using iptables directly, for which both of those are frontends. I do not recommend this. iptables makes sense but is rather painful to use, especially compared to the GUI of firestarter or the feature-oriented configs of shorewall.
 
  


Reply



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
newbie here.help plz riinku Red Hat 1 03-01-2008 02:20 AM
Cedega newbie help plz Kantarell Linux - Games 2 07-23-2005 12:02 AM
Help a newbie...plz! the_sLiDe Linux - Newbie 13 09-30-2004 03:37 PM
Another Newbie Needs Help ... Plz Roisin_Dubh Linux - Newbie 4 06-22-2003 04:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 PM.

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