From: Nigel Heron <nigel-ml@xprima.com>
To: netfilter@vger.kernel.org
Subject: banning bot ips with ipset
Date: Tue, 25 Nov 2008 16:00:48 -0500 [thread overview]
Message-ID: <492C6780.4020909@xprima.com> (raw)
Hi list,
We're using iptables (with shorewall for config) and lvs on our
firewall/load balancer. We're being attacked by a botnet alternating
between http request floods and syn floods. We have a way to identify
the ips that are http'ing and started dropping them in iptables, once we
got to ~1700 banned ips the server stopped nat'ing completely (not sure
why..) and we were forced to remove the blacklist. We're now banning non
north-american class-As to drop half the bots, but it's obviously not a
good long term solution. We just came across ipset, but the lack of any
feedback on the net (besides on *.netfilter.org) has us a bit worried
about real world deployment. Is ipset stable enough to be deployed on
live environments? iphash seems like the best set type for us, how many
ips can the set handle before there's a noticeable slowdown? any
feedback would be appreciated.
obviously, we don't expect ipset to help us with the syn flood, at
~30Mb/s of syn traffic, syn cookies aren't helping either, is there a
syn-proxy implementation for linux?
also, if it helps anyone else .. while trying ipset 2.4.5 i had to add:
#include <stdbool.h>
to "kernel/ip_set_setlist.c" to get it to compile.
thanks,
-nigel.
next reply other threads:[~2008-11-25 21:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-25 21:00 Nigel Heron [this message]
2008-11-25 22:25 ` banning bot ips with ipset G.W. Haywood
2008-11-25 22:54 ` Adem
2008-11-26 8:16 ` Jozsef Kadlecsik
2008-11-26 7:45 ` Marek Kierdelewicz
2008-11-26 8:25 ` Jozsef Kadlecsik
2008-11-26 16:28 ` Nigel Heron
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=492C6780.4020909@xprima.com \
--to=nigel-ml@xprima.com \
--cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox