From: Phil Howard <phil-netfilter@ipal.net>
To: netfilter@lists.netfilter.org
Subject: Re: how to block 10000's of addresses?
Date: Sun, 13 Oct 2002 10:10:34 -0500 [thread overview]
Message-ID: <20021013101034.E15824@hamal.ipal.net> (raw)
In-Reply-To: <20021013135349.FARY28874.mta06-svc.ntlworld.com@there>; from Antony@Soft-Solutions.co.uk on Sun, Oct 13, 2002 at 02:53:46PM +0100
On Sun, Oct 13, 2002 at 02:53:46PM +0100, Antony Stone wrote:
| > | Why don't you want 10000 rules on your netfilter box ? Have you tried
| > | it and found it causes any problems ?
| >
| > My understanding is they are tested sequentially. Maybe this isn't true,
| > but I see no documentation to the contrary regarding netfilter being any
| > different than past table oriented access list style filtering which uses
| > sequential testing to implement the ordered logic usually involved.
|
| Your understanding is correct. Netfilter rules are tested sequentially.
| However, I think it would still be worth a test of setting up a few thousand
| rules and see whether you get acceptable bandwidth. What speed is your
| external Internet connection ?
The external speed is 45 mbps. Connections come in at 20-30 per second
during certain peak times. That works out to 200000-300000 tests per
second. I think that's pushing the envelope a bit too much, even for a
route-only box. It's these peaks (usually spam overloading an SMTP server
despite it will be rejecting the mail) that I'm wanting to reduce the impact
from.
What I was hoping for was a means to replace an address in a rule with some
kind of reference to a lookup table object that had multiple addresses and
scaled better than O(n).
| > | > I want to block _incoming_ packets. Null routing these addresses is
| > | > not sufficient, as the lame SYNs will continue to eat up resources.
| > |
| > | I don't understand that last part. If you null route packets, surely
| > | there's no destination for the SYNs, therefore no half-open connections
| > | get set up ?
| >
| > Null routing is the goal. Deciding on the course/direction to pursue is
| > what I am doing at the moment. It sounds like maybe source routing might
| > be more appropriate than netfilter in this case.
|
| I think so. Try using the standard routing table's abilities to block
| packets at the gateway (same way as 192.168.0.0 packets get blocked by
| routers), before actually sending them somewhere else to get eaten - the
| latter could just be a waste of time to set up.
Standard routing uses the destination to look up what to do. This will need
to be based on source address. Apparently the policy routing has this
capability, but the documentation for that stuff is rather vague so far.
--
-----------------------------------------------------------------
| Phil Howard - KA9WGN | Dallas | http://linuxhomepage.com/ |
| phil-nospam@ipal.net | Texas, USA | http://ka9wgn.ham.org/ |
-----------------------------------------------------------------
next prev parent reply other threads:[~2002-10-13 15:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-13 11:50 how to block 10000's of addresses? Phil Howard
2002-10-13 12:10 ` Antony Stone
2002-10-13 13:00 ` Phil Howard
2002-10-13 13:13 ` Thomas Lussnig
2002-10-13 13:45 ` Phil Howard
2002-10-13 13:47 ` Robert P. J. Day
2002-10-13 14:56 ` Phil Howard
2002-10-13 16:25 ` Robert P. J. Day
2002-10-13 22:05 ` Phil Howard
2002-10-13 13:53 ` Antony Stone
2002-10-13 15:10 ` Phil Howard [this message]
2002-10-13 15:41 ` Antony Stone
2002-10-13 16:40 ` Thomas Lussnig
2002-10-13 17:25 ` Thomas Heinz
2002-10-13 17:42 ` Thomas Heinz
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=20021013101034.E15824@hamal.ipal.net \
--to=phil-netfilter@ipal.net \
--cc=netfilter@lists.netfilter.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