[squid-users] Delay Pools Question

From: Nyamul Hassan <mnhassan_at_usa.net>
Date: Sun, 7 Dec 2008 13:15:12 +0600

Hi,

I've recently added two Class 1 delay pools to limit heavily downloaded
sites usually used for filesharing (rapidshare, megashare, megaupload etc.)
for certain times of the day / week, and it works like a charm!

I want to add delay pools for every individual host, but not on the network
or the agreegate level. I'm got 5 networks of /18 each. I read somewhere,
that delay pools for the "individual" part always see 192.168.0.247 and
192.168.1.247 as the same (the last 247 being the criteria for individual
selection). Can someone please help me out?

I've got the following IP4 blocks assigned on my network:

10.16.64.0/18
10.17.64.0/18
10.18.64.0/18
10.19.64.0/18
192.168.64.0/28

I do not want to limit the 10.16.x.x and 10.17.x.x blockes. For the
10.19.x.x and 192.168.x.x block, I would like to allow 25MB of unhindered
download, and after that limit to 128kbps and for the 10.18.x.x block, the
same would be 256 kbps / 50 MB.

So, would the following delay_parameters work:

acl gp1 src 10.18.64.0/18
acl gp2 src 10.19.64.0/18
acl gp2 src 192.168.64.0/18 (both 10.19.x.x and this one the same class of
BW)
delay_pools 2
delay_class 1 3
delay_class 2 3
delay_access 1 allow gp1
delay_access 2 allow gp2
delay_parameters 1 -1/-1 -1/-1 32000/50500500
delay_parameters 1 -1/-1 -1/-1 16000/25500500

Will this work?

Thank you all for your help / answers.

Regards
HASSAN
Received on Sun Dec 07 2008 - 07:15:37 MST

This archive was generated by hypermail 2.2.0 : Sun Dec 07 2008 - 12:00:02 MST