From: Martin Kraus <lists_mk@wujiman.net>
To: netfilter@vger.kernel.org
Subject: conntrackd, internal cache keeps filling up
Date: Mon, 5 May 2014 12:40:58 +0200 [thread overview]
Message-ID: <20140505104058.GA30297@finrod> (raw)
Hi.
I'm running conntrackd 1.2.1 on debian wheezy between two routers with
conntrackd external cache disabled.
After running for some time the states stop replicating due to conntrackd hitting
HashLimit in the internal cache. When I looked at it it's basically broadcast
and multicast connections that never time out even though they are no longer
in the conntrack tables on both routers. I filtered some of it out using
NOTRACK in iptables. That helped for a while but now it's back with
tcp LAST_ACK state.
tcp 6 LAST_ACK src=172.20.6.74 dst=172.20.20.23 sport=48818 dport=445 src=172.20.20.23 dst=172.20.6.74 sport=445 dport=48818 [ASSURED] [active since 249398s]
tcp 6 LAST_ACK src=172.20.6.119 dst=172.20.20.21 sport=55843 dport=80 src=172.20.20.21 dst=172.20.6.119 sport=80 dport=55843 [ASSURED] [active since 15458s]
tcp 6 LAST_ACK src=172.20.6.119 dst=172.20.20.21 sport=58573 dport=80 src=172.20.20.21 dst=172.20.6.119 sport=80 dport=58573 [ASSURED] [active since 7426s]
tcp 6 LAST_ACK src=172.20.6.119 dst=172.20.20.21 sport=57923 dport=80 src=172.20.20.21 dst=172.20.6.119 sport=80 dport=57923 [ASSURED] [active since 9946s]
tcp 6 LAST_ACK src=172.20.6.74 dst=172.20.20.23 sport=47560 dport=445 src=172.20.20.23 dst=172.20.6.74 sport=445 dport=47560 [ASSURED] [active since 252927s]
There's thousands of these entries and in a few days they'll fill up the
internal cache and break internal routing.
My understanding was that the internal cache is a copy of the kernel conntrack
table on each router so it should not be larger then the current conntrack
table plus some information about terminated connections that need to be
synced to the other router.
How are the entries in internal cache purged? Most of them seem to be deleted
when the connection is terminated but some of the just keep hanging around.
thanks for help
Martin
next reply other threads:[~2014-05-05 10:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 10:40 Martin Kraus [this message]
2014-05-09 11:31 ` conntrackd, internal cache keeps filling up Pablo Neira Ayuso
2014-05-10 6:17 ` Martin Kraus
2014-05-12 16:35 ` Pablo Neira Ayuso
2014-05-13 11:45 ` Martin Kraus
2014-05-13 12:04 ` Florian Westphal
2014-05-13 12:55 ` Pablo Neira Ayuso
2014-05-13 12:40 ` Pablo Neira Ayuso
2014-05-13 14:57 ` Martin Kraus
2014-07-11 16:27 ` Martin Kraus
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=20140505104058.GA30297@finrod \
--to=lists_mk@wujiman.net \
--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 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.