Jump to content

Why Does 9.2 Install Both Shorewall and Iptables?


enloop
 Share

Recommended Posts

After using a variety of Linux flavors for several years, I've recently purchased and installed Mandrake 9.2 (the PowerPack box).

 

I've noticed that both iptables and Shorewall are installed by default. Why? I've also noticed that both Shorewall and iptables are set to run at boot, but the Mandrake's GUI tool shows iptables as "Stopped" and ignores a "Start" command. Again, why?

 

 

To enable Mandrake's "personal firewall" on a single desktop, do I need to run both Shorewall and iptables? Or just one? What's their relationship?

Link to comment
Share on other sites

From what I understand, iptables is what a firewall like Shorewall will use to enforce all its rules.

 

There are two main methods of creating a firewall on LInux -- ipchains and iptables. IPChains was used with the 2.2.x kernel and has now been replaced with iptables. Any program that creates a firewall will, therefore, use one of those two technologies. All the firewall programs really do is make the creation of iptables rules easier. They can be quite cryptic and difficult to correctly setup.

 

As for why iptables is labeled as stopped, I can not say as I don't run a firewall on my linux box.

 

Hope that helps a bit though.

Link to comment
Share on other sites

iptables only runs at boot and sets the rules that are used.

I know i was thinking the same thing, that if it says stopped

that it meant that the firewall wasn't running, but thats not

true.

iptables is run when you boot to set the rules , only time that

it is run after boot is if you change your rules, at least thats

how it was explained to me.

You can check to see if your rules are working by going to

grc.com, at least thats where i check, amoung other sites.

Link to comment
Share on other sites

As others have said, shorewall is a frontend.

 

 

Inside the kernel there is Netfilter this is what does all the filtering but netfilter is very dumb, so the iptables kernel module is loaded to tell it what to do. Although iptables isnt always that easy to use, so people made frontends like Shorewall, Firestarter and others.

 

Anyway, my point is that iptables is a module, the iptables service loads it then dies, the service is not a terminate and stay resident program ( meaning keeping on running -- like apache ). It just loads a kernel module.

Edited by iphitus
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...