canhotojam
(usa CentOS)
Enviado em 27/01/2012 - 17:40h
#squid.conf
shutdown_lifetime 5 seconds
icp_port 0
http_port 3128
cache_mem 512 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 512 64 256
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
maximum_object_size 30000 KB
maximum_object_size_in_memory 40 KB
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
mime_table /etc/squid/mime.conf
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
#quick_abort_max 16 KB
#quick_abort_pct 95
#quick_abort_min 16 KB
#request_header_max_size 20 KB
#reply_header_max_size 20 KB
#request_body_max_size 0 KB
auth_param basic program /usr/lib64/squid/squid_ldap_auth -R -b "dc=dominio,dc=local" -D "CN=Squid SP. Proxy,OU=Ti,DC=dominio,DC=local" -w "123456" -f sAMAccountName=%s -h 192.168.0.156
auth_param basic realm Proxy Interno
auth_param basic children 32
auth_param basic credentialsttl 30 minutes
external_acl_type internet %LOGIN /usr/lib64/squid/squid_ldap_group -R -b "dc=dominio,dc=local" -D "CN=Squid SP. Proxy,OU=Ti,DC=dominio,DC=local" -w "123456" -f "(&(objectclass=person)(sAMAccountName=%v)(memberof=cn=%a,OU=Ti,DC=dominio,DC=local))" -h 192.168.0.156
acl recep external internet recepcao
acl fat external internet faturamento
acl informatica external internet ti
#ACL's Recomendadas
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563 1863
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl manager proto cache_object
acl localhost src 127.0.0.1/32
http_access allow manager localhost
http_access deny manager
http_access allow localhost
acl site dstdomain "/etc/squid/site"
acl negado url_regex -i "/etc/squid/restrito"
acl convenios url_regex -i "/etc/squid/convenios"
acl liberados url_regex -i "/etc/squid/liberados"
acl hmsm src 192.168.0.0/24
http_access allow informatica
http_access allow site
http_access deny negado
http_access allow convenios
# nega o acesso a recep exceto os sites listados em convenios
http_access deny recep !convenios
http_access allow liberados
# nega o acesso a fat excetos os sites citados em liberados e convenios
http_access deny fat !liberados !convenios
http_access deny hmsm
http_access deny all
httpd_suppress_version_string off
visible_hostname HMSM
cache_mgr meu-email@gmail.com
error_directory /usr/share/squid/errors/pt-br/