All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bart Duchesne <bd@able.be>
To: netfilter@lists.netfilter.org
Subject: iptables performance
Date: Thu, 15 Feb 2007 20:48:55 +0100	[thread overview]
Message-ID: <1171568935.13409.26.camel@burnout.office.dyndaco.com> (raw)

Hi,

We are running kernel 2.6.17 and using iptables 1.3.5 and are observing
a performance problem.

We have a netfilter firewall consisting of about 800 Chains and a total
of 10000 rules (iptables -nvL | wc -l).

A single iptables manipulation takes about 4 seconds (on a PIV 2Ghz with
1Gb DDR2 ram).

With the same firewall config (on slower hardware) in a 2.4.24 kernel
with iptables 1.2.9 the single iptables manip takes about 500ms.

I traced the iptables command in 2.6.17 and noticed that the 4 seconds
are actually lost in the setsockopt call to write the BLOB back to the
kernel (BLOB size 2Mb ; 11000 entries).

Does anyone has any idea what might be causing this slowdown ?
Has the kernel interface part changed dramatically between 2.4 and 2.6 ?
Is it correct to say that no traffic will pass through in those 4
seconds that the filter is updated ?


regards,

Bart Duchesne 

--
Visit CeBIT 2007 – March 15-21, 2007 – Messe, Hannover, Germany – Security Hall, Hall 7 Booth C20 and Banking and Finance Hall, Hall 17, Booth A01. For additional information, please visit the event section of VASCO's website http://www.vasco.com/events.

Infosecurity.be / Storage Expo 
Belgium 21 & 22 March 2007 Brussels Kart
http://www.infosecurity.be   http://www.storage-expo.be  http://www.linuxworldexpo.be
 


---------------------------------------------------
aXs GUARD has completed security and anti-virus checks on this e-mail (http://www.axsguard.com)
---------------------------------------------------
Able NV: ond.nr 0457.938.087
RPR Mechelen



             reply	other threads:[~2007-02-15 19:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-15 19:48 Bart Duchesne [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-25 19:20 iptables performance Martin Schiøtz
2005-05-25 21:25 ` Jason Opperisano
2005-05-26  9:22   ` Martin Schiøtz
     [not found] <4104105C.4040306@switzer.org>
2004-07-30  8:15 ` IPTables Performance Harald Welte

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=1171568935.13409.26.camel@burnout.office.dyndaco.com \
    --to=bd@able.be \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.