Throttling bandwidth on a per group basis
- by Robreylen
I am wondering if it is possible to create a bandwidth shaping/throttling script that shapes traffic based on user group. That is, if user1, user2, are in user group group1, they will have 1mb/s download and 1mb/s upload, whilst if user3 and user4 are in group2, they will have 256kb/s download and 256kb/s upload.
I've read a bit about this and I found some iptables and TC implementations of a per user solution, but I have not seen anything for a user group.
Hopefully it can be simply implemented in form of a custom iptables rules and script running with TC or the like. Here is a script I was looking into that does a system wide throttle: http://atmail.com/kb/2009/throttling-bandwidth/
I assume it is possible to do user group throttling since it is possible for throttling on a per user basis.
Thanks for any info you can provide for this question.