janduy
(usa CentOS)
Enviado em 22/07/2013 - 10:38h
Bom dia segue o meu squid.conf.
http_port 192.168.5.2:3128 transparent
visible_hostname srvadm
error_directory /usr/share/squid/errors/Portuguese
cache_dir ufs /var/spool/squid 10240 16 256
cache_log /var/log/squid/cache.log
#Memoria para arquivos html e imagens pequenas
cache_mem 1024 MB
#Tamanho mámo dos arquivos na memoria
maximum_object_size_in_memory 128 KB
#Mámo de download em disco
maximum_object_size 512 kB
minimum_object_size 0 KB
#Logs de acesso
access_log /var/log/squid/access.log squid
# Reduzindo cache
cache_swap_low 90
cache_swap_high 95
# Conectividade social
acl site dstdomain .caixa.gov.br
always_direct allow site
acl google dstdomain .google.com.br
always_direct allow google
#AUTENTICACAO
auth_param basic realm "Coloque login e senha"
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 30
auth_param basic credentialsttl 1 hour
#ACLS
acl
[*****] url_regex -i "/etc/squid/
[*****]"
acl gerentes proxy_auth -i "/etc/squid/gerentes"
acl funcionarios proxy_auth -i "/etc/squid/funcionarios"
acl all src 0.0.0.0/0
acl rede src 192.168.5.0/24 127.0.0.1/32
acl redesocial url_regex -i "/etc/squid/redesocial"
acl downloads url_regex -i "/etc/squid/down"
#Acessos
http_access deny
[*****]
http_access deny funcionarios redesocial
http_access allow funcionarios
http_access allow gerentes
http_access deny rede redesocial
http_access deny rede downloads
http_access allow rede
http_access deny all