Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Martin Tomasek <mtd@mk.cvut.cz>
To: Jan Humme <jan.humme@xs4all.nl>
Cc: netfilter@lists.samba.org
Subject: Re: advanced ip accounting
Date: Fri, 5 Jul 2002 13:46:00 +0200	[thread overview]
Message-ID: <20020705114600.GA4851@mt.mk.cvut.cz> (raw)
In-Reply-To: <02070513000901.14428@Lms>

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

> How about using the "IP accounting" facility of iptables? Try:
> 
> #iptables -A FORWARD -s 1.2.0.0/16
> 
> i.e. without the -j option, to create a counter, and use
> 
> #iptables -L -v
> 
> to read out the results.

Thanks, but you are writing about something different.

Counters are good, but I must
be able to see for all ips byte counts on any port or protocol, which
is specified _after_ byte counts are recorded. I must store it into
database and select specific port, ip and/or protocol by database query.

So I'm asking about accounting _target_, which will allow me to collect
all the data without sending one packet to userspace immediately after
rule matches (as -j ULOG does). pcap is unusable for me too.

I heard, that something like this exists (or existed ;-), but couldn't
find anything about it.

-- 
Martin Tomasek, mtd@email.cz
BOFH excuse #30:
positron router malfunction

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2002-07-05 11:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-05  7:45 advanced ip accounting Martin Tomasek
2002-07-05 11:00 ` Jan Humme
2002-07-05 11:06   ` Wiktor Wodecki
2002-07-05 11:46   ` Martin Tomasek [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=20020705114600.GA4851@mt.mk.cvut.cz \
    --to=mtd@mk.cvut.cz \
    --cc=jan.humme@xs4all.nl \
    --cc=netfilter@lists.samba.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