Slack-Ruan
(usa openSUSE)
Enviado em 14/11/2011 - 11:17h
Sim, sim. gostaria de bloquear todo o youtube com excessão de um canal.
http_port 8080
#hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
logformat detailed IP do cliente: %>a - Username: %un - Horario: [%tl] - Metodo: %rm - URL: %ru - Status HTTP: %Hs - Status Squid: %Ss
cache_dir ufs /var/spool/squid 10000 16 256
cache_access_log /var/log/squid/access.log squid
access_log /var/log/squid/access.log squid
access_log /var/log/squid/detailed.log detailed
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
acl manager proto cache_object
cache_mgr admin@localhost
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 20480 KB
minimum_object_size 0 KB
(...)
acl
[*****] url_regex "/etc/squid/liberados/
[*****]"
acl geral proxy_auth REQUIRED
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl rede src 192.168.0.0/255.255.255.0
acl noauth dstdomain "/etc/squid/liberados/noauth"
acl noauth_url url_regex "/etc/squid/liberados/noauth"
acl grupo_admin proxy_auth -i "/etc/squid/usuarios/admin"
acl youtube urlpath_regex
http://www.youtube.com/sicoobes <<===============
acl sites_proibidos url_regex "/etc/squid/liberados/block_site"
acl sites_liberados url_regex "/etc/squid/liberados/free_site"
acl u_cco proxy_auth -i cco
acl s_cco-free url_regex -i "/etc/squid/liberados/s_cco-free"
acl s_cco-block url_regex -i "/etc/squid/liberados/s_cco-block"
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 20 21 # ftp
acl Safe_ports port 25 # smtp
acl Safe_ports port 110 # pop3
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 6891-6900
acl CONNECT method CONNECT
acl u_msn proxy_auth "/etc/squid/usuarios/u_msn"
acl amsn url_regex loginnet.passport.com messenger.hotmail.com
acl msnmessenger url_regex -i gateway.dll ADSAdClient31.dll
acl MSN req_mime_type -i ^application/x-msn-messenger$
#TABELA DE FORMATOS DE ARQUIVOS
mime_table /etc/squid/mime.conf
acl nega_mime rep_mime_type '/etc/squid/tabela'
http_access allow localhost
http_access allow noauth
http_access allow noauth_url
http_access allow youtube <<===================
http_access deny u_cco !s_cco-free
http_access allow grupo_admin
http_access deny
[*****] !sites_liberados
http_access allow u_msn !amsn
http_access allow u_msn !msnmessenger
http_access allow u_msn !MSN
http_access allow geral sites_liberados
http_access deny !rede
http_access deny !Safe_ports
http_access deny !Safe_ports CONNECT
http_access deny !geral
http_access deny nega_mime
http_access allow !sites_proibidos
no_cache deny all
http_access deny all