* ip_conntrack growing indefinitely
@ 2007-08-07 3:02 Alexander Fortin
0 siblings, 0 replies; 5+ messages in thread
From: Alexander Fortin @ 2007-08-07 3:02 UTC (permalink / raw)
To: netfilter
Hi everybody. We're running a couple of Debian Sarge machines with
2.4.31 kernel doing NAT for our network.
Recently we had troubles with lost packets because of full ip_conntrack
buffers, and it's strange because usually the average number of
connections is not more then 8000-10000.
For now it has been patched setting ip_conntrack_max to 65536 but
connections still grow indefinitely (seems NAT never drops old connections).
Any idea of the reasons? Could be related with the kernel version (2
years old) we're running?
Thanks
--
Alexander Fortin
IT Consultant
Informed Technology
E-mail: alieno@it.net.au
Ph: 08 9460 4888 Fax: 08 9460 4877
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ip_conntrack growing indefinitely
2007-07-30 11:32 ` delete conntrack entry - how fd4
@ 2007-08-11 7:38 ` fd4
2007-08-11 8:04 ` Eric Leblond
0 siblings, 1 reply; 5+ messages in thread
From: fd4 @ 2007-08-11 7:38 UTC (permalink / raw)
To: netfilter
> For now it has been patched setting ip_conntrack_max to 65536 but
> connections still grow indefinitely (seems NAT never drops old
> connections). Any idea of the reasons? Could be related with the kernel
> version (2 years old) we're running?
I've a similar phenomen using kernel 2.6.18-4-vserver-686 :
conntrack -L|wc -l
3340
nearly all started at a similar time from two ports to random
example iptstate:
Source Destination Proto State TTL
1.2.3.4:42573 1.2.3.4:842 tcp ESTABLISHED 10:44:43
1.2.3.4:42574 1.2.3.4:1501 tcp ESTABLISHED 10:43:51
1.2.3.4:42573 1.2.3.4:1392 tcp ESTABLISHED 10:43:20
well :- on my wish list now something like that:
conntrack -D -s 1.2.3.4 -d 1.2.3.4 -p tcp --orig-port-src 42573 --orig-port-dst *
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ip_conntrack growing indefinitely
2007-08-11 7:38 ` ip_conntrack growing indefinitely fd4
@ 2007-08-11 8:04 ` Eric Leblond
0 siblings, 0 replies; 5+ messages in thread
From: Eric Leblond @ 2007-08-11 8:04 UTC (permalink / raw)
To: fd4; +Cc: netfilter
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Le Sat, 11 Aug 2007 09:38:08 +0200,
fd4 <fd4@itsec4u.de> a écrit :
> > For now it has been patched setting ip_conntrack_max to 65536 but
>
> well :- on my wish list now something like that:
> conntrack -D -s 1.2.3.4 -d 1.2.3.4 -p tcp --orig-port-src 42573
> --orig-port-dst *
You should try this:
http://software.inl.fr/trac/trac.cgi/wiki/pynetfilter_conntrack
It does exactly what you want.
BR,
- --
Eric Leblond <eric@regit.org>
NuFW, Now User Filtering Works : http://www.nufw.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGvW2PnxA7CdMWjzIRAn4xAJsFD/7db/FCNw6iwTByznnY5PDpdACfdegE
pslZiNpAY6TtqT0F0Iw4HTw=
=6G59
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ip_conntrack growing indefinitely
[not found] <200708110801.l7B81Oj2025252@mail3.jubileegroup.co.uk>
@ 2007-08-11 10:19 ` G.W. Haywood
2007-08-12 6:23 ` fd4
0 siblings, 1 reply; 5+ messages in thread
From: G.W. Haywood @ 2007-08-11 10:19 UTC (permalink / raw)
To: netfilter
Hi there,
On Sat, 11 Aug 2007 fd4 wrote:
> > For now it has been patched setting ip_conntrack_max to 65536 but
> > connections still grow indefinitely (seems NAT never drops old
> > connections). Any idea of the reasons? Could be related with the
> > kernel version (2 years old) we're running?
>
> I've a similar phenomen using kernel 2.6.18-4-vserver-686 :
> conntrack -L|wc -l
> 3340
> nearly all started at a similar time from two ports to random
>
> example iptstate:
> Source Destination Proto State TTL
> 1.2.3.4:42573 1.2.3.4:842 tcp ESTABLISHED 10:44:43
> 1.2.3.4:42574 1.2.3.4:1501 tcp ESTABLISHED 10:43:51
> 1.2.3.4:42573 1.2.3.4:1392 tcp ESTABLISHED 10:43:20
>
> well :- on my wish list now something like that:
> conntrack -D -s 1.2.3.4 -d 1.2.3.4 -p tcp --orig-port-src 42573 --orig-port-dst *
I don't think it grows indefinitely. The timeout is five days.
http://lists.netfilter.org/pipermail/netfilter-devel/2005-June/020081.html
--
73,
Ged.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: ip_conntrack growing indefinitely
2007-08-11 10:19 ` G.W. Haywood
@ 2007-08-12 6:23 ` fd4
0 siblings, 0 replies; 5+ messages in thread
From: fd4 @ 2007-08-12 6:23 UTC (permalink / raw)
To: netfilter
Am Sat, 11 Aug 2007 11:19:08 +0100 (BST)
schrieb "G.W. Haywood" <ged@jubileegroup.co.uk>:
> I don't think it grows indefinitely. The timeout is five days.
about 11 hrs in that case :-)
(of course I've reduced the standard value)
and I've said a similar case - just wondering, cleaned it with conntrack -F
the growing to more than 3300 entries has started by an unknown local event triggering conntrack on local connections; I could not find any reason in the logs or somehow else. happened within a minute or 2 from 2 local ports
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-08-12 6:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-07 3:02 ip_conntrack growing indefinitely Alexander Fortin
[not found] <200708110801.l7B81Oj2025252@mail3.jubileegroup.co.uk>
2007-08-11 10:19 ` G.W. Haywood
2007-08-12 6:23 ` fd4
-- strict thread matches above, loose matches on Subject: below --
2007-07-28 12:38 libnetfilter_conntrack 0.0.81 release Pablo Neira Ayuso
2007-07-30 11:32 ` delete conntrack entry - how fd4
2007-08-11 7:38 ` ip_conntrack growing indefinitely fd4
2007-08-11 8:04 ` Eric Leblond
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox