From: "Покотиленко Костик" <casper@meteor.dp.ua>
To: netfilter <netfilter@vger.kernel.org>
Subject: Re: Blocking all APNIC addresses vs. per-country list
Date: Mon, 26 Apr 2010 18:10:17 +0300 [thread overview]
Message-ID: <1272294617.3750.35.camel@casper.meteor.dp.ua> (raw)
In-Reply-To: <4BD5A85C.1020703@ait.ac.at>
В Пнд, 26/04/2010 в 16:51 +0200, Roman Fiedler пишет:
> Hello list,
>
> Besides connection limits, shouldn't it be possible to place the various
> subnet rules in a sort of balanced/optimized tree to decrease the access
> time? Are there tools available for that, that use e.g. the DROP log
> entries from an unbalanced list to optimize the tree (like
> huffman-encoding for data streams)? Can ipset do that?
http://ipset.netfilter.org/features.html
I'm not familiar with huffman-encoding, but it seems ipset can store IPs
in hashes and trees (with timeout), but NETs are only possible in hash.
Not to say that there is an automatic tool for that, but you can make
any kind of tree with just iptables' user defined CHAINs. It could
probably be slow on insert/delete but definitelly fast on lookup.
If the performance is the point and hight number of rules is the need
one can also look at hipac, didn't tried it myself.
--
Покотиленко Костик <casper@meteor.dp.ua>
next prev parent reply other threads:[~2010-04-26 15:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-26 14:09 Blocking all APNIC addresses vs. per-country list Peter Zieseniss
2010-04-26 14:19 ` Tim Evans
2010-04-26 14:19 ` Richard Horton
2010-04-26 14:34 ` Pascal Hambourg
2010-04-26 14:51 ` Roman Fiedler
2010-04-26 15:10 ` Покотиленко Костик [this message]
2010-04-26 15:09 ` Покотиленко Костик
2010-04-26 16:14 ` Jan Engelhardt
2010-04-26 14:46 ` Покотиленко Костик
2010-04-26 15:54 ` Jan Engelhardt
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=1272294617.3750.35.camel@casper.meteor.dp.ua \
--to=casper@meteor.dp.ua \
--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