[squid-users] delay_pools problem [[more info]]

From: kfliong <[email protected]>
Date: Fri, 24 Dec 2004 09:58:29 +0800

Hi,

I tried to use delay_pools to control the speed of some users but somehow
it doesn't work. Particularly delay_access 5. Those users in delay_access 5
need to be running at only 1k/s but somehow this speed limit is not
imposed. Please help.

Here is my squid.conf for delay_pool :

delay_pools 5

delay_class 1 2
delay_class 2 2
delay_class 3 2
delay_class 4 2
delay_class 5 1

delay_access 1 allow local_access
delay_access 1 deny all

#delay_access 2 for fast_user and sites
delay_access 2 allow fast_user
delay_access 2 allow high_speed !slow_user2
delay_access 2 allow fast_sites !slow_sites
delay_access 2 deny all

#delay_access 3 for mid_speed users
delay_access 3 allow mid_speed !slow_user2
delay_access 3 deny all

#delay_access 4 for low_speed and slow sites
delay_access 4 allow low_speed !slow_user2
delay_access 4 deny all

#delay_acess 5 for very slow speed
delay_access 5 allow slow_sites
delay_access 5 allow slow_user2
delay_access 5 deny all

delay_parameters 1 -1/-1 -1/-1
delay_parameters 2 64000/64000 32000/32000
delay_parameters 3 32000/32000 18000/25000
delay_parameters 4 8000/8000 3750/3750
delay_parameters 5 1000/1000

Sorry forgot to add the ACL list :

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563 2087
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
acl wofscom src 192.168.10.1-192.168.10.248
acl low_speed src 192.168.10.32-192.168.10.250
acl mid_speed src 192.168.10.16-192.168.10.31
acl high_speed src 192.168.10.1-192.168.10.15
acl IM_ips dst 205.188.213.0/255.255.255.0 207.46.104.0/255.255.255.0
64.4.13.0/255.255.255.0 216.166.74.0/255.255.255.0
acl IM_urls dstdomain .icq.com .messenger.hotmail.com .messenger.yahoo.com
.msg.yahoo.com .sc5.yahoo.com .scd.yahoo.com .update.pager.yahoo.com
filetransfer.yahoo.com webcam.yahoo.com webmessenger.msn.com
acl fast_sites dstdomain .gettyimages.com
acl slow_sites dstdomain .friendster.com uw.netroasia.com .rottentomatoes.com
acl fast_user src 192.168.10.151/255.255.255.255
acl direct_proxy dst 216.12.213.201/255.255.255.255
acl direct_access_websites dstdomain .google.com .yahoo.com
acl slow_user2 srcdomain jackye marcus
acl wofs_destination dst 192.168.10.1-192.168.10.248
acl local_access url_regex -i 192.168.10
no_cache deny QUERY

Hope there's enough info here to help out.

Thanks in advance.
Received on Thu Dec 23 2004 - 19:03:21 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:03 MST