Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2004 08:34:29 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Roop Nanuwa <roop@hqst.com>
Cc:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: Monitoring bandwidth usage by user
Message-ID:  <20040304083429.GD42340@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <40467A74.1060107@hqst.com>
References:  <40467A74.1060107@hqst.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--/3yNEOqWowh/8j+e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=20
> bandwidth
> usage by user instead of just an aggregate amount for the entire=20
> 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.

	Cheers,

	Matthew

--=20
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

--/3yNEOqWowh/8j+e
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFARuoVdtESqEQa7a0RAtEdAJ0cB8mvjSNhP2RxJEK+/yU+PGlpyQCfWyIE
DxUdG9X8Hy6RcNmknid9ixs=
=hGFo
-----END PGP SIGNATURE-----

--/3yNEOqWowh/8j+e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040304083429.GD42340>