From: Eric Dumazet Subject: Re: nf_conntrack_count versus '/proc/net/nf_conntrack | wc -l' count Date: Thu, 18 Feb 2010 19:07:32 +0100 Message-ID: <1266516452.2877.12.camel@edumazet-laptop> References: <48ceaa831002150927q166b5955gfa0e1e465903d29d@mail.gmail.com> <1266264287.2859.0.camel@edumazet-laptop> <48ceaa831002151308y5bb2606n2058599f3ec4b82@mail.gmail.com> <1266270757.2859.27.camel@edumazet-laptop> <48ceaa831002151400q4178d121h28887cfdf6625499@mail.gmail.com> <1266271377.2859.28.camel@edumazet-laptop> <48ceaa831002151410j1dbdfce3tcbdb5ceaa86b0e2b@mail.gmail.com> <48ceaa831002180940y65af65b4p5d887f2f1a50b4b@mail.gmail.com> <1266515463.2877.10.camel@edumazet-laptop> <48ceaa831002180955v4fd87e20o4e116c87f4f4b259@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Jan Engelhardt , Patrick McHardy , netfilter-devel@vger.kernel.org To: Afi Gjermund Return-path: Received: from mail-bw0-f209.google.com ([209.85.218.209]:60557 "EHLO mail-bw0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524Ab0BRSHj (ORCPT ); Thu, 18 Feb 2010 13:07:39 -0500 Received: by bwz1 with SMTP id 1so417489bwz.21 for ; Thu, 18 Feb 2010 10:07:37 -0800 (PST) In-Reply-To: <48ceaa831002180955v4fd87e20o4e116c87f4f4b259@mail.gmail.com> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Le jeudi 18 f=C3=A9vrier 2010 =C3=A0 09:55 -0800, Afi Gjermund a =C3=A9= crit : > On Thu, Feb 18, 2010 at 9:51 AM, Eric Dumazet wrote: > > Le jeudi 18 f=C3=A9vrier 2010 =C3=A0 09:40 -0800, Afi Gjermund a =C3= =A9crit : > >> I am still trying to figure out why the nf_conntrack_count differs > >> from the table system. I decided I would use the conntrack usersp= ace > >> tools. > >> Both of my NICs are unplugged with no other userspace applications > >> running to affect connection tracking counts. > >> > >> > >> root@titan ~# date > >> Thu Feb 18 17:35:21 UTC 2010 > >> > >> root@titan ~# ./conntrack -C conntrack > >> 351 > >> > >> root@titan ~# date > >> Thu Feb 18 17:35:24 UTC 2010 > >> > >> root@titan ~# ./conntrack -F conntrack > >> conntrack v0.9.14 (conntrack-tools): connection tracking table has= been emptied. > >> > >> root@titan ~# date > >> Thu Feb 18 17:35:31 UTC 2010 > >> > >> root@titan ~# ./conntrack -C conntrack > >> 351 > >> > >> root@titan ~# date > >> Thu Feb 18 17:35:36 UTC 2010 > >> > >> Shouldn't the value after the flush be 0? The traffic that has cre= ated > >> this mess is from a REDIRECT rule in the PREROUTING chain of the '= nat' > >> table. > > > > Could you post a copy of these rules ? > > > > Thanks > > > > > > > iptables -t nat -A PREROUTING -p tcp -s X.X.X.X -d X.X.X.X --sport X > --dport X -j REDIRECT --to-port X Yes I understood you were using such rules, but I cannot understand how it can trigger without real nics being plugged. So I asked you some details, apprently you dont want to provide them and prefer to hide fro= m us :) -- To unsubscribe from this list: send the line "unsubscribe netfilter-dev= el" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html