On Thursday 23 April 2009 11:58:37 Leandro Moreira wrote:
> William,
> Testei sua acl e nao deu cert, esta funcionado da seguinte forma:
>
> acl streaming url_regex -i "/etc/squid3/acls/mimeaplicativo"
> http_access deny streaming
>
> acl proibir_musica urlpath_regex -i \.aif$ \.aifc$ \.aiff$ \.asf$ \.asx$
> \.avi$ \.au$ \.m3u$ \.med$ \.mp3$ \.m1v$ \.mp2$ \.mp2v$ \.mpa$ \.mov$
> \.mpe$ \.mpg$ \.mpeg$ \.ogg$ \.pls$ \.ram$ \.ra$ \.ram$ \.snd$ \.wma$
> \.wmv$ \.wvx$ \.mid$ \.midi$ \.rmi$
> http_access deny proibir_musica
>
>
> # vi /etc/squid3/acls/mimeaplicativo
>
> ^application/octet-stream$
> ^application/octet-stream
> ^application/x-mplayer2$
> ^application/x-mplayer2
> ^application/x-oleobject$
> ^application/x-oleobject
> ^application/x-pncmd
> ^video/x-ms-asf$
> ^application/vnd.ms.wms-hdr.asfv1$
> ^application/x-mms-framed$
> ^application/streamingmedia$
> ^audio/mid$
> ^video/mpeg$
> ^application/x-msn-messenger$
> ^video/x-ms-wmv$
> ^audio/x-realaudio$
> ^video/x-ms-asx$
> ^video/x-ms-wvx$
> ^video/flv
> ^video/flv
> ^.*mms.*
> ^.*x-ms-asf.*
> ^mms://
>
> Estou testando com proxy manual, acredito que deveria funcionar tb,
> coloquei
>
> acl streaming url_regex -i "/etc/squid3/acls/mimeaplicativo"
> http_access deny streaming
>
> Antes de todas as liberações do meu squid.conf
>
> 2009/4/23 William da Rocha Lima <wroc...@hotmail.com>
>
> >  Henry,
> >
> > Pode usar esta:
> >
> > acl deny_streaming url_regex -i "/etc/squid/internet/deny_streaming"
> >
> > ### CONTEUDO ###
> > ^application/octet-stream$
> > application/octet-stream
> > ^application/x-mplayer2$
> > application/x-mplayer2
> > ^application/x-oleobject$
> > application/x-oleobject
> > application/x-pncmd
> > ^video/x-ms-asf$
> > ^application/vnd.ms.wms-hdr.asfv1$
> > ^application/x-mms-framed$
> > ^application/streamingmedia$
> > ^audio/mid$
> > ^video/mpeg$
> > ^application/x-msn-messenger$
> > ^video/x-ms-wmv$
> > ^audio/x-realaudio$
> > ^video/x-ms-asx$
> > ^video/x-ms-wvx$
> > ^video/flv
> > video/flv
> > ^.*mms.*
> > ^.*x-ms-asf.*
> > mms://
> >
> > Não tem falha, a melhor é deixa o youtube liberado. Quando o usuário vai
> > seco ver um video e da o erro de vido indisponivel :)
> >
> > Abs,
> > *
> > William da Rocha Lima
> > wroc...@hotmail.com

utilizando  http_access e url_regex não irá funcionar nunca mesmo. 
vc teria que utilizar acls do tipo rep_mime_type e access do tipo 
http_reply_access  para tratar mimes - igual ao primeiro link que eu lhe 
forneci. ah, e retire os (^)e os  ($)  da lista de  mimes. 

[ ]s, Henry. 


--
To UNSUBSCRIBE, email to debian-user-portuguese-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Responder a