LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2002, 08:16 PM   #1
katana
Member
 
Registered: Jun 2001
Posts: 100

Rep: Reputation: 15
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
 
Old 12-09-2002, 08:43 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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
 
Old 12-09-2002, 08:56 PM   #3
katana
Member
 
Registered: Jun 2001
Posts: 100

Original Poster
Rep: Reputation: 15
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
 
Old 12-10-2002, 01:25 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
no you don't need to as far as I know
 
Old 12-10-2002, 08:06 AM   #5
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
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.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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