Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16th April 2005, 10:01 AM
jsmaye Offline
Registered User
 
Join Date: Mar 2005
Location: Vandelay Industries
Posts: 127
Relationship of Firestarter to iptables

I'm using the Firestarter GUI app, which I thought to be merely a frontend for iptables. Except for the fact the Firestarter doesn't seem to accurately reflect the status of iptables. Using Firestarter to start the firewall creates a a different set of rules than if I use the 'service iptables start' or the 'Service Configuration' GUI. Also, stopping and starting iptables from the command line or service configuration causes errors

iptables failed. The error was: Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: nat mangle filter [ OK ] Unloading iptables modules: [FAILED]

but the firewall stops and clears the rule set anyway per iptables -L .

What am i misunderstanding?
Reply With Quote
  #2  
Old 16th April 2005, 10:05 AM
AndyGreen's Avatar
AndyGreen Offline
Registered User
 
Join Date: Apr 2005
Location: Northants, UK
Posts: 2,026
"service iptables" has its own private stash of firewall rules that it keeps stored away somewhere. It does not know about Firestarter and therefore they totally conflict.

The key to understanding this is to know that netfilter/iptables is in the kernel, it is not actually a service that starts and stops, it's always up. The init.d/ script that allows "service iptables" is in fact a simple script that removes all your rules from iptables on "stop", and nukes any rules and reloads them from its secret stash on "start". service iptables save updates the secret stash with the current ruleset.

So if you use Firestarter, I guess you want to turn off the "iptables service" stuff

chkconfig iptables off
__________________
Freelance RedHat Certified Engineer - http://northantsIT.com
Reply With Quote
  #3  
Old 16th April 2005, 05:47 PM
Tashiro Offline
Retired Community Manager
 
Join Date: May 2004
Posts: 1,149
Firestarter controls the iptables. If you change, remove or add a rule with firestarter the iptables rules change directly. Firestarter is a GUI for the iptables with some nice features.

If I am wrong please correct me.

Tashiro

Edit: mmm on second thought I think I am wrong...
__________________
Respect the FedoraForum.org guidelines

Last edited by Tashiro; 16th April 2005 at 05:50 PM.
Reply With Quote
  #4  
Old 16th April 2005, 06:14 PM
Tashiro Offline
Retired Community Manager
 
Join Date: May 2004
Posts: 1,149
But I still don't fully understand why...

Tashiro
__________________
Respect the FedoraForum.org guidelines
Reply With Quote
  #5  
Old 16th April 2005, 06:35 PM
AndyGreen's Avatar
AndyGreen Offline
Registered User
 
Join Date: Apr 2005
Location: Northants, UK
Posts: 2,026
There's two kinds of thing called "iptables" around.

The first is the netfilter code in the kernel itself which does the filtering and routing of packets. That is always up, and you can set the rules for it using the /sbin/iptables program.

The second, confusing "iptables" is a script in /etc/rc.d/init.d/iptables. If you look in the script, you'll see that it is a "service" type interface that uses /sbin/iptables to set and delete rules in a wholesale manner. If you do service iptables start, it nukes all the existing netfilter rules and copies the ones from /etc/sysconfig/iptables in, using the /sbin/iptables program. When you do service iptables stop, it nukes all the rules, again using the /sbin/iptables program. service iptables save dumps the current ruleset for netfilter into /etc/sysconfig/iptables so on the next start you'll have the current rules set.
__________________
Freelance RedHat Certified Engineer - http://northantsIT.com
Reply With Quote
  #6  
Old 17th April 2005, 12:49 AM
Dr_Strangelove's Avatar
Dr_Strangelove Offline
Registered User
 
Join Date: Mar 2005
Posts: 89
Correct me if I'm wrong here...

Firestarter just bypasses the /etc/rc.d/init.d/iptables script by using its own configuration tools/script to control the /sbin/iptables program when making a set of rules. However it still uses the kernels netfilter code.. Right?
__________________
Fedora Core 3 - k2.6.10-1.770_FC3_SMP

Last edited by Dr_Strangelove; 17th April 2005 at 01:16 AM.
Reply With Quote
  #7  
Old 17th April 2005, 03:27 AM
w5set Offline
Registered User
 
Join Date: Feb 2005
Location: ark n saw out in the sticks
Posts: 2,316
/sbin/iptables to me looks like a service/daemon (it's an executable file) that parses the network packets according to the "table" setup.
I do know that firestarter shuts down the FC "iptables service" when it runs and has it's own process to do the same thing--except that firestarter tables are reconfigurable on the fly with the GUI.
Reply With Quote
  #8  
Old 17th April 2005, 04:46 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
Yes firestarter is a replacement of the iptables service.
Reply With Quote
  #9  
Old 17th April 2005, 09:07 AM
AndyGreen's Avatar
AndyGreen Offline
Registered User
 
Join Date: Apr 2005
Location: Northants, UK
Posts: 2,026
Yep Strangelove that matches my understanding.
__________________
Freelance RedHat Certified Engineer - http://northantsIT.com
Reply With Quote
Reply

Tags
firestarter, iptables, relationship

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about iptables and Firestarter Doug_Vitale Security and Privacy 5 20th February 2009 10:50 PM
What does Firestarter do with iptables? Qwagmire Security and Privacy 2 1st July 2006 04:38 AM
iptables and firestarter infiniteedge Servers & Networking 6 1st November 2004 11:32 PM
iptables messed up from firestarter?? LinuxHippy Security and Privacy 11 25th October 2004 10:41 AM


Current GMT-time: 17:51 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat