From: "Leonardo Rodrigues Magalhães" <leolistas@solutti.com.br>
To: "Gary W. Smith" <gary@primeexalia.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: netfilter optimization.
Date: Sat, 25 Aug 2007 14:57:52 -0300 [thread overview]
Message-ID: <46D06DA0.1010706@solutti.com.br> (raw)
In-Reply-To: <57F9959B46E0FA4D8BA88AEDFBE5829024F4B7@pxtbenexd01.pxt.primeexalia.com>
[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]
Gary W. Smith escreveu:
> I'm looking for some firewall tweaking advice. We have a dedicated
> firewall which hit ran out of conntrack slots recently. We had already
> tweaked the number max_conntracks to 131072. That box was an RHEL 4 box.
> We are building a new firewall, based on 2.6.22. Reading some older
> docs, they mention that if you can, set conntrack_buckets to the same as
> conntack_max, if memory permits. This box has plenty 512mb. In the
> sample reference doc, it says that you can do about 1048576 at a cost of
> about 300mb of ram. This is fine.
>
> Since this is a dedicated firewall box, with only ssh, cron, smartd and
> sysstat running on it, what would you recommend the settings to be? And
> what is the best way to set these (/etc/sysctl.conf)?
>
> Playing around I found that I can set nf_conntrack_max to the value, but
> when I set nf_conntrack_buckets to the same I get permission denied.
> nf_conntrack_buckets is set to 4096, which if I read the documentation
> correctly, would slow down the link list parsing as it would have to
> refer to the conntrack list more often.
>
>
You missed some important informations. How many machines are behind
this firewall ? Are they client machines or are they servers ? Are we
talking of lots of machines that generates low traffic of we're talking
of some machines that generate LOTS of traffic ??
Please tell us about your network cenary.
--
Atenciosamente / Sincerily,
Leonardo Rodrigues
Solutti Tecnologia
http://www.solutti.com.br
Minha armadilha de SPAM, NÃO mandem email
gertrudes@solutti.com.br
My SPAMTRAP, do not email it
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 5672 bytes --]
next prev parent reply other threads:[~2007-08-25 17:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-25 17:38 netfilter optimization Gary W. Smith
2007-08-25 17:57 ` Leonardo Rodrigues Magalhães [this message]
2007-08-25 18:51 ` Gary W. Smith
2007-08-25 22:58 ` Thomas Jacob
2007-08-25 23:21 ` Thomas Jacob
2007-08-25 23:29 ` Gary W. Smith
2007-08-26 0:03 ` Gary W. Smith
2007-08-26 10:58 ` Thomas Jacob
2007-08-26 20:27 ` Gary W. Smith
2007-08-27 16:48 ` David Lang
2007-08-25 23:27 ` Gary W. Smith
[not found] <200708252302.l7PN2U2S011637@mail3.jubileegroup.co.uk>
2007-08-26 7:38 ` G.W. Haywood
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=46D06DA0.1010706@solutti.com.br \
--to=leolistas@solutti.com.br \
--cc=gary@primeexalia.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