Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Léo Cavaillé" <chiron@via.ecp.fr>
To: netfilter@vger.kernel.org
Subject: [iptables] Implement huge amount of iptables make system crash
Date: Sun, 4 Dec 2011 14:34:20 +0100	[thread overview]
Message-ID: <20111204133420.GC12769@via.ecp.fr> (raw)

Hello everyone,

I recently tested a new environment to account some traffic on my
network with some iptables rules

1) I have got 2 rules (one for in and one for out stream) per IP I want
to account. Since I account some contiguous adresses I wondered if a
binary tree starting with the first IP of my /19 and then chaining
through different tables to reach a single IP leaf will result in a
logarithmic complexity rather than linear…
So far I am adding the whole set of rules with a perl script using
libiptc to commit only once the rules to netfilter.


2) These ~62k rules are not really significant for the load of my
firewall. But unfortunately, I had sometimes in my tests to manage some big 
failures, where an iptables command (-Z, -A or -L) is stuck on the system 
and then one of my cores is used at 100% and the load increases, and generally 
I get this kernel alert :
http://pastebin.com/F1DL7ZZT

Any advice, or explanation will be great for my new installation !

Thanks,

-- 
Léo Cavaillé

             reply	other threads:[~2011-12-04 13:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-04 13:34 Léo Cavaillé [this message]
2011-12-04 21:09 ` [iptables] Implement huge amount of iptables make system crash Jan Engelhardt
2011-12-05  0:07   ` Leo Cavaille
2011-12-05  1:11     ` Jan Engelhardt

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=20111204133420.GC12769@via.ecp.fr \
    --to=chiron@via.ecp.fr \
    --cc=netfilter@vger.kernel.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