From: Kevin White <ml-kevin@kevbo.org>
To: netfilter@lists.netfilter.org
Subject: Connection stats logging?
Date: Mon, 03 May 2004 11:11:12 -0400 [thread overview]
Message-ID: <40966110.7090901@kevbo.org> (raw)
Hello all,
We had a firewall application using an old OpenBSD (2.9). One of the
things it did on NAT was log lines like this when connections closed:
Apr 29 23:25:46 si000AmerSh ipmon[3122]: 23:25:46.021102 STATE:CLOSE
216.65.19.55,53505 -> 192.168.0.82,25 PR tcp Pkts 60 Bytes 22144
We used this line to do statistics.
I'm trying to figure out how to get something similar with Netfilter.
Basically, what I need is a report of the connection: where it was to,
how many bytes and packets it had, when it closes.
I've looked at ulogd, but I'm not sure that would be ideal. Basically,
I'd have to build my own connection tracker DB to assign every packet
to, so I'd be at least doubling the memory footprint.
I'm wondering if there's something built in that I can get to to give me
these kinds of statistics. Or if I should be writing an extension.
(I'd like to get this data for every connection that goes through the
firewall.)
Thoughts, or pointers? I'm looking for input before I waste too much
time barking up the wrong tree.
Thanks,
Kevin
next reply other threads:[~2004-05-03 15:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-03 15:11 Kevin White [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-05-03 15:44 Connection stats logging? Kevin White
2004-05-07 17:53 Kevin White
2004-05-07 17:59 Kevin White
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=40966110.7090901@kevbo.org \
--to=ml-kevin@kevbo.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.