LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Newbie needs help!!! plz.. :-( (https://www.linuxquestions.org/questions/linux-newbie-8/newbie-needs-help-plz-745884/)

Hades_Pluto 08-07-2009 03:23 PM

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

repo 08-07-2009 03:30 PM

A good start would be
http://tldp.org/HOWTO/IP-Masquerade-HOWTO/

karamarisan 08-07-2009 03:46 PM

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.

Hades_Pluto 08-07-2009 11:12 PM

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

Quote:

Originally Posted by repo (Post 3635124)


Hades_Pluto 08-07-2009 11:13 PM

Thanks for the remind
 
Okay, I will be more specific next time, thank you for reminding me :)

Quote:

Originally Posted by karamarisan (Post 3635140)
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.



All times are GMT -5. The time now is 06:40 PM.