I’ve actually needed this a few times, but never found a good solution. I had a look around and found LINUBIA:
http://www.csg.uzh.ch/publications/software/linubia
There is a LINUBIA publication (that isn’t freely available):
http://www.springerlink.com/content/j883595680m85t1x/
It’s interestingly saying that:
Quote:
... proposes a prototypical implementation for the Linux 2.6 operating system, which is capable of providing per-user accounting for both the IPv4 and the IPv6 protocol.
|
I’ve not found much on how it’s been implemented, the API or any user space application that uses it. The first link has a link to a LINUBIA patch for kernel 2.6.17.
My Googling must be bad, as I would have expected there to be loads of user based IP accounting available for Linux. Very odd.