Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: per-connection byte counts
Date: Sun, 18 Jan 2004 15:07:32 +0000	[thread overview]
Message-ID: <200401181507.32929.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <20040118144454.GA7660@kaufbach.delug.de>

On Sunday 18 January 2004 2:44 pm, Andreas Kretschmer wrote:

> am  Sun, dem 18.01.2004, um 14:09:03 +0000 mailte Adam Rice folgendes:
> > I'd like to be able to get per-connection byte-counts from the kernel, so
> > I can create a sort of top program showing what processes and users are
> > currently using the network and how much. Since I want this to be
> > something I
>
> ,----[  apt-cache show ipac-ng  ]
>
> | Description: IP Accounting for iptables( kernel >=2.4)
> |  Inserts iptables rules to classify network traffic and monitors these
> |  rules, writing the data to a file at a certain interval. It will then
> |  allow one to calculate IP accounting data and statistics.

But this will show statistics per rule, not per connection.   Anything which 
works in the rule tables, rather than the connection tracking table, will 
have this problem, because the rules don't distinguish between separate 
connections.

ie: if you have one rule allowing ftp transfers, you will see how much ftp 
traffic goes through the machine, but with all connections combined into a 
single value.

Even if you specify separate source and/or destination addresses in the rules, 
you still only see a combined value for all the connections which match.

I suspect Adam is looking for something which can provide per-connection 
accounting statistics similar to what CheckPoint FW-1 can show.

Regards,

Antony.

-- 
Ramdisk is not an installation procedure.

                                                     Please reply to the list;
                                                           please don't CC me.



  reply	other threads:[~2004-01-18 15:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-18 14:09 per-connection byte counts Adam Rice
2004-01-18 14:44 ` [despammed] " Andreas Kretschmer
2004-01-18 15:07   ` Antony Stone [this message]
2004-01-18 20:16 ` Carlos Carvalho
2004-01-19  0:14   ` bino-psn
2004-01-19  0:31     ` Antony Stone
2004-01-19  0:50       ` bino-psn
2004-01-19 23:59         ` Ted Kaczmarek
2004-01-19 14:27 ` Nuno Miguel Pais Fernandes
2004-01-20 22:12   ` Adam Rice
2004-01-27  1:56     ` Harald Welte

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=200401181507.32929.Antony@Soft-Solutions.co.uk \
    --to=antony@soft-solutions.co.uk \
    --cc=netfilter@lists.netfilter.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