Iptables/Kernel Compile Conundrums

Iptables/Kernel Compile Conundrums

Post by J » Mon, 02 Sep 2002 09:52:20



Hello,

My system is a PPro 200 128 6G drive dual ethernet. It is my firewall
running Redhat 7.2.

I have recently decided to upgrade my iptables to the latest and need
to recompile the kernel.. so I downloaded the kernel source and rpm'd
it and it said it needs gcc so I downloaded the gcc and it has
dependencies.... blah.. blah ...blah.

So my ?, is what is the best setup to run when setting up a box for
iptables/firewall so if I want to keep my iptables up to date, I can?
Again the box was setup with the server option w/ no X, not even
classic X.

Thanks,

JD

 
 
 

Iptables/Kernel Compile Conundrums

Post by Greg Donov » Fri, 06 Sep 2002 01:19:25


I use the kickstart utility and include the following packages. This
allows me to  recompile the kernel and run iptables. I pretty sure
that this will also allow for iptables to be upgraded without a
problem. If you are using linux as a firewall its best if you install
only the packages that you will need and recompile the kernel and only
enable the features and modules that you need for the firewall.
Xwindows is not recomended(to hard to secure for me). You will also
need to run /usr/sbin/ntsysv and remove the asterisk from ipchains and
put an asterisk by iptables. Red Hat automatically enables ipchains
and ipchains and iptables will not run at the same time. Then of
course you will need to input your iptable rules and save them.
Hope this helps.
G.Donovan

%packages
apache
autoconf
autofs
automake
binutils
bind-utils
bash
cpp
expat
freetype
gcc
gcc-c++
gcc-g77
gd
gdb
glibc-devel
glibc-kernheaders
gmp
gnupg
gpm-devel
gzip
iputils
iptables
kernel-source
libjpeg
libpng
libstdc++-devel
libtool
libtool-libs
m4
make
man-pages
mm
ncompress
ncurses
ncurses-devel
openssh
openssh-clients
openssh-server
openssl-devel
perl
rdate
sendmail-cf
stunnel
tcsh
squid
tcsh
tripwire
xinetd
zlib
zlib-devel

 
 
 

1. compile new kernel => compile new iptables ?

just installed a new kernel and iptable stopped working.
I get the following error:

# iptables  -F FORWARD
iptables v1.2.4: can't initialize iptables table `filter': Module is wrong
version
Perhaps iptables or your kernel needs to be upgraded.

having kernel2.4.16 and iptables 1.2.4.  I check googles and the
netfilter-docs and the postings in googles says that this is, if iptables
wasnt compiled against the recent kernel and the netfilter-install needs
the kernel-sources in every step.

somehow this doesnt make sense to me. The netfilter-modules are included
with the kernel-sources and therefore change at every new kernel, but why
should I be forced to compile a new iptables-binary ever time I update my
kernel ?

thnx,
peter

--
peter pilsl

http://www.goldfisch.at

2. PCI driver Solaris 2.6 : DIP question :-)

3. Is iptables only working if REDIRECT is compiled into the kernel ?

4. 2 Million E-Mail Addresses $35.95

5. IPTABLES and RedHat 7.2: can't compile kernel

6. One more time : Help installing compressed libs Slackware 2.3

7. 2.4.9 kernel and iptables-1.2.3 compile problem - something with IPv6 multi port wrong?

8. Xconfig for ATI 68800-AX/Mach-32

9. custom kernel conundrum

10. please help: newly compiled kernel cannot compile (2.0.34 slackware)

11. Compiling 2.4.2 kernel on RH7 with compiled modules

12. Compiling modules without compiling kernel

13. how to compile the IPv6 module without compiling the whole kernel?