ederlopes7
(usa CentOS)
Enviado em 27/07/2012 - 16:13h
Pessoal, consegui, com ajuda de um Membro aqui do VoL ele bem dizer fez tudo para mim, vou postar o resultado para quem tiver interessado.
# Bem vindo ao Proxy Squid
##########################################
# Portas (padrão 3128)
#########################################
http_port 192.168.1.50:3128
# OTIMIZANDO CONEXÕES
#########################################
hierarchy_stoplist cgi-bin ?
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
# Logs
########################################
access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
acl redelocal src 192.168.1.0/32
acl localhost src 192.168.1.50/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl SSL_ports port 443 563
acl Safe_ports port 25 # smtp
acl Safe_ports port 110 # pop3
acl Safe_ports port 587 # ssmtp
acl Safe_ports port 80 # http
acl Safe_ports port 81 # Unimed
acl Safe_ports port 82 # Unimed
acl Safe_ports port 83 # Unimed
acl Safe_ports port 84 # Unimed
acl Safe_ports port 8080 # tomcat
acl Safe_ports port 8443 # tomcat - ssl
acl Safe_ports port 10000 # webmin
acl Safe_ports port 21 # ftp
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 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 1863 # msn
#acl Safe_ports port 901 # SWAT
acl Safe_ports port 4500 # Biblioteca USP dedalus
acl Safe_ports port 2083 # CPANEL
acl Safe_ports port 2631 # Conectividade Social
acl Safe_ports port 1494 # Sigov
acl Safe_ports port 8333 # WMWARE SERVER
acl manager proto cache_object
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
# ============================================================================
# =================== Autenticação no Windows 2008 =========================
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 30
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 12 hours
acl Autenticados proxy_auth REQUIRED
#################################################################################
Grupos do AD
external_acl_type nt_group %LOGIN /usr/lib/squid3/wbinfo_group.pl
acl ad_AcessoAdministrativo external nt_group AcessoAdministrativo
acl ad_AcessoAuditoria external nt_group AcessoAuditoria
acl ad_AcessoFarmarcia external nt_group AcessoFarmacia
acl ad_AcessoRecepcao external nt_group AcessoRecepcao
acl ad_AcessoBloqueado external nt_group AcessoBloqueado
acl sites_deny url_regex -i "/etc/squid3/acls/sites-proibidos"
acl sites_allow url_regex -i "/etc/squid3/acls/sites-permitidos"
#Definindo Controle de Acesso
http_access allow sites_allow
http_access deny sites_deny
http_access allow ad_AcessoAdministrativo
http_access allow ad_AcessoAuditoria
http_access allow ad_AcessoFarmarcia
http_access allow ad_AcessoRecepcao
http_access allow ad_AcessoBloqueado
http_access deny localhost
http_access allow autenticados redelocal
http_access allow all
icp_access allow all
miss_access allow all
dns_nameservers 17.0.0.1
# SNMP
acl snmpro snmp_community local
snmp_access allow snmpro all
snmp_port 3401
# ============================================================================
# ======================= Configuracoes Diversas ============================
# Email do administrador
cache_mgr suporteti@santacasaolimpia.com.br
# Host visível
visible_hostname SQSERVER.SCM.OLIMPIA.COM.BR
# Linguagem dos erros
error_directory /usr/share/squid3/errors/Portuguese
# Evita que sejam feitos coredumps.
coredump_dir /var/spool/squid3
# Numero de arquivos de log rotacionados a guardar.
logfile_rotate 4
Obrigado pessoal!