LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-13-2001, 01:15 PM   #1
munisp
LQ Newbie
 
Registered: Nov 2001
Posts: 20

Rep: Reputation: 0
location of iptables config file


Does anyone know what location of the iptables config file on redhat 7.1 ? I looked in /etc/sysconfig/ but did not find any file called iptables. I found an ipchains file. Do I have create an iptables file myself or is there a default iptables files?

Lastly, whats the rc.firewall file used for? Is it related in any ways to iptables.

thanks
Patrick
 
Old 12-13-2001, 07:37 PM   #2
dangel
Member
 
Registered: Nov 2001
Location: atl
Distribution: redhat
Posts: 52

Rep: Reputation: 15
if there isn't a file called iptables in /etc/sysconfig then u can just create it and stick ur rules in there. when the system boots up and if ur system is configured to start the iptables script it will load the rules in that file.
you can do something similar to the following after you write ur iptables rules:
(this is of course if you write your rules at the command prompt)
iptables-save > /etc/sysconfig/iptables
which will save all of ur rules that are in memory to that file.
---
the rc.firewall allows you to create your own script that you possilby can't do in the /etc/sysconfig/iptables
(correct me if i'm wrong on this guys), but i don't think you can do say things like this in the iptables file :
if ! /sbin/ifconfig | grep $EXTIF > /dev/null; then
echo -e "\n\nExternal interface is down. Aborting."
exit 1;
fi
echo External Interface: $EXTIFif !

i *believe* the iptables-save and restore commands will only understand iptable rules.
(which, if you read the iptables script in the /etc/rc.d/init.d/ directory - is how the system restores your iptables rules at boot time)
---

Last edited by dangel; 12-13-2001 at 07:41 PM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Location iptables config file freakin'me Linux - Software 10 08-14-2005 09:01 AM
config file with icon location KDE? slug420 Linux - General 2 05-23-2005 08:48 AM
MBR location specified in kickstart config file owenh Linux - General 2 03-22-2005 06:06 PM
where is the iptables dufault rules config file? ayiiq180 Linux - Software 2 12-18-2004 03:42 AM
Config file organization/location Dark_Helmet Linux - General 2 05-24-2004 11:41 AM


All times are GMT -5. The time now is 09:29 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration