Discussion Locked

Trying to install rc.firewall

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Helle.. I am trying to install a firewall (rc.firewall) on a redHat linux 9 system. when I am running the firewall script it is aborting the process with the error 'IPtable v1.2 required or Kernel not configured for IPtables. Aborting! Get TPtables 1.2 OR ad linux Kernel 2.4.x'..

I am currently running kernel 2.4.20-8. I downloaded kernel 2.4.28 but I am not sure how to replace the existing kernel (I'm pretty new to Linux).. Is there any link to the instructions or another firewall that anyone can suggest?..

Thanks

4 replies

by desmack

Did you compile the latest version of iptables from binaries? make, make install etc.

I think the latest version is 1.2.11?? Not much difference from 1.2.10

from the "install" file....

-------------------------
FOLLOW THESE STEPS:

0) There may be some outstanding bugfixes or tweaks which are not yet
in the official kernel. Those are now (as of iptables-1.2.7) kept
in a separate package, called patch-o-matic. It is available from
ftp://ftp.netfilter.org/pub/patch-o-matic/

1) Next, make the package.
% make KERNEL_DIR=<>

2) Finally, you need to install the shared libraries, and the binary:
# make install KERNEL_DIR=<>

If you are a developer, you can install the headers, development libraries
and associated development man pages, with:
# make install-devel

That's it!
================================================================
PROBLEMS YOU MAY ENCOUNTER:

1) This package requires a 2.4.4 kernel, or above.

2) If you get the kernel directory wrong, you may see a message like:
Please try `make KERNEL_DIR=path-to-correct-kernel'

3) If you want to specify alternate directories for installation
(instead of /usr/local/ bin lib man), do this:

% make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man
# make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install

4) If you want to build a statically linked version of the iptables binary,
without the need for loading the plugins at runtime (e.g. for an embedded
device or router-on-a-disk), please use

% make NO_SHARED_LIBS=1

-------------------

Compiling from binaries should give the info you need to address any issues you have "running" rc.firewall. If you feel the need to update your kernel, then go to www.digitalhermit.com/liux/Kernel-Build-HOWTO.html

you will defiantly need to compile form binaries if you upgrade your kernel.

Cheers,

Lindsay Rex

by jaqui

what version of iptables is installed?
the error also says that the kernel isn't supporting iptables, so verify that it's installed and active also

by deyev

You need find out what kind of firewall support your kernel. There are three

1. ipfadm
2. ipchain
3. iptables
Be careful! ONLLY ONE of them can run on system.
Every firewall has own syntax rule.

This discussion is closed to new replies.