compile new kernel => compile new iptables ?

compile new kernel => compile new iptables ?

Post by peter pils » Sun, 21 Apr 2002 07:23:40



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

 
 
 

compile new kernel => compile new iptables ?

Post by Mark Hacket » Sun, 21 Apr 2002 17:54:10


As a asfety measure (an incorrect kernel driver can ruin your system),
kernel versioning is made available.

If you recompile your kernel with "kernel version" support off, you can
load the same binaries.

Note that this will almost definitely ruin your day if the second number in
the kernel is different (e.g 2.4 vs 2.4). that number indicates that
internal interfaces have changed, the first number roughly approximating
that the whole idea of the kernel has changed, so many user programs will
need recompiling.


> 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


 
 
 

compile new kernel => compile new iptables ?

Post by peter pils » Sun, 21 Apr 2002 18:58:05



> As a asfety measure (an incorrect kernel driver can ruin your system),
> kernel versioning is made available.

> If you recompile your kernel with "kernel version" support off, you can
> load the same binaries.

> Note that this will almost definitely ruin your day if the second number
> in the kernel is different (e.g 2.4 vs 2.4). that number indicates that
> internal interfaces have changed, the first number roughly approximating
> that the whole idea of the kernel has changed, so many user programs will
> need recompiling.

sorry, but imho you are confusing two things : versioning is for modules
and not for programms.
As I said modules needs to be compiled on (almost) every new kernel-build.
But this is not true for binaries like ipchains, ls, pppd .... - for good
reason, cause a new kernel would force me to rebuild my whole system.

But now - with iptables (not the module !! the binary !!) - things seems
being different ...

thnx,
peter


>> 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 ?

--
peter pilsl

http://www.goldfisch.at
 
 
 

1. SLIP/PPP -->new kernel-->new compiler-->new make

Hello world!

I'm trying to install SLIP or PPP (made no choice yet, any tips?)
Therefore I needed a new kernel and tried to install 1.1.45.
To compile this I needed a new gcc version. I downloaded gcc 2.5.8, libc
4.5.26, binutils 1.9l.4 and tools 2.16.
I un-tar-ed them all and started to compile.
I now need gnu make 3.70 (in stead of 3.69) where can I find this?
I also have problems with libc.so.4, witch is linked to libc.so.4.4.4
It sais: desire minor version 514 and found 404
How do I solve this?
final question: Why isn't there a HOW-TO about these things?

I hope anyone can help me with this.

Greetings and thanx in advance,

Perjan Moors.

2. What Unix Works In Linux?

3. IDE CD -> New Kernel -> New Compiler (what next?)

4. linking problems after upgrading to binutils-2.7.0.3 et al

5. 2.2.0-final <-> 2.2.0 can't compile new kernel!!

6. what is going wrong? dsi_stream_read(-1): connection reset by peer

7. /boot/system.map -> just compiled a new kernel

8. Best way to validate/process this lang-like data list?

9. kernel panic on a 2.2.5 kernel new compile

10. Compiling new xterm with new libraries/include files

11. Problems Compiling New Kernel w/ Slackware's version of 1.2 kernel

12. compile error under new solaris 2.6 system (new solaris user too)

13. compiling ANY new kernel gives "Kernel Panic"...HELP!