+ Responder ao Tópico



  1. #1

    Padrão Não navega com squid em paralelo

    Pessoal estou tendo esse erro ao tentar navegar com o squid 2.7 em paralelo com o mk:

    ERROR

    The requested URL could not be retrieved

    While trying to retrieve the URL: http://www.gmail.com/
    The following error was encountered:

    • Unable to forward this request at this time.

    This request could not be forwarded to the origin server or to any parent caches. The most likely cause for this error is that:

    • The cache administrator does not allow this cache to make direct connections to origin servers, and
    • All configured parent caches are currently unreachable.

    Your cache administrator is root.
    Generated Wed, 22 Jul 2009 16:46:53 GMT by DebianLinux (squid/2.7.STABLE3)



    meu squid.conf




    #NOME DO SERVIDOR#####################################################
    visible_hostname DebianLinux
    ######################################################################
    #IP+PORTA USADA ####################################################
    http_port 10.111.1.2:3128 transparent
    ######################################################################
    icp_port 0
    ######################################################################
    #CACHE USADO-METADE DA RAM)###########################################
    cache_mem 1024 MB
    ######################################################################
    #Cache Swap###########################################################
    cache_swap_low 80
    cache_swap_high 90
    ######################################################################
    #OBJECT_SIZE##########################################################
    maximum_object_size 512 MB
    minimum_object_size 0 KB
    #tamanho m�ximo dos objetos alocados na mem�ria.
    maximum_object_size_in_memory 256 KB
    ######################################################################
    #DIRETORIOS DO CACHE MULTIPLOS########################################
    cache_dir aufs /var/cachesquid1 5000 128 512
    # Resolve um problema com conex�es persistentes que ocorre com certos servidores,
    # e que provoca delays em nosso cache.
    detect_broken_pconn on

    # Provoca um ganho de performance ao usar conex�es Pipeline (requisi��es em
    # paralelo)
    pipeline_prefetch on
    #DNS squid cache
    dns_nameservers 10.111.1.2
    #####################################################################
    #LOGS################################################################
    cache_access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log
    cache_store_log none
    ####################################################################
    request_body_max_size 0 MB
    ####################################################################
    #REGRAS GERAIS###################################
    acl all src 0.0.0.0/0.0.0.0
    http_access allow all

    acl manager proto cache_object
    acl localhost src 127.0.0.1/255.255.255.255
    acl SSL_ports port 443 4243 563
    acl Safe_ports port 80 21 443 563 70 210 1025-65535
    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 allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access allow localhost

    #FTP
    ftp_passive on
    ftp_sanitycheck on

    refresh_pattern -i \.(gif|jpg|jpeg|bmp|png|ico)$ 0 99% 432000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private
    refresh_pattern -i \.(css|htm|html|js|jsp|xml)$ 0 99% 432000 override-expire override-lastmod reload-into-ims ignore-reload
    refresh_pattern ^http:// 30 40% 20160
    refresh_pattern ^ftp:// 30 50% 20160
    refresh_pattern ^gopher:// 30 40% 20160
    refresh_pattern -i \.swf$ 0 100% 999999 override-expire override-lastmod reload-into-ims ignore-reload
    refresh_pattern . 1440 100% 1440 override-expire override-lastmod reload-into-ims ignore-reload
    refresh_pattern -i \.flv$ 10080 90% 999999 override-expire ignore-no-cache ignore-private

    #ZPH cache FULL
    zph_mode tos
    zph_local 0×30
    zph_parent 0
    zph_option 136

    miss_access allow all
    cache_mgr root
    memory_pools on
    #####################################################################
    #BLOQUEIA TUDO#######################################################
    #http_access deny all
    ####################################################################



    eu uso esse proxy acima perfeitamente autenticado só com linux na empresa mas para ficar transparente tirei as regras de autenticação e adiconei o nome transparent...o que pode estar faltando? já deixei a acl all como allow mas continua desse jeito toda vez que tendo abrir uma página.

  2. #2

    Padrão

    tentei adicionar a acl a rede interna que vai para os clientes do mk: 192.168.0.0/24 ai apareceu outro erro:

    ERROR

    The requested URL could not be retrieved

    While trying to retrieve the URL: http://www.uol.com.br/
    The following error was encountered:

    • Access Denied. Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

    Your cache administrator is root.

    Generated Thu, 23 Jul 2009 11:11:56 GMT by DebianLinux (squid/2.7.STABLE3)


    quando coloco a acl com o ip do mk aparece o erro de antes...o que está faltando para funcionar?

  3. #3

  4. #4

  5. #5

    Padrão

    confere o squid.conf meu problema era nele.

  6. #6

    Padrão

    Citação Postado originalmente por lfernandosg Ver Post
    confere o squid.conf meu problema era nele.

    Oooo meu amigo, pois me ajuda, rsrsr que erro tinha no seu ? o que era que estava causando isso ?