Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-13-2001, 12:15 PM   #1
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.

Old 12-13-2001, 06:37 PM   #2
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;
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 06:41 PM.


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 08:01 AM
config file with icon location KDE? slug420 Linux - General 2 05-23-2005 07:48 AM
MBR location specified in kickstart config file owenh Linux - General 2 03-22-2005 05:06 PM
where is the iptables dufault rules config file? ayiiq180 Linux - Software 2 12-18-2004 02:42 AM
Config file organization/location Dark_Helmet Linux - General 2 05-24-2004 10:41 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:30 AM.

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