I have setup squid 2.6 on my centos server. It works perfect with my dansguardian. I have one question regarding my delay pools seems dont works for my defined ACL perdanet (acl perdanet src 172.16.5.0/255.255.255.0) but it works if I point to all (acl all src 0.0.0.0/0.0.0.0).

can anyone pls advise what is wrong with my squid.conf? i,m really new to squid and have no experience on it. I,ve been trying for a week play around with the setting but found no changes. really appreciate if someone can share the solution on this. Thanks



here is my squid.conf:

http_port 3128 transparent
hierarchy_stoplist cgi-bin ?

acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 256 MB
maximum_object_size 4096 KB
cache_dir ufs /var/spool/squid 1024 16 256
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320


acl localhost src 127.0.0.1/255.255.255.255
acl perdanet src 172.16.5.0/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl to_localhost dst 127.0.0.0/8

acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT


http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl Badsites url_regex "/usr/local/etc/restricted-sites.squid"
http_access deny Badsites
http_access allow localhost
http_access allow perdanet
http_access deny all

http_reply_access allow all
cache_effective_user squid
cache_effective_group squid
visible_hostname localhost
store_avg_object_size 13 KB


# Delay Pools
delay_pools 1
delay_class 1 3
delay_access 1 allow perdanet
delay_parameters 1 5000/64000 5000/64000 5000/64000

delay_initial_bucket_level 50
coredump_dir /var/spool/squid