Re: [squid-users] mime block

From: Henrik Nordstrom <[email protected]>
Date: Sat, 22 Oct 2005 10:12:26 +0200 (CEST)

On Fri, 21 Oct 2005, Anders Larsson wrote:

> Hi!
>
> im trying to block this mime and another below in acl..
>
> DIRECT/62.181.238.210 application/vnd.ms.wms-hdr.asfv1
>
> i got this in squid.conf
>
> ## reply
> acl streaming_rep rep_mime_type -i ^application/x-mms-framed$ ^application/vnd.ms.wms-hdr.asfv1$
> acl msn_rep rep_mime_type -i ^application/x-msn-messenger$
>
> #request
> acl streaming_req req_mime_type -i ^application/x-mms-framed$ ^application/vnd.ms.wms-hdr.asfv1$
> acl msn_req req_mime_type -i ^application/x-msn-messenger$
>
> http_access deny streaming_req msn_req
> http_reply_access deny msn_rep streaming_rep

The above won't mach.. the same request can't match both streaming_req and
msn_req..

   http://www.squid-cache.org/Doc/FAQ/FAQ-10.html

What you want is either to join the msn/streaming acls as one single acl,
or split your access lines like

http_reply_access deny msn_rep
http_reply_access deny streaming_rep

Read the above document for details.

Regards
Henrik
Received on Sat Oct 22 2005 - 02:12:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:05 MST