Throttling bandwidth on a per group basis

Posted by Robreylen on Server Fault See other posts from Server Fault or by Robreylen
Published on 2013-11-01T09:19:16Z Indexed on 2013/11/01 9:58 UTC
Read the original article Hit count: 203

Filed under:
|
|
|

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.

© Server Fault or respective owner

Related posts about networking

Related posts about iptables