Hello,
We going to implement delay_pools on a Sun Ultra 60 running Solaris 8
running squid 2.5STABLE2. I think I've got delay_pool's using time or src
based acl's working fine (those are included at the end of this post).
However I haven't figured out how to assign a specific delay pool (pool 1
which is acl "notdelayed1") to users downloading pdf and doc's from our
website. The following acl's ignore the "mydomain" acl and just give
pdf/doc's from *any* domain the delay_parameters for delay pool 1 (named
notdelayed1). For any other file type from our site or any other site, most
users should fall under the "delayed" delay_pool (M-F 8-5pm). Any ideas how
to restrict the pdf/doc delay_pool to just our domain?
acl notdelayed1 urlpath_regex -i \.pdf$ \.doc$
acl mydomain dstdomain www.mydom.com
http_access allow mydomain notdelayed1
delay_access 1 allow notdelayed1
delay_access 1 deny all
delay_parameters 1 206000/206000 16000/51200
thanks,
Adam
-------------------------
In addition to the squid config lines above, these are the other lines
pertaining to delay pools (these *seem* to work ok but suggestions for
improvements are of course welcome):
acl delayed time MTWHF 8:01-17:30
acl notdelayed3 time SA 8:01-17:30
acl notdelayed3 time SMTWHFA 17:31-23:01
acl notdelayed3 time SMTWHFA 0:02-8:00
acl notdelayed2 src 192.168.2.10 192.168.1.2 192.168.23.39 192.168.2.3
http_access allow localnets delayed
http_access allow localnets notdelayed2
http_access allow localnets notdelayed3
http_access deny all
delay_pools 4
delay_class 1 2
delay_class 2 2
delay_class 3 2
delay_class 4 2
delay_access 2 allow notdelayed2
delay_access 2 deny all
delay_access 3 allow notdelayed3
delay_access 3 deny all
delay_access 4 allow delayed
delay_access 4 deny all
delay_parameters 2 206000/206000 16000/51200
delay_parameters 3 206000/206000 16000/51200
delay_parameters 4 206000/206000 8120/51200
Received on Wed Apr 09 2003 - 17:28:39 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:53 MST