+ Responder ao Tópico



  1. #1
    b0rin
    Visitante

    Padrão Squid muito lento

    Bom dia, tenho um squid no meu RH 9 e ele está muito lento, demora cerca de 2 minutos para abrir uma pagina, mas se eu tirar o acesso via proxy e setar os DNS na maquina e o gtw fica muito rapido abaixo meu squid.conf

    Código :
    #Porta Proxy
    http_port 3128
     
    #hierarchy_stoplist cgi-bin ?
     
    acl QUERY urlpath_regex cgi-bin \?
    no_cache deny QUERY
    cache_mem 64 MB
    cache_swap_low 90
    cache_swap_high 95
    maximum_object_size 30000 KB
    minimum_object_size 0 KB
    maximum_object_size_in_memory 4000 KB
    cache_access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log
    cache_swap_log /var/log/squid/swap.log
    dns_nameservers 200.204.0.10/200.204.0.138
     
    #Bloqueio e Liberacao de Sites
     acl ipsliberados src "/etc/squid/liberados/ips.txt"
     acl arquivosliberados src "/etc/squid/liberados/arquivos.txt"
     acl arquivosbloqueados urlpath_regex -i "/etc/squid/bloqueados/arquivos.txt"
     acl bloqueados url_regex -i "/etc/squid/bloqueados/block.txt"
     acl liberados url_regex -i "/etc/squid/liberados/unblock.txt"
     
     acl rede_interna src 200.200.0.0/16
     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 to_localhost dst 127.0.0.0/8
     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 CONNECT method CONNECT
     
     http_access deny !Safe_ports
     http_access deny CONNECT !SSL_ports
     http_access deny arquivosbloqueados !arquivosliberados
     http_access allow ipsliberados
     http_access deny bloqueados !liberados
     http_access allow rede_interna
     httpd_accel_host virtual
     httpd_accel_port 80
     httpd_accel_with_proxy on
     httpd_accel_uses_host_header on
     http_access deny all
     icp_access allow all
     visible_hostname servidor

    Se algum puder me dar uma luz eu agradeço


  2. #2
    b0rin
    Visitante

    Padrão Re: Squid muito lento

    RESOLVIDO.

    Alterei os DNS da Telefonica para os DNS da UOL.

    200.221.11.100 e 200.221.11.101

    Abraços

  3. #3

    Padrão Re: Squid muito lento

    cara..

    vc não tem cache_dir ??