andrepfj
(usa Ubuntu)
Enviado em 23/02/2012 - 10:21h
Galera desculpa a demora é que eu fiquei sem internet durante o feriado, mas esta ai a minha configuração do squid.conf, quem puder dar uma clareada para ver o que esta acontecendo agradeço desde ja valeu.
###Porta TCP###
#http_port 3128
http_port 3128 transparent
### Nome do servidor Squid ###
visibel_hostname churchill
###Configuração do cache ###
cache_mem 2048
maximum_object_size_in_memory 200KB
maximum_object_size 200MB
minimum_object_size 0KB
cache_effective_user proxy
cache_effective_group proxy
cache_swap_low 90
cache_swap_high 95
cache_dir aufs /var/spool/squid 2049 16 256
cache_replacement_policy heap LFUDA
cache_log /var/log/squid/cache.log
cache_log /var/log/squid/store.log
hierarchy_stoplist cgi-bin?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
### Cache windows update ###
refresh_pattern au.download.windowsupdate.com/.*.(cab|exe|msi) 10080 100% 43200$
refresh_pattern download.microsoft.com/.*.(cab|exe|msi) 10080 100% 43200 reload$
refresh_pattern msguser.dlservice.micorsoft.com/.*.(cab|exe|msi) 10080 100% 43$
refresh_pattern windowsupdate.com/.*.(cab|exe|msi)10080 100% 43200 reload-into$
refresh_papttern
www.microsoft.com/.*.(cab|exe|msi) 10080 100% 43200 reload-into$ quick_abort_min -1
acl url_windowsupdate dstdomain "etc/squid/ACLs/allow_url_windowsupdate.list"
range_offset_limit -1 url_windowsupdate
range_offset_limit 0
### Controle de conexoes###
half_closed_clients off
###DNS###
dns_nameservers 127.0.0.1
### Refresh ####
refresh_patten ^ftp: 1440 20% 10080
refresh_patten ^gophe:1440 0% 1440
refresh_patten .0209 4320
### Lista de Acessos ###
acl all src 0.0.0.0/0.0.0.0
acl rede_administrativo src 10.87.9.0/255.255.255.0
acl rede_laboratorios src 10.87.8.0/255.255.255.0
acl rede_serverfarm src 10.1.1.0/255.255.255.0
acl rede_CIP src 20.87.0.0/255.255.0.0
acl deny_url url_regex "/etc/ACLs/deny_url.lis"
acl site_youtube dst youtube.com
acl allow_user_youtube arp "/etc/squid/ACLs/mac_addr_allow_youtube.list"
### Controle da Banda ###
delay_pools 2
delay_class 1 2
delay_parameters 1 11468/114688 -1/-1 #896 kbits/s - sen limites
delay_access 1 allow all rede_administrativo
delay_class 2 2
delay_parameters 2 32768/32768 32768/37768 # 256 kbits/s - 32Kb/s
delay_access 2 allow all rede_laboratorios
### controle de acesso ###
http_access allow allow_user_youtube site_youtube
http_access deny deny_url
http_access allow all
### não fazer cache ###
acl NOCACHE url_regex ""/etc/squid/ACLs/no_cache_url.list"
no_cache deny no cache
always_direct allow nocache.
### configuração das mensagens de erro ####
erros_directory /usr/share/squid/errors/pt-br
## segurança
hearder_access via deny all
hearder_access X-forwarded-for deny all