bpinheiro
(usa Debian)
Enviado em 20/04/2012 - 19:46h
Boa Noite Pessoal.
Segue abaixo meu squid.conf
Preciso de ajuda!!
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
dns_nameservers 187.0.230.250
dns_nameservers 187.0.230.5
dns_nameservers 200.204.0.10
dns_nameservers 200.204.0.138
dns_nameservers 200.255.253.241
dns_nameservers 200.255.253.241
dns_nameservers 201.6.0.112
error_directory /usr/share/squid/errors/pt-br
cache_access_log /var/log/squid/access.log
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 5
auth_param ntlm keep_alive on
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
auth_param basic realm "Controle de Acesso Web "
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
# CONTROLE DE ACESSO
# -----------------------------------------------------------------------------
# Esta acl faz consulta nos Grupos do Active Directory
external_acl_type NT_global_group %LOGIN /usr/lib/squid/wbinfo_group.pl
# O grupo que estiver nesta acl terá acesso TOTAL a internet
acl AcessoTotal external NT_global_group gg_INSERIR GRUPO
# O grupo que estiver nesta acl terá acesso RESTRITO ou BLOQUEADO
acl AcessoComercial external NT_global_group gg_comercial
acl AcessoCompras external NT_global_group gg_compras
acl AcessoContabilidade external NT_global_group gg_contabilidade
acl AcessoCusto external NT_global_group gg_custo_importacao
acl AcessoDesenho external NT_global_group gg_desenho
acl AcessoDevolucao external NT_global_group gg_devolucao
acl AcessoSecretaria external NT_global_group gg_dir_secretaria
acl AcessoFaturamento external NT_global_group gg_fatura
acl AcessoFinanceiro external NT_global_group gg_financeiro
acl AcessoLeitores external NT_global_group gg_leitores
acl AcessoLogistica external NT_global_group gg_logistica
acl AcessoLoja external NT_global_group gg_loja
acl AcessoPCP external NT_global_group gg_pcp
acl AcessoPortaria external NT_global_group gg_portaria
acl AcessoProducao external NT_global_group gg_producao
acl AcessoRH external NT_global_group gg_rh
acl AcessoTI external NT_global_group gg_ti
acl AcessoVisitante external NT_global_group gg_visitantes
# Site Liberados "todos" e Windows Update
acl sitesliberados url_regex -i "/etc/squid/sites/liberados"
acl windowsupdate url_regex -i "/etc/squid/sites/windowsupdate"
no_cache deny windowsupdate
# Sites internos como ex: 192.168.1.8
acl sitesinternos url_regex -i "/etc/squid/sites/interno"
# Sites RH
acl sitesRH url_regex -i "/etc/squid/sites/rh"
# Libera acesso a acl AcessoTotal
http_access allow AcessoTotal
# Nega acesso a acl AcessoRestrito a uma determinada acl
# ex: google.com.br poderiamos bloquear só ele
#http_access allow AcessoRestrito !COLOCAR NOME DA ACL
# Libera acesso aos sites liberados
http_access allow sitesliberados AcessoProducao
http_access allow sitesliberados AcessoTI
# Libera acesso aos sites internos
http_access allow sitesinternos AcessoPCP
http_access allow sitesinternos AcessoTI
# Libera acesso ao Windows Update
http_access allow windowsupdate AcessoPCP
http_access allow windowsupdate AcessoProducao
http_access allow windowsupdate AcessoTI
# Libera acesso ao grupo RH
http_access allow sitesRH AcessoRH
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.1.0/24 # RFC1918 possible internal network
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # 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
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 25 # Exchange
acl Safe_ports port 8057 # Exchange
acl Safe_ports port 3478 # Exchange
acl purge method PURGE
acl CONNECT method CONNECT
# Libera acesso a acl AcessoRestrito para conectar
# o Microsoft Online Service
http_access allow SSL_ports AcessoPCP
http_access allow SSL_ports AcessoProducao
http_access allow SSL_ports AcessoTI
http_access allow Safe_ports AcessoTI
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
cache_dir ufs /var/spool/squid 300 16 256
coredump_dir /var/spool/squid
visible_hostname Servidor Proxy