On Wed, Mar 03, 2004 at 04:38:12PM -0800, Roop Nanuwa wrote:

>       Is there any way to get live (or even just logged) monitoring of 
> bandwidth
> usage by user instead of just an aggregate amount for the entire 
> machine/interface?

Not easily.  ipfw(8) has a 'uid' option in it's packet matching rules,
which you might be able you use to select the traffic from one user,
and then push that (or logging information about that traffic) into
some sort of analysis program.  But that's going to take a mite of
programming to get anything working.

Most ISPs who bill on the amount of network traffic will arrange for
each of their user accounts to use a separate IP number: jail(8) can
be very handy for doing that.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to