We have a marvellous squid proxy with dansguardian for filetering and they both work just great.
Is there any easy way to limit the total bandwidth usage?
I'd like to set the max amount of squid users internet use to 1200 since our total band is 2000 and I need the rest to ensure other services such as voip to work without hiccups related to huge downloads on the "internet side" of our connection and similar issues.
I mean a total squid bandwidth limitation and not a user-based.
Fair thanks to everybody.
Best Answer
You could set up shaping with rules something like this:
Then you could use iptables to classify packets into these classes:
Note that it's the last matching rule that sets the class, it doesn't short-circuit when one rule matches. It took me a while to grok that.