+ Responder ao Tópico



  1. #1
    X-LOGAN
    Visitante

    Padrão problemas com autenticação Squid

    Olá pessoal
    estou com o seguinte problema, meu squid esta rodando legal mas não habilita os acesso ao ip que estão no arquivo ip_liberados.txt, eu montei uma acl, mas não esta funcionando, olhem abaixo:

    Squid.conf

    http_port 3128

    visible_hostname localhost

    cache_mem 24 MB

    cache_dir ufs /var/spool/squid 5120 64 64

    dns_nameservers 200.204.0.10 200.204.0.138

    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 allow localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports

    ##############################################

    acl proibido src "/etc/squid/proibidos.txt"
    acl ip_proibido src "/etc/squid/ip_proibido.txt"
    acl ip_liberado src "/etc/squid/ip_liberado.txt"

    http_access allow localhost
    http_access deny ip_proibido
    http_access deny proibido !ip_liberado

    http_reply_access allow all
    icp_access allow all

    #############################################

    httpd_accel_port 80
    httpd_accel_host virtual

    ##############################################

    httpd_accel_uses_host_header on

    ip_liberados.txt

    ##############################################
    # #
    # IP's liberados de acessar Internet #
    # #
    # Criado por Fábio Lima 20/06/2005 #
    # #
    ##############################################
    ############## - ESCRITÓRIO - ################
    # #
    #MICRO 3 - ()#
    100.100.100.3 #
    # #
    #MICRO 4 - () #
    100.100.100.4 #
    # #
    #MICRO 5 - () #
    100.100.100.5 #
    # #
    #MICRO 6 - () #
    100.100.100.6 #
    # #
    #MICRO 8 - () #
    100.100.100.8 #
    ##############################################
    #Obs.: Por motivos de seguranca não fora listado o ip do servidor de
    #arquivos.

  2. #2
    wrochal
    Visitante

    Padrão problemas com autenticação Squid

    Caro,

    Mude a ordem da regra coloque a ACL dos IPs em primeiros..

    Sem Mais,