willcamarg
(usa CentOS)
Enviado em 19/07/2012 - 16:20h
O meu squid3 não esta bloqueando site_bloqueados meu arquivo .conf para analise.
# Configuraç Squid
# Configurado por: Eleandro S.A
# Mensagens de erro em Portuguêe
#error_directory /usr/share/squid/errors/Portuguese
# Porta do Squid
http_port 3128 transparent
# Nome do servidor
visible_hostname Labinf
# Cache
cache_mem 300 MB
maximum_object_size_in_memory 32 KB
maximum_object_size 1024 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 100 16 256
# Logs de acesso
access_log /var/log/squid3/access.log squid
#coloque seu email
cache_mgr willcamarg@hotmail.com
# Regras acl padrãacl manager proto cache_object
acl localhost src 127.0.0.1/32 # 24
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # portas altas
acl CONNECT method CONNECT
# Permissõe bloqueios padrãhttp_access allow manager localhost
#http_access deny manager
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
# Bloqueio de sites por URL
acl sites_bloqueados url_regex -i "/etc/squid3/sites_bloqueados"
http_access deny sites_bloqueados
# Bloqueio de downloads por extensã
acl downloads_proibidos url_regex -i \.exe \.torrent \.avi
http_access deny downloads_proibidos
# Permisãrede local e servidor
acl all src 192.168.7.0/255.255.255.0
acl redelocal src 192.168.7.0/24
http_access allow localhost
http_access allow redelocal
# Bloqueio de usuarios fora da rede
http_access deny all