netfilter extentions iplimit mod bugs.
HI guys,
I download netfilter extentions via cvs yestoday, the iplimit code has some bug, in 214 lin in linux/net/ipv4/netfilter/ipt_connlimit.c
static struct ipt_match connlimit_match
= { { NULL, NULL }, "connlimit", &match, &check, &destroy, THIS_MODULE };
notic the "connlimit", it's must should be "iplimit", I don't know when it was changed, but the userspace tool iptable haven't changed yet. so when you type "iptables -A INPUT -p tcp --syn --dport http -m iplimit --iplimit-above 4 -j REJECT" , the result is "Invailid command."..:)
change the "connlimit" into "iplimit", recompiled kernel, it's OK now.;)
by the way, I wan to know when the netfilter will wok will in kernel 2.5.* ? until 2.6 release? ( yestoday, I compiled kernel 2.5.74, build netfilter with in, but iptables reaport that "no 'filter' table in kernel".)
-------------
thx all guy work for netfilter project..
Quoted 7 lines · yh
HI guys,
I download netfilter extentions via cvs yestoday, the iplimit code has some bug, in 214 lin in
linux/net/ipv4/netfilter/ipt_connlimit.cstatic struct
ipt_matchconnlimit_match
= { { NULL, NULL }, "connlimit", &match, &check, &destroy,THIS_MODULE};
Quoted 7 lines
notic the "connlimit", it's must should be "iplimit", I don't know when it was changed, but the userspace tool iptable haven't changed yet. so when you type "iptables -A INPUT -p tcp --syn --dport http -m iplimit --iplimit-above 4 -j REJECT" , the result is "Invailid command."..:)
change the "connlimit" into "iplimit", recompiled kernel, it's OK now.;)
It seems like your userspace iptables is out of date.. (i.e. using an old iptables version with a very recent patch-o-matic). The solution is to upgrade your iptables program, rather than patching anything.
Quoted 4 lines
by the way, I wan to know when the netfilter will wok will in kernel 2.5.* ? until 2.6 release? ( yestoday, I compiled kernel 2.5.74, build netfilter with in, but iptables reaport that "no 'filter' table in kernel".)
Well, at least with 2.5.70 and 2.5.72 (the last version I've tried) it was working.
Did you try to recompile the iptables userspace program?
Quoted 1 line
thx all guy work for netfilter project..
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie