Skip to contentSkip to conversation

iptables v1.2.11: can't initialize iptables table `filter': Module is wrong version

DISCUSSION Kazuo Nakamura 2 participants 2 messages Mar 24, 2006 – Mar 27, 2006

lore
Share & tools
lore
#0 lore raw

Hi All
Now I am using iptables v1.2.11, 2.6.9 kernel, and glibc-2.3.4 But I can not use iptables.

Following error message.
ip_tables: (C) 2000-2002 Netfilter core team
iptables v1.2.11: can't initialize iptables table `filter': Module is wrong version
Perhaps iptables or your kernel needs to be upgraded.

# lsmod
Module                  Size  Used by    Not tainted
iptable_filter 2368 0 - Live 0xbf007000
ip_tables 20640 1 iptable_filter, Live 0xbf000000

How can I use iptables on 2.6.9 kernel ?
I think that getsockopt has error in TC_INIT.

Best regards
Kazuo Nakamura

#1 lore raw

RE: iptables v1.2.11: can't initialize iptables table `filter': Moduleis wrong version

Quoted 13 lines

Hi All
Now I am using iptables v1.2.11, 2.6.9 kernel, and glibc-2.3.4 But I can not use iptables.

Following error message.
ip_tables: (C) 2000-2002 Netfilter core team
iptables v1.2.11: can't initialize iptables table `filter': Module is wrong version
Perhaps iptables or your kernel needs to be upgraded. # lsmod
Module Size Used by Not tainted
iptable_filter 2368 0 - Live 0xbf007000
ip_tables 20640 1 iptable_filter, Live 0xbf000000

Quoted 1 line

How can I use iptables on 2.6.9 kernel ?

Like the error says : your iptables binary cannot use a matching kernel module.

Does this come from a distro CD or did you recompile the kernel without recompiling iptables or something like that ?
Or perhaps you installed a 2.6 kernel and a 2.4 iptables binary from CD (we don't know if your distro supports both kernels) ?

Quoted 1 line

I think that getsockopt has error in TC_INIT.

Kernel 2.6.9 and iptables-1.2.11 date back to june/october 2004 AFAICT. If there was an error in the code then a lot of people would have this problem and it would be solved with a recent kernel/iptables..

Gr,
Rob