Subject: Re: How do you account ip bandwidth?
To: Amadeus <poff@sixbit.org>
From: Carl Brewer <carl@bl.echidna.id.au>
List: netbsd-users
Date: 06/02/2004 22:57:27
Amadeus wrote:

> Hello all,
> 
> I was wondering how any of you do "accounting" on your networks connected 
> to the internet.
> 
> For example I have one netbsd gateway to the internet, connected to some 
> client machines.
> 
> I have been asked previously to give a list of bandwidth consumption for 
> each machine (ip address).
> 
> 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