marcelll0
(usa Slackware)
Enviado em 07/11/2013 - 12:16h
Boa tarde pessoALL
Estou precisando de uma ajudinha...
Meu squid.conf
#======= I N I C I O ==========
# WELCOME TO SQUID 3.3.8
# ----------------------------
#
http_port 10.0.0.1:3128 transparent
visible_hostname servidor
######## INICIO DO CACHE #######
cache_mem 512 MB
maximum_object_size_in_memory 64 KB
minimum_object_size 0 KB
maximum_object_size 512 MB
cache_dir ufs /var/log/squid/logs/cache 102400 16 256
access_log /var/log/squid/logs/access.log squid
cache_log /var/log/squid/logs/cache.log
cache_store_log /var/log/squid/logs/store.log
cache_swap_low 90
cache_swap_high 95
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
# CAHCE DO WINDOWS UPDATE
refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern update.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern
www.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200 reload-into-ims
####### FIM DO CACHE ######
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # 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 CONNECT method CONNECT
acl blokeia url_regex -i "/usr/local/squid/etc/blokeia.txt"
acl desblokeia url_regex -i "/usr/local/squid/etc/desblokeia.txt"
acl rede_certa src 10.0.0.15
acl rede_errada src 10.0.0.100
acl download urlpath_regex -i "/usr/local/squid/etc/download"
pid_filename /var/log/squid/squid.pid
client_netmask 255.255.255.0
#Recommended minimum configuration:
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
# REGRAS DE ACESSO
http_access allow rede_certa
http_access deny blokeia !desblokeia
http_access allow rede_errada !download
http_access deny all
htcp_access deny all
cache_effective_user squid
cache_effective_group squid
error_directory /usr/local/squid/share/errors/pt-br/
coredump_dir /var/log/squid/logs/cache
#====== F I M ========
Nesta versão 3.3.8, nao estou conseguindo fazer cache dos arquivos baixados, na versão 3.1.14 e 3.0 STABLE 26, funciona redondinho.
Não sei onde estou errando.
Agradeço qualquer ajuda.
Grato
Marcel