Subject: Re: How do you account ip bandwidth?
To: None <netbsd-users@NetBSD.org>
From: Daniel Cox <dc@microbits.com.au>
List: netbsd-users
Date: 06/03/2004 10:32:51
IPF count rules recorded by (IPA) http://ipa-system.sourceforge.net/ work =
really well for me.

>>> Carl Brewer <carl@bl.echidna.id.au> 06/02/04 22:26 PM >>>
Amadeus wrote:

> Hello all,
>=20
> I was wondering how any of you do "accounting" on your networks =
connected=20
> to the internet.
>=20
> For example I have one netbsd gateway to the internet, connected to =
some=20
> client machines.
>=20
> I have been asked previously to give a list of bandwidth consumption =
for=20
> each machine (ip address).
>=20
> Can anyone shed any light on this for me?

You can certainly use IP filter's 'count' feature, with a
bit of scripting.  Just be aware that IPF resets its counters
when it restarts or reloads a ruleset, so you'll need to have
scripts that take that into account.  I did this for a
client site and it works a treat.

Carl