perucio
(usa Debian)
Enviado em 10/12/2013 - 15:44h
alexandrepina escreveu:
pode postar o squid.conf completo por gentileza?
Obrigado
http_port 192.168.200.214:3128
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
# ACLs
acl rede_interna src 192.168.200.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl manager proto cache_object
# portas seguras
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 81 # http
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 901 # SWAT
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 purge method PURGE
acl CONNECT method CONNECT
acl intranet_EMPRESA dstdomain intranet.EMPRESA
acl informatica_EMPRESA dstdomain informatica.EMPRESA
acl qualidoc_EMPRESA dstdomain qualidoc.EMPRESA
acl ip-bloqueado src "/etc/squid3/acls/ip-bloqueado"
acl sites_deny dstdomain -i "/etc/squid3/acls/sites-proibidos"
acl dominios_liberados url_regex -i "/etc/squid3/acls/dominios_liberados"
acl sites_allow url_regex "/etc/squid3/acls/sites-permitidos"
acl caixa dstdomain -i .caixa.gov.br
acl palavras_deny url_regex -i "/etc/squid3/acls/palavras-deny"
acl palavras_allow url_regex -i "/etc/squid3/acls/palavras-allow"
acl update dstdomain -i Windowsupdate.microsoft.com au.download.Windowsupdate.com
acl sites_locais dst 192.168.200.5
acl ipliberado src "/etc/squid3/acls/ip_liberados.txt"
http_access deny ip-bloqueado
http_access allow ipliberado
http_access allow dominios_liberados
#http_access allow diretoria
http_access allow intranet_EMPRESA
http_access allow informatica_EMPRESA
http_access allow qualidoc_EMPRESA
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow update
http_access deny palavras_deny
http_access deny sites_deny
http_access allow caixa
always_direct allow caixa
miss_access allow all
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
acl snmpro snmp_community local
snmp_access allow snmpro all
snmp_port 3401
cache_mgr ti@EMPRESA.com.br
visible_hostname proxy.EMPRESA.net
error_directory /usr/share/squid3/errors/Portuguese
coredump_dir /var/spool/squid3
logfile_rotate 4
# Autentica com o AD
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 2 hours
acl AuthorizedUsers proxy_auth REQUIRED
http_access allow all AuthorizedUsers