[squid-users] time ACL not working properly

From: Asim Ahmed _at_ Folio3 <_at_>
Date: Wed, 21 Oct 2009 19:25:50 +0500

Hi,

I have this external ACLs file included in squid.conf as "include
/etc/squid/mediatypes.list" rite after http_port 3128 transparent line.
The problem is that it is block every thing i listed but not following
the "time" ACL I've applied with it. Any idea what could be wrong here?

# Media Streams

acl MediaTypesBusinessHours time MTWHF 9:00-13:00
acl MediaTypesBusinessHours time MTWHF 14:30-19:00

## Active Stream Format (Windows Media Player)
acl media rep_mime_type video/x-ms-asf
acl mediapr urlpath_regex \.(afx|asf|asr|asx)(\?.*)?$

## Flash Video Format
acl media rep_mime_type video/flv video/x-flv
acl mediapr urlpath_regex \.flv(\?.*)?$

acl media rep_mime_type application/x-amf

acl media rep_mime_type video/mp4
acl mediapr urlpath_regex \.mp4(\?.*)?$

## Flash General Media Scripts (Animation)
#acl media rep_mime_type application/x-shockwave-flash
#acl mediapr urlpath_regex \.swf(\?.*)?$

acl media rep_mime_type video/x-msvideo
acl mediapr urlpath_regex \.avi(\?.*)?$

acl media rep_mime_type video/x-la-asf
acl mediapr urlpath_regex \.(lsf|lsx)(\?.*)?$

acl media rep_mime_type video/quicktime
acl mediapr urlpath_regex \.(qt|mov)(\?.*)?$

acl media rep_mime_type video/wmv
acl mediapr urlpath_regex \.wmv(\?.*)?$

acl media rep_mime_type video/mpeg
acl mediapr urlpath_regex \.(mp2|mpa|mpe|mpeg|mpg|mpv2)(\?.*)?$

## Others currently unknown
acl media rep_mime_type ms-hdr
acl media rep_mime_type x-fcs

http_access deny mediapr MediaTypesBusinessHours
http_reply_access deny media MediaTypesBusinessHours

-- 
Regards,
Asim Ahmed Khan
IT Manager,
Folio3 (Pvt.) Ltd. www.folio3.com
Direct: 92-21-4323721-4 Ext 110
Email: aahmed_at_folio3.com
Received on Wed Oct 21 2009 - 13:28:03 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 22 2009 - 12:00:03 MDT