Search squid archive

Re: time ACL not working properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 21 Oct 2009 19:25:50 +0500, "Asim Ahmed @ Folio3"
<aahmed@xxxxxxxxxx> wrote:
> Hi,
> 
> I have this external ACLs file included in squid.conf as "include 
> /etc/squid/mediatypes.list" rite after http_port 3128 transparent line. 

order relation to http_port is not important. What is important is where
it is included in order relation to all other http_access lines.

To see how squid views the config use:
  squidclient mgr:config

(with the manager password)

Squid will list all its http_access in the order it checks them.


> 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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux