[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Red Hat 7.2 and example firewall script



Am 2001.12.02 18:38 schrieb(en) Mike A. Harris:
On Sun, 2 Dec 2001, Stephan André Schmidt wrote:
[...]
>Does this imply that compiling the ipchains compatibility 'fix' into the

>kernel does not work?

Not exactly sure what "fix" you're refering to exactly.  My
comments assume one is using a Red Hat supplied kernel.

If you use the Red Hat supplied kernels, ipchains is supported
via loadable kernel modules.  By default no firewalling modules
are loaded at all.  Red Hat kernels support both ipchains and
iptables firewalling via kernel modules.  It is not possible to
use both simultaneously nor load support for both simultaneously,
so whatever firewall software you are using, be it the supplied
tools, 3rd party tools, or a homemade script, each is responsible
for loading the kernel modules that it requires.

If using the supplied Red Hat firewall configuration tools, the
appropriate firewall modules should get loaded by the supplied
ipchains or iptables initscripts assuming the given service has
been enabled properly and the firewall properly configured.

If using alternative firewall tools, or homebrew firewall
scripts, you need to manually load either the ipchains module or
the iptables modules depending on which interface the firewall
scripts you are using require.  The supplied ipchains/iptables
initscripts are part of the supplied tools, and are not intended
for generically loading kernel modules for custom scripts.

If you use custom kernels, you may or may not have to load kernel
modules depending on how you built the kernel.

There seems to be some confusion lately with ipchains and
iptables and the supplied initscripts.  I am just clarifying that
the initscripts are not intended for homebrew scripts.  This is
probably confused by the choice of names for the initscripts.
Instead of being called /etc/init.d/ipchains, it probably should
have been called /etc/init.d/redhat-ipchains-firewall, or
/etc/init.d/redhat-lokkit or somesuch.

Hope this clarifies things a bit.

Thanks for your long and detailed answer. By using the word 'fix' I meant not to compile ipchains support as a module but directly into the kernel. Sorry if the question was not clear enough. I am not a native speaker.
My problem is that my old ipchains firewall script does not work anymore to some reason I do not know. It does not matter if I am using a Red Hat supplied kernel or a kernel from www.kernel.org. Running 7.1, I built ipchains support directly into the kernel and were able to use the ipchains script without any problems. Trying to do this running 7.2 did not work to some reason. After have built ipchains as a module running 7.2 and a RH supplied kernel (tried also 'pristine' source) it also did not work. I have done a 'modprobe ipchains' before executing the ipchains script.
So my question is if there is someone out there using a 'home made' ipchains script and can tell me how he got this working.


I hope that I have described my situation now more exactly.

Stephan
--
Stephan André Schmidt
stephanandre schmidt uni-bielefeld de
http://www.uni-bielefeld.de/~ingalo/ - get sambafax working with LPRng





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]