Iptables tracking download usage

Damien Elmes clug at repose.cx
Sun Nov 3 21:56:43 EST 2002


Damien Elmes <clug at repose.cx> writes:

> Google for "per user ip accounting". I don't think there is functionality in
> the standard kernel to deal with it.

Sorry, just to clarify:

* for determining which user on one machine contributed to the traffic, you
  need a kernel patch

* for accounting based on machines (ie machine A did this much traffic), it's
  pretty easy with ipchains/tables

* for accounting based on machine + login duration, you're probably going to
  have to write your own. you'd need to determine how long the user was logged
  in to the PDC and account for all their traffic during this time. maybe it's
  been done, but if has been, it doesn't jump out with some simple searching.
  be prepared to get your hands dirty in your scripting language of choice ;-)

Regards,
-- 
Damien Elmes



More information about the linux mailing list