From: Jeffrey Laramie <JALaramie@Loudoun-Fairfax.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: Maximum Number of Chains
Date: Wed, 03 Sep 2003 12:21:08 -0400 [thread overview]
Message-ID: <3F5614F4.50908@Loudoun-Fairfax.com> (raw)
In-Reply-To: <3F560BCC.4020907@riovia.net>
Hi Paul,
Paul Caritj wrote:
> Agreed,
> Heres my situatuation: I need to create rules on the fly for
> (potentially) up to 4000 users. What I need is a way to delete *all*
> the rules for a given ip address without knowing the full contents of
> the rule (only the ip); as you might have guessed, I'm doing this
> programatically.
>
> My current solution is to have one chain for each associated IP. Is
> there a better solution to this problem?
Yikes, isn't processing that many rules for that many clients going to
have some performance impact? Have you tried a strategy of processing
the general rules (RELATED,ESTABLISHED -j ACCEPT, etc.) in your main
filter chain and then dividing the client rules up by subnet? In theory
that would substantially cut down the number of rules you would need to
test for any given IP address.
Jeff
next prev parent reply other threads:[~2003-09-03 16:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-02 23:25 Maximum Number of Chains George Vieira
2003-09-03 12:03 ` Tim Evans
2003-09-03 15:42 ` Paul Caritj
2003-09-03 16:19 ` Leonardo Rodrigues Magalhães
2003-09-03 16:21 ` Jeffrey Laramie [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-08-31 2:39 Paul Caritj
2003-08-30 4:16 Paul Caritj
2003-09-02 20:22 ` Ralf Spenneberg
2003-09-03 4:22 ` Julian Gomez
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=3F5614F4.50908@Loudoun-Fairfax.com \
--to=jalaramie@loudoun-fairfax.com \
--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