tomazela
(usa RedHat)
Enviado em 05/03/2008 - 10:35h
Caros Amigos.
Tenho um servidor RED HAT Enterprise 4 com Firewall e Squid. Quando estou somente com o firewall ativado, minha internet fica bem rápida, mas quando coloco o Squid no ar, minha internet fica lenta para muitos sites, embora estejam no cache. Gostaria de saber se há alguma coisa que eu possa fazer para melhorar isso. No Firewall é configurado para redirecionar para a Porta 3128 quando o Squid está rodando. Abaixo segue como está meu SQUID.
http_port 3128
visible_hostname proxy.servidor
cache_mem 64 MB
maximum_object_size_in_memory 1024 KB
cache_swap_low 80
cache_swap_high 85
maximum_object_size 512 MB
minimum_object_size 0KB
# Default:
# ipcache_size 1024
# ipcache_low 90
# ipcache_high 95
cache_dir ufs /var/cache/squid 2000 32 256
cache_access_log /var/log/squid/access.log
cache_replacement_policy heap LRU
memory_replacement_policy heap LRU
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
# Recommended minimun configuration
acl manager proto cache_object
acl SSL_ports port 443 563
acl Safe_ports port 80 #Http
acl Safe_ports port 8080 #http
acl Safe_ports port 3128 #teste
acl Safe_ports port 85 #Site em Garfield (Speedy)
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-65565 #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 Safe_ports port 631 #Cups
#acl bloqueados url_regex -i "/etc/squid/bloqueados.txt"
#http_access deny bloqueados
acl purge method PURGE
acl CONNECT method CONNECT
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl Serversuporte src 192.168.0.0/255.255.255.0
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 allow Serversuporte
http_access allow all
icp_access allow all
#Proxy transparente
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on