From: Bob Miller <bob@computerisms.ca>
To: Eric Leblond <eric@regit.org>
Cc: netfilter@vger.kernel.org
Subject: Re: iptaccount vs nfacct
Date: Thu, 13 Feb 2014 09:43:40 -0800 [thread overview]
Message-ID: <1392313420.30958.690.camel@worklian> (raw)
In-Reply-To: <1392281738.17306.91.camel@ice-age2.regit.org>
Hi Eric,
> I wrote this some time ago to explain how you can connect nfacct and
> ulogd2:
> https://home.regit.org/2012/07/flow-accounting-with-netfilter-and-ulogd2/
> One advantage of nfacct combined to ulogd is that you can use ulogd2
> connector to graphite:
> https://home.regit.org/2012/12/visualize-netfilter-accounting-in-graphite/
Thank you very much for your reply, much appreciated :) I did come
across that page earlier, but perhaps didn't give it the attention I
should have. Now that the whole idea has been swimming around my head a
couple days it makes more sense to me.
One thing I am not clear on from your page is per-IP statistics.
Specifically the reason I use bandwidth accounting at all is to identify
abusers or heavy usage in a local network (mostly to keep my ISP honest
and bandwidth overage to a minimum).
If I understand the examples correctly, then I would need to set up an
nfacct table for each IP in the subnet, and then create a matching rule
for each table in iptables. As opposed to the ACCOUNT target where if I
create a rule matching a subnet, it outputs stats for every IP in the
subnet.
Am I understanding correctly? or is there an easier way to gather the
per-IP statistics using nfacct?
next prev parent reply other threads:[~2014-02-13 17:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-13 0:47 iptaccount vs nfacct Bob Miller
2014-02-13 8:55 ` Eric Leblond
2014-02-13 17:43 ` Bob Miller [this message]
2014-02-13 19:55 ` Eric Leblond
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=1392313420.30958.690.camel@worklian \
--to=bob@computerisms.ca \
--cc=eric@regit.org \
--cc=netfilter@vger.kernel.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