LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Squid Delay pool help. (https://www.linuxquestions.org/questions/linux-newbie-8/squid-delay-pool-help-824933/)

landysaccount 08-08-2010 11:14 AM

Squid Delay pool help.
 
Hello.

Lately I've been experiencing that our internet connection has being crawling. I noticed some users like to download movies, videos, and a lot of other content that kills our internet bw. I've been thinking of throtle every user in our network. I've tried it in the past with tc but, when I run squid I can't get it to do its job. If I do NOT run squid and just do a normal forward from internet to our lan and viceversa the tc shaping works great throtling the speed or bw to each user I config... Now, I would like to give it a try with squid and delay pools but, after reading some documentations, it has confused me. I learned that there are three pools or classes. Can you please guide me to where I can find info on how to throtle users with delay pools?

I would like to assign each user or ip 512kbps / 128kbps and don't want any to borrow from any other..

Thanks in advanced for your help.

zootboy 08-08-2010 11:40 AM

May I suggest that you read this section of the documentation:
http://www.deckle.co.za/squid-users-...ond_Pool_Class

It seems to describe exactly what you want. But here's a breakdown of the code:

Code:

acl all src 0.0.0.0/0.0.0.0              ## APPLIES TO ALL IPS ON THE NETWORK ##
delay_pool_count 1                      ## ONLY ONE KIND OF DELAY POOL USED ##
delay_class 1 2                          ## USE A CLASS 2 POOL (PER-IP RESTRICTION) ##
delay_parameters 1 12500/12500 2500/2500 ## OVERALL LIMIT AND PER-IP LIMIT ##
delay_access 1 allow all                ## ENABLE THE DELAY POOL ##



All times are GMT -5. The time now is 07:11 AM.