jabj
(usa FreeBSD)
Enviado em 09/12/2014 - 16:54h
Segue meu squid.conf
auth_param negotiate program /usr/local/libexec/squid/negotiate_kerberos_auth -s HTTP/nome_do_servidor.meu.dominio.com@MEU.DOMINIO.COM
auth_param negotiate children 10 startup=5 idle=1
auth_param negotiate keep_alive on
external_acl_type squid_grupo_ad ttl=600 children-max=35 ipv4 %LOGIN /usr/local/libexec/squid/ext_ldap_group_acl -v 3 -R -K -b "dc=meu,dc=dominio,dc=com" \
-D squid@meu.dominio.com -W /usr/local/etc/squid/authpw -f "(&(objectclass=person)(sAMAccountName=%v)(memberof=cn=%g,ou=Proxy Squid,dc=meu,dc=dominio,dc=com))" \
-h nome_do_servidor.meu.dominio.com
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 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
### Não passa pelo proxy
### Obs.: "nao_proxy" contém os sites que julgo serem os corretos em relação ao Java, flash e Chrome, para não passarem pelo proxy.
acl nao_proxy dstdom_regex -n -i "/usr/local/etc/squid/squid_regras/nao_proxy"
acl rede_local src XXX.XXX.XX.X/24
acl CONNECT method CONNECT
http_access allow nao_proxy
http_access allow CONNECT nao_proxy
http_access allow rede_local
acl auth proxy_auth REQUIRED
acl bancos dstdom_regex -n -i "/usr/local/etc/squid/squid_regras/bancos"
acl acessototalS external squid_grupo_ad acessototal
always_direct allow bancos
cache deny bancos
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow acessototalS
http_access deny !auth
http_access allow auth
http_access deny all
error_directory /usr/local/etc/squid/errors/pt-br
log_mime_hdrs on
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/logs/access.log
cache_mem 128 MB
maximum_object_size_in_memory 100 KB
cache_swap_low 90
cache_swap_high 93
maximum_object_size 6144 KB
minimum_object_size 0 KB
ipcache_size 1024
ipcache_low 90
ipcache_high 93
cache_dir diskd /var/squid/cache/squid 4000 32 256 Q1=72 Q2=64
cache_log /var/log/squid/cache.log
cache_store_log none
visible_hostname no
logfile_rotate 15
coredump_dir none
httpd_suppress_version_string off
cache_mgr meunome@meudominio.com
http_port 3128
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320