LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Help with Squid Bandwidth (https://www.linuxquestions.org/questions/linux-networking-3/help-with-squid-bandwidth-524665/)

andybrr 02-01-2007 08:49 AM

Help with Squid Bandwidth
 
Hi all,

I need some help with Squid Bandwidth. I am trying to set bandwidth controlling with squid but I have some questions to experts like:

I have a link of 1024K and I want to allow no more than 1K for only "some" user when he will do the any download but the user "free" has no restriction to download.how can do this?

I have these rules

acl download url_regex -i "/usr/local/etc/download.txt"
acl free 192.168.1.2
acl some 192.168.1.3

http_access deny some download
http_access allow some

http_access allow free

######################
# delay_pools config
######################

delay_pools 1

delay_class 1 2
delay_parameters 1 -1/-1 100/100
delay_access 1 allow download

#
http_access deny all

Another question: When I set this acl and I try to do any search within www.google.com with any words that it is inside the download file, it will act as 1K also?

I hope if anyone can help me.

Anderson

Sertys 02-03-2007 11:48 PM

Well, first of all - delay pools are fuckin' lame! It's a classless bucket- looking discipline based on FIFO which is undisputable to use nowadays. It's very slow already. So just use some real kernel level discipline like HTB(preferably plus ESFQ qdiscs). By using delay pools, u only shape HTTP traffic, so anybody can fill-up your connection with a single azureus....

For just your second question - if u've got some url regexes like /\.mpg$|\.avi$|.exe$|\.mp3$/ , then any google search will not match , even if containing 'foo.exe', because it shall be url-encoded by your browser.


All times are GMT -5. The time now is 10:27 PM.