You may find the Debian package ipac-ng very useful if you don't want to write your own scripts to handle all the ip accounting.
I don't think it'll do per-user on a single host (what can?!?) but certainly per-ip. -- Craig Ringer IT Manager, POST Newspapers http://www.postnewspapers.com.au/ http://oberthur.dyndns.org/~craig/ GPG Key Fingerprint: AF1C ABFE 7E64 E9C8 FC27 C16E D3CE CDC0 0E93 380D
msg05056/pgp00000.pgp
Description: PGP signature