All of lore.kernel.org
 help / color / mirror / Atom feed
* re: ip_conntrack_max vs ip_conntrack
@ 2004-09-27 17:52 Jiann-Ming Su
  2004-09-27 18:04 ` Jason Opperisano
  2004-09-27 18:57 ` Jose Maria Lopez
  0 siblings, 2 replies; 16+ messages in thread
From: Jiann-Ming Su @ 2004-09-27 17:52 UTC (permalink / raw)
  To: netfilter

I'd like to know what some of these proc paremeters mean as well. 
What we're experiencing is a SYN flood attack that's filling up the
connection tables.  What I'd like to do is change the timeout to 5
seconds, instead of the default 30 seconds.
-- 
Jiann-Ming Su
"I have to decide between two equally frightening options.  
                                            If I wanted to do that,
I'd vote." --Duckman


^ permalink raw reply	[flat|nested] 16+ messages in thread
* ip_conntrack_max vs ip_conntrack
@ 2004-09-24 22:34 Michal Ludvig
  2004-09-24 22:49 ` Stephen J Smoogen
  2004-09-28  7:59 ` Mohamed Eldesoky
  0 siblings, 2 replies; 16+ messages in thread
From: Michal Ludvig @ 2004-09-24 22:34 UTC (permalink / raw)
  To: netfilter

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

could someone please explain me what is the relation between the number
in /proc/sys/net/ipv4/ip_conntrack_max and number of lines in
/proc/net/ip_conntrack?

On one of our very loaded firewalls (with 1GB RAM) we are still getting
"ip_conntrack: table full, dropping packet." message. We tried to tweak
all different parameters, e.g. hashsize to up to 1048576,
ip_conntrack_max, ip_conntrack_tcp_timeout_established, etc.
Unfortunately sooner or later the kernel always starts dropping packets.
At the same time however there are at most a few thousands of lines in
/proc/net/ip_conntrack.

I instrumented the kernel to dump the same output via printk() once
ip_conntrack_count reaches ip_conntrack_max. When I set _max=128 and run
nmap through the firewall it of course very soon prints the "dropping
packets" message, but along with only 6 (=six!) lines of connections.
Where was the rest, 122 connections, lost? What does the
ip_conntrack_count actually count?

Thanks in advance!

Michal Ludvig
- --
SUSE Labs                    mludvig@suse.cz
(+420) 296.545.373        http://www.suse.cz
Personal homepage http://www.logix.cz/michal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBVKEQDDolCcRbIhgRAupGAKCF4F6Mvk0YARZMj5S21vI/95u71ACfWDn2
UVB5lEV0YC58et/rvFbJEEY=
=AryG
-----END PGP SIGNATURE-----


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

end of thread, other threads:[~2004-10-19 17:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-27 17:52 ip_conntrack_max vs ip_conntrack Jiann-Ming Su
2004-09-27 18:04 ` Jason Opperisano
2004-09-27 18:57 ` Jose Maria Lopez
2004-09-30 22:48   ` Jiann-Ming Su
2004-09-30 23:03     ` Jason Opperisano
2004-10-19 17:21     ` Jiann-Ming Su
  -- strict thread matches above, loose matches on Subject: below --
2004-09-24 22:34 Michal Ludvig
2004-09-24 22:49 ` Stephen J Smoogen
2004-09-30  9:59   ` Michal Ludvig
2004-09-28  7:59 ` Mohamed Eldesoky
2004-09-28 12:31   ` Alistair Tonner
2004-09-28 12:53     ` Ted Kaczmarek
2004-09-28 14:27   ` Jose Maria Lopez
2004-09-28 14:48     ` Mohamed Eldesoky
2004-09-28 15:19       ` Alistair Tonner
2004-09-30 11:30         ` Mohamed Eldesoky

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.