From: Florian Westphal <fw@strlen.de>
To: Klaus Ethgen <Klaus+lkml@ethgen.de>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: Probably bug in netfilter hashlimit extension
Date: Mon, 11 May 2015 15:50:37 +0200 [thread overview]
Message-ID: <20150511135037.GA7877@breakpoint.cc> (raw)
In-Reply-To: <20150511125834.GA19053@ikki.ethgen.ch>
Klaus Ethgen <Klaus+lkml@ethgen.de> wrote:
> Resend to netfilter-devel@vger.kernel.org, posted first to lkml.
>
> Recently I tried to mitigate some slow attacks via netfilter rule
> utilizing hashlimit target. I used the following specification:
>
> -A DETECT_INVALID -m hashlimit --hashlimit-upto 10/hour --hashlimit-mode srcip --hashlimit-name attack_invalid -j RETURN
>
> Now I seen some strange stuff. The counter in
> /proc/net/ipt_hashlimit/attack_invalid only counts from 60 back to 0 and
> then the entry disappears. Than means that a rate of 10/hour will never
> ever be detected at all.
Can't reproduce this with 4.0 on x86_64, using iptables 1.4.21 (64bit):
3598 127.0.0.1:0->0.0.0.0:0 8119296 57600000 11520000
next prev parent reply other threads:[~2015-05-11 13:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-11 12:58 Probably bug in netfilter hashlimit extension Klaus Ethgen
2015-05-11 13:50 ` Florian Westphal [this message]
2015-05-11 21:09 ` Klaus Ethgen
2015-05-12 7:42 ` Jan Engelhardt
-- strict thread matches above, loose matches on Subject: below --
2015-05-11 9:29 Klaus Ethgen
2015-05-11 16:35 ` Cong Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150511135037.GA7877@breakpoint.cc \
--to=fw@strlen.de \
--cc=Klaus+lkml@ethgen.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.