Skip to contentSkip to conversation

connlimit: 2.6.24.4 + p-o-m 20080331 compile problems

DISCUSSION Bgs 3 participants 12 messages Apr 3, 2008 1 message not in the archive

lore
Share & tools
lore

Bgs

author
#0 lore raw

Greetings,

I tried to compile the above setup but the compilation fails. I've seen this error with 2.6.23/2.6.24 kernels before but used 2.6.22.X in production. Has anything changed in the way to patch it?

CC net/ipv4/netfilter/ipt_connlimit.o
In file included from net/ipv4/netfilter/ipt_connlimit.c:23:
include/net/netfilter/nf_conntrack.h:99: error: field 'ct_general' has incomplete type include/net/netfilter/nf_conntrack.h: In function 'nf_ct_get':
include/net/netfilter/nf_conntrack.h:160: error: 'const struct sk_buff' has no member named 'nfct' include/net/netfilter/nf_conntrack.h: In function 'nf_ct_put':
include/net/netfilter/nf_conntrack.h:167: error: implicit declaration of function 'nf_conntrack_put' include/net/netfilter/nf_conntrack.h: In function 'nf_ct_is_untracked':
include/net/netfilter/nf_conntrack.h:249: error: 'const struct sk_buff' has no member named 'nfct' In file included from net/ipv4/netfilter/ipt_connlimit.c:24:
include/net/netfilter/nf_conntrack_core.h: In function 'nf_conntrack_confirm':
include/net/netfilter/nf_conntrack_core.h:68: error: 'struct sk_buff' has no member named 'nfct' net/ipv4/netfilter/ipt_connlimit.c: In function 'count_them':
net/ipv4/netfilter/ipt_connlimit.c:98: error: too many arguments to function 'nf_conntrack_find_get' net/ipv4/netfilter/ipt_connlimit.c: At top level:
net/ipv4/netfilter/ipt_connlimit.c:312: warning: initialization from incompatible pointer type net/ipv4/netfilter/ipt_connlimit.c:316: warning: initialization from incompatible pointer type make[3]: *** [net/ipv4/netfilter/ipt_connlimit.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2

Bye
Bgs

#1 lore raw
Quoted 4 lines · Bgs

Greetings,

I tried to compile the above setup but the compilation fails. I've seen this error with 2.6.23/2.6.24 kernels before but used 2.6.22.X in production. Has anything changed in the way to patch it?

pom is pretty much an ancient blob of code, being replaced by xtables-addons. connlimit has been merged into mainline, btw.

#2 lore raw

Hello,

Quoted 2 lines · Jan Engelhardt

connlimit has been merged into mainline, btw.

Since 2.6.23.

author
#4 lore raw
In reply to Jan Engelhardt

My problem is that it doesn't seem to work with the merged version:

iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m connlimit --connlimit-above 20 --connlimit-mask 32 -j DROP
iptables: Invalid argument

connlimit is compiled in:
CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=y

Quoted 10 lines · Jan Engelhardt
Quoted 4 lines · Bgs

Greetings,

I tried to compile the above setup but the compilation fails. I've seen this error with 2.6.23/2.6.24 kernels before but used 2.6.22.X in production. Has anything changed in the way to patch it?

pom is pretty much an ancient blob of code, being replaced by xtables-addons. connlimit has been merged into mainline, btw.

author
#3 lore raw
In reply to Pascal Hambourg

I know, that's why I wrote "I've seen this error with 2.6.23/2.6.24 kernels before" :)

Quoted 12 lines · Pascal Hambourg

Hello,

Quoted 2 lines · Jan Engelhardt

connlimit has been merged into mainline, btw.

Since 2.6.23.

Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw
In reply to Bgs
Quoted 5 lines · Bgs

My problem is that it doesn't seem to work with the merged version:

iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m connlimit --connlimit-above 20 --connlimit-mask 32 -j DROP
iptables: Invalid argument

Try looking in the kernel log (dmesg) what ip_tables has to say.

#7 lore raw
In reply to a message not in the archive

(please keep the mailing list in Cc)

Quoted 7 lines · Bgs

Sorry for spamming, but forgot this from my previous mail:

ip_tables: connlimit match: invalid size 32 != 16

This is the error I get since 2.6.23 if I try the merged connlimit.

Fix your iptables package, it still runs with the old connlimit.

author
#8 lore raw

Just recompiled the latest iptables (1.4.0) from vanilla source:

root@db05:/usr/src/iptables# iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m connlimit --connlimit-above 20 --connlimit-mask 32 -j DROP
iptables: Invalid argument
root@db05:/usr/src/iptables/root# dmesg
cannot load conntrack support for address family 2
Quoted 14 lines · Jan Engelhardt

(please keep the mailing list in Cc)

Quoted 7 lines · Bgs

Sorry for spamming, but forgot this from my previous mail:

ip_tables: connlimit match: invalid size 32 != 16

This is the error I get since 2.6.23 if I try the merged connlimit.

Fix your iptables package, it still runs with the old connlimit.

#9 lore raw
Quoted 6 lines · Bgs

Just recompiled the latest iptables (1.4.0) from vanilla source:

root@db05:/usr/src/iptables# iptables -A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m connlimit --connlimit-above 20 --connlimit-mask 32 -j DROP
iptables: Invalid argument
root@db05:/usr/src/iptables/root# dmesg
cannot load conntrack support for address family 2

Fix your kernel, you need connection tracking enabled. :D

Signature · 1 line
make boldconfig -- to boldly select what no one has selected before
author
#10 lore raw

I have this in the kernel:

CONFIG_NF_CONNTRACK_ENABLED=y
CONFIG_NF_CONNTRACK=y

Quoted 16 lines · Jan Engelhardt
Quoted 8 lines · Bgs

Just recompiled the latest iptables (1.4.0) from vanilla source:

root@db05:/usr/src/iptables# iptables -A INPUT -p tcp -m tcp 
--tcp-flags FIN,SYN,RST,ACK SYN -m connlimit --connlimit-above 20 
--connlimit-mask 32 -j DROP
iptables: Invalid argument
root@db05:/usr/src/iptables/root# dmesg
cannot load conntrack support for address family 2

Fix your kernel, you need connection tracking enabled. :D

#11 lore raw
Quoted 6 lines · Bgs

I have this in the kernel:

CONFIG_NF_CONNTRACK_ENABLED=y
CONFIG_NF_CONNTRACK=y

That is not enough, you need the others too, CONFIG_NF_CONNTRACK_IPV4

author
#12 lore raw

Funny... IPV4 is marked as experimental. And I can compile in ftp/irc/etc contrack helpers without enabling ipv4 conntrack. Shouldn't this be a dependency? (require ipv4 or ipv6 conntrack)

Also: the connlimit description says: "This match allows you to match against the number of parallel connections to a server per client IP address (or address block)." 1) It's a conntrack module 2) it states that it's an ipvX module -> but it does not depend on having ipvX conntrack enabled.

Just recompiled and the rules loaded ok.

Bye
Bgs

Quoted 10 lines · Jan Engelhardt
Quoted 6 lines · Bgs

I have this in the kernel:

CONFIG_NF_CONNTRACK_ENABLED=y
CONFIG_NF_CONNTRACK=y

That is not enough, you need the others too, CONFIG_NF_CONNTRACK_IPV4