Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Eric Leblond <eric@inl.fr>
To: Paul Evans <paul@mxtelecom.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Atomic get-and-watch of conntrack table
Date: Mon, 01 Jun 2009 22:28:58 +0200	[thread overview]
Message-ID: <1243888138.6398.11.camel@ice-age> (raw)
In-Reply-To: <20090601183600.579332c1@nacelle.mxtelecom.com>

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

Hello,

Le lundi 01 juin 2009 à 18:36 +0100, Paul Evans a écrit :
> I'd like to write a long-running program that regularly reports
> statistics on conntrack usage (total number of connections, number of
> NATs, etc...). To do this, the program needs to start up, grab the
> current state of the table, and be informed of updates.

You could use ulogd-2 which has the ability of following the conntrack.
It can dump conntrack information inside a database and you can query it
to get your data. By using a custom SQL procedure (or custom output
plugin), you can even output what you want.

An other possibility is to use conntrackd which has a statistic mode.

Link:
ulogd2: http://www.netfilter.org/projects/ulogd/
conntrackd: http://conntrack-tools.netfilter.org/manual.html

BR,
-- 
Eric Leblond <eric@inl.fr>
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/

[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2009-06-01 20:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-01 17:36 Atomic get-and-watch of conntrack table Paul Evans
2009-06-01 20:28 ` Eric Leblond [this message]

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=1243888138.6398.11.camel@ice-age \
    --to=eric@inl.fr \
    --cc=netfilter@vger.kernel.org \
    --cc=paul@mxtelecom.com \
    /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