thiagoradical
(usa Debian)
Enviado em 15/05/2012 - 09:40h
Andre, desculpa ae pelo erro, mas ata ae o conf, aguardo a orientação...
# Mensagem de erro em Português
error_directory /usr/share/squid/errors/Portuguese
http_port 3128 transparent
visible_hostname debiansquid
cache_mem 2048 MB
maximum_object_size 512 MB
minimum_object_size 1024 KB
access_log /var/log/squid/access.log squid
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 30000 16 256
cache_access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 22 2222 # ssh server
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 110 25 # pop-smtp
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # portas altas
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#Ip Liberado
acl ip_liberado src "/etc/squid/ip_liberado"
http_access allow ip_liberado
#Proibe Palavras
acl proibe_palavras url_regex -i "etc/squid/proibe_palavras"
http_access deny proibe_palavras
#Bloqueio por extensao
acl ext-bloqueados url_regex -i "etc/squid/ext-bloqueados"
http_access deny ext-bloqueados
#Dns
dns_nameservers 201.10.120.3
dns_nameservers 8.8.8.8
#Boqueio de videos online
acl streaming rep_mime_type -i "etc/squid/blockmime"
acl streaming rep_mime_type ^video/x-ms-asf
acl videomusic 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$ \.flv$
http_access deny videomusic
http_reply_access deny streaming
acl redelocal src 192.168.0.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all