I'm running a proxy server for myself and a few mates. It has a few different proxy applications on it, a socks 5 proxy, a http proxy, etc. I don't necessarily want to put traffic quotas on each user, but i do want to figure out how to do that if it becomes necessary. At this point I can't even tell which user is using which traffic. What i want is just like a graph view of each username and the associated amount of network traffic tied to that account. I know you may be thinking that this won't account for proxy traffic because the instances spawned of the proxy servers are not owned by the users that are connecting to the service, but that doesn't matter because i require everyone to connect through ssh tunnels. So i can just monitor the amount of traffic generated for each user in sshd and that would be accurate.
I looked a bit at the iptables documentation, but this doesn't seem well suited to my needs. i mean it has a match extension called "owner" that would let me test for traffic for a specific user, but i don't want to be updating my firewall script as i add and remove users.
so, any suggestions?