Linux Netfilter discussions
 help / color / mirror / Atom feed
* netfilter optimization.
@ 2007-08-25 17:38 Gary W. Smith
  2007-08-25 17:57 ` Leonardo Rodrigues Magalhães
  0 siblings, 1 reply; 12+ messages in thread
From: Gary W. Smith @ 2007-08-25 17:38 UTC (permalink / raw)
  To: netfilter

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.



^ permalink raw reply	[flat|nested] 12+ messages in thread
[parent not found: <200708252302.l7PN2U2S011637@mail3.jubileegroup.co.uk>]

end of thread, other threads:[~2007-08-27 16:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-25 17:38 netfilter optimization Gary W. Smith
2007-08-25 17:57 ` Leonardo Rodrigues Magalhães
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox