I have configure delay pool in squid to restrict download speed for particular file extension like .exe, .iso etc... I have restrict download speed by using the LDAP user name. Delay pool is working fine. The problem is when the squish quota exceeds the delay pool is not working. Users can able to download files at full speed. If the quota not execeeds means delay pool working fine.
Kindly see my squid code
acl ldapauth proxy_auth REQUIRED
acl SQUISHLOC dst adminlinux
acl SQUISHED1 proxy_auth -i "/etc/squid/squished"
# acl SQUISHED2 ident "/etc/squid/squished"
acl SQUISHED3 src "/etc/squid/squished"
# Error info that says you're squished
#deny_info ERR_QUOTA_EXCEEDED SQUISHED1
# deny_info http://adminlinux/squish/?squished&
#deny_info ERR_QUOTA_EXCEEDED SQUISHED3
# HTTP access controls for squish
http_access allow SQUISHLOC
http_access deny SQUISHED1
# http_access deny SQUISHED2
http_access deny SQUISHED3
delay_class 1 1
delay_parameters 1 1000/1000
acl our_networks src 192.168.1.0/24
acl DelayDownload url_regex -i "/etc/delaydownload"
delay_access 1 allow DelayDownload
http_access allow ldapauth !SQUISHED1