netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Douglas Diniz <dgdiniz@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: ip_conntrack_count not decremented - nf_conntrack: table full, dropping packet
Date: Tue, 9 Feb 2010 16:30:29 -0200	[thread overview]
Message-ID: <5415ae081002091030u114b0bf4nbdcf75ba5a5addf6@mail.gmail.com> (raw)

Hi, I'm facing a problem with netfilter.

My system (a ppc terminal) is:

Linux 2.6.20-6, cross compiled to ppc (ltib) with Real Time Patch.

The terminal has 2 ethernet interfaces (eth0 (192.168.1.0)  and eth1
(192.168.229.0)), and a Wifi interface (ath0 (10.1.1.0)).

After some hours of work the terminal show the message "nf_conntrack:
table full, dropping packet" and I can see that the terminal reaches
the connection limit (4096).

After some debug i saw that the problem only appears when a send some
packet (a ping im my tests) from eth0 (from my pc connected in this
interface) to eth1, to a not used ip in eth1 network (192.168.229.100
for example).  If I send a ping from eth0 to ath0, or from ath0 to
eth0, or from ath0 to eth1, there is no problem. In this cases
ip_conntrack_count is decremented after the timeout.

When I send a ping from eth0 to eth1 I can see the connection in
/proc/net/ip_conntrack, and after the timeout (30s for icmp) the entry
is removed from this table, but the counter in
/proc/sys/net/ipv4/netfilter/
ip_conntrack_count is not decremented.

I insert some printk's in the code and I see that when the timeout
function is called (death_by_timeout), the "use" reference counter (in
the conntrack structure) is > 1, so the "nf_conntrack_put" never call
the "destroy_conntrack"

In the other cases (eth0->ath0, ath0->eth0, ath0->eth1) when the
death_by_timeout is called, the "use" counter is 1, so the
"nf_conntrack_put" call the "destroy_conntrack" and the
ip_conntrack_count is decremented.

For some reason there is a conflict between the ethernet interfaces.

This is a known bug? I cannot change the kernel in this moment. There
is something I can do to fix this problem?

Thanks......
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2010-02-09 18:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5415ae081002091030u114b0bf4nbdcf75ba5a5addf6@mail.gmail.com \
    --to=dgdiniz@gmail.com \
    --cc=netfilter-devel@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;
as well as URLs for NNTP newsgroup(s).