Linux Netfilter discussions
 help / color / mirror / Atom feed
* [iptables] Implement huge amount of iptables make system crash
@ 2011-12-04 13:34 Léo Cavaillé
  2011-12-04 21:09 ` Jan Engelhardt
  0 siblings, 1 reply; 4+ messages in thread
From: Léo Cavaillé @ 2011-12-04 13:34 UTC (permalink / raw)
  To: netfilter

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é

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-05  1:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-04 13:34 [iptables] Implement huge amount of iptables make system crash Léo Cavaillé
2011-12-04 21:09 ` Jan Engelhardt
2011-12-05  0:07   ` Leo Cavaille
2011-12-05  1:11     ` Jan Engelhardt

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