Olá amigos, tenho uma lan house com 16 computadores 2 links via radio de 128 k cada, uso debian e squid full.
Gostaria de saber se tem algo para melhorar o squid ai vai meu squid.conf, ele esta funcionando, mas queria entender tipo pq q alguns utilizam
zph_local 0×30 e outros zph_local 16? isso faz direferença quanto a velocidade?
e tambem quando faço o download de 1 aquivo de 3 mb por exemplo e vou fazer novamente o download do mesmo aquivo em outra maquina ele nao vem a 100 mb q é a velocidade da rede local, e sim a 400k isso podew ser melhorado?
Obrigado.
#Configurações gerais
http_port 192.168.100.200:3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 512 MB
maximum_object_size_in_memory 512 KB
maximum_object_size 16384 KB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 20000 16 256
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid
visible_hostname ServidorWebCenterHouse
cache_mgr
[email protected]
#======Regras para atualização do cache==============
# Java
#refresh_pattern .class 2880 60% 28800
# Imagens
refresh_pattern .gif 2880 150% 28800 override-expire reload-into-ims
refresh_pattern .jpg 2880 150% 28800 override-expire reload-into-ims
refresh_pattern .jpeg 2880 150% 28800 override-expire reload-into-ims
refresh_pattern .png 2880 150% 28800 override-expire reload-into-ims
refresh_pattern .bmp 2880 150% 28800 override-expire reload-into-ims
refresh_pattern .tif 2880 150% 28800 override-expire reload-into-ims
refresh_pattern .tiff 2880 150% 28800 override-expire reload-into-ims
refresh_pattern .xbm 2880 150% 28800 override-expire reload-into-ims
refresh_pattern .ico 2880 150% 28800 override-expire reload-into-ims
# Animacoes
refresh_pattern .flv 2880 300% 28800 override-expire reload-into-ims ignore-reload
refresh_pattern .mov 2880 80% 28800 override-expire reload-into-ims ignore-reload
refresh_pattern .avi 2880 80% 28800 override-expire reload-into-ims ignore-reload
refresh_pattern .mpg 2880 80% 28800 override-expire reload-into-ims ignore-reload
refresh_pattern .swf 2880 80% 28800 override-expire reload-into-ims ignore-reload
# Audio
refresh_pattern .wav 2880 80% 28800 override-expire reload-into-ims
#refresh_pattern .au 2880 80% 28800 override-expire reload-into-ims
refresh_pattern .mid 2880 150% 28800 override-expire reload-into-ims
refresh_pattern .mp3 2880 80% 28800 override-expire reload-into-ims
# Arquivos comprimidos
refresh_pattern .zip 2880 80% 28800 override-expire reload-into-ims
refresh_pattern .gz 2880 80% 28800 override-expire reload-into-ims
refresh_pattern .arj 2880 80% 28800 override-expire reload-into-ims
refresh_pattern .rar 2880 80% 28800 override-expire reload-into-ims
# Documentos
#refresh_pattern .pdf 2880 60% 28800
#refresh_pattern .rtf 2880 60% 28800
#refresh_pattern .doc 2880 60% 28800
#refresh_pattern .wp 2880 60% 28800
#-refresh_pattern .wp5 2880 60% 28800
#-refresh_pattern .ps 2880 60% 28800
#-refresh_pattern .prn 2880 60% 28800
refresh_pattern .asp 2880 60% 28800
refresh_pattern .aspx 2880 60% 28800
refresh_pattern .php 2880 60% 28800
refresh_pattern .php3 2880 60% 28800
#refresh_pattern .srf 2880 60% 28800
#Executaveis
refresh_pattern .exe 2880 150% 28800 override-expire reload-into-ims
#Diversos
refresh_pattern .xml 2880 60% 28800 reload-into-ims
refresh_pattern .html 60 90% 10080 reload-into-ims
refresh_pattern .js 60 150% 10080 reload-into-ims
refresh_pattern .ashx 60 90% 10080 reload-into-ims
refresh_pattern .dll 60 90% 10080 reload-into-ims
#Microsoft Windows update/Downloads
refresh_pattern windowsupdate.com/.*\.(cab|exe) 4320 150% 43200 reload-into-ims
refresh_pattern download.microsoft.com/.*\.(cab|exe) 4320 150% 43200
#Windows
refresh_pattern microsoft 1080 150% 10080 override-lastmod
refresh_pattern windowsupdate 1080 150% 10080 override-lastmod
refresh_pattern msn\.com 4320 150% 10080 override-lastmod
refresh_pattern ^http://.*\.doubleclick\.net 10080 300% 40320 override-lastmod
#CLARO
refresh_pattern claro\.com\.br 4320 300% 10080 override-lastmod
#refresh_pattern lajinhaonline\.com 4320 300% 10080 override-lastmod
#o que nao estiver acima cai neste
refresh_pattern ^ftp: 15 20% 10280
#1440 20% 10080
refresh_pattern ^gopher: 15 0% 2280
#1440 0% 1440
refresh_pattern . 0 20% 2280
#original 0 20% 2280 . 0 20% 4320
#========Configurações de Portas =================
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
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 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
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
#========Inicia o controle de conteudo==================
#acl domin_liberado url_regex -i "/etc/squid/domin_liberado"
#http_access allow domin_liberado
#acl cont_proibido url_regex -i "/etc/squid/cont_proibido"
#http_access deny cont_proibido
#acl domin_proibido url_regex -i "/etc/squid/domin_proibido"
#http_access deny domin_proibido
#acl domin_naoencontra url_regex -i "/etc/squid/domin_naoencontra"
#http_access deny domin_naoencontra
######### RESTRIÇÃO POR HORÁRIOS NO (ADMINISTRADOR TIMER CAFE)
#acl net_local src 192.168.100.100
#acl sites_liberados url_regex -i "/etc/squid/sites_servidor"
#acl horario_bloqueado time MTWHF 09:00-11:00 13:00-17:59 18:31-21:00
#acl horario_liberado time MTWHF 00:00-08:30 11:01-12:59 18:00-18:30 21:01-23:59
#http_access allow net_local sites_liberados horario_bloqueado
#http_access allow net_local horario_liberado
#http_access allow net_local sites_liberados h_tarde
#=========configuração da rede======================
acl pc_link1 src "/etc/squid/pc_link1"
acl pc_link2 src "/etc/squid/pc_link2"
tcp_outgoing_address 192.168.201.199 pc_link1
tcp_outgoing_address 192.168.200.199 pc_link2
http_access allow pc_link1
http_access allow pc_link2
http_access deny all
icp_access allow all
zph_tos_local 16 #valor do tos necessário para o cache funcionar a toda velocidade.
zph_tos_parent off
#forwarded_for off
error_directory /usr/share/squid/errors/Portuguese
###########Paginas de erros personalizadas################
#deny_info domnaoencontra.html domin_naoencontra
#deny_info conteudoproibito.html cont_proibido
#deny_info conteudoproibito.html domin_proibido
#===========================================