LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Iptables..a little help? (https://www.linuxquestions.org/questions/linux-general-1/iptables-a-little-help-37787/)

katana 12-09-2002 08:16 PM

Iptables..a little help?
 
Hi everybody..
I got a question about iptables...Recently I've been asked to configure iptables for firewall in RedHat 7.1 machine, but the problem is I've never configured ipchains or iptables before, so I'm a bit in the dark about this matter. Do any of u nice people know where I can find a good, simple documentation that an ipchains/iptables newbie like me can follow? I got some links...one of them is a lengthy tutorial from this guy called Oskar, blessed him it's a good tutorial...but quite overwhelming for someone like me. And I dont really understand it..for example, with what kind of options do I have to recompile my kernel?

I hope u all can help me..thanks!

Suzana

DavidPhillips 12-09-2002 08:43 PM

here are some for different configs that you should be able to find a good one in
http://www.linuxguruz.org/iptables/


for redhat you should do this
Code:

/etc/rc.d/init.d/iptables stop
then using the script that you choose run it to set the firewall rules
( you will need to chmod 755 scriptname to execute it )

after that is done do this

Code:


iptables-save > /etc/sysconfig/iptables

you do not need the downloaded script anymore

the firewall will be controlled by the /etc/rc.d/init.d/iptables script

katana 12-09-2002 08:56 PM

Thanks for the reply David :)
I'll check out the link...
one more question: do I really have to recompile my RedHat 7.1 kernel (version 2.4). If I do, with what options do I have to recompile it?

Thanks again

Suzana

DavidPhillips 12-10-2002 01:25 AM

no you don't need to as far as I know

Ciccio 12-10-2002 08:06 AM

You just need to stop ipchains and start iptables. About the configuration... well... if you need to do routing also you can search in google for
Quote:

firewall+iptables+linux
You can also search this forum for a thread called network config files (or something like that) and there are a few firewall scripts, all quiet good.


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