Página 2 de 2 PrimeiroPrimeiro 12
+ Responder ao Tópico



  1. Ola ai como ficou o arquivo:
    sites 'e um aquivo, dentro dele coloquei "http://www.terra.com.br"

    usuario 'e o arquivo de IP pra acessar o terra e nada mais:
    dentro do arquivo coloquei o ip da maquina:
    10.0.0.21


    #Recommended minimum configuration:
    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

    acl rede src 10.0.0.0/255.0.0.0

    acl usuario src "/usr/local/squid/listas/usuario"
    acl sites url_regex -i "/usr/local/squid/listas/sites"


    # TAG: http_access
    # Allowing or Denying access based on defined access lists
    #
    # Access to the HTTP port:
    # http_access allow|deny [!]aclname ...
    #
    # NOTE on default values:
    #
    # If there are no "access" lines present, the default is to deny
    # the request.
    #
    # If none of the "access" lines cause a match, the default is the
    # opposite of the last line in the list. If the last line was
    # deny, the default is allow. Conversely, if the last line
    # is allow, the default will be deny. For these reasons, it is a
    # good idea to have an "deny all" or "allow all" entry at the end
    # of your access lists to avoid potential confusion.
    #
    #Default:
    # http_access deny all
    #
    #Recommended minimum configuration:
    #
    # Only allow cachemgr access from localhost
    http_access allow manager localhost
    http_access deny manager
    # Deny requests to unknown ports
    http_access deny !Safe_ports
    # Deny CONNECT to other than SSL ports
    http_access deny CONNECT !SSL_ports
    #
    # We strongly recommend the following be uncommented to protect innocent
    # web applications running on the proxy server who think the only
    # one who can access services on "localhost" is a local user
    #http_access deny to_localhost
    #
    # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS

    # Example rule allowing access from your local networks. Adapt
    # to list your (internal) IP networks from where browsing should
    # be allowed
    #acl our_networks src 192.168.1.0/24 192.168.2.0/24

    http_access deny !sites usuario


    #http_access allow rede
    http_access allow all
    [/img][/list][/list][/quote][/code]

  2. #7
    dispatcher
    Bravo, tenta mudar essa linha do teu squid.conf
    acl sites url_regex -i "/usr/local/squid/listas/sites"
    para
    acl sites urlpath_regex -i "/usr/local/squid/listas/sites"
    e ve se dá certo!
    posta depois o resultado.



  3. Testa ce não der tentar por pelo dominio! fui!!!

    Citação Postado originalmente por dispatcher
    Bravo, tenta mudar essa linha do teu squid.conf
    acl sites url_regex -i "/usr/local/squid/listas/sites"
    para
    acl sites urlpath_regex -i "/usr/local/squid/listas/sites"
    e ve se dá certo!
    posta depois o resultado.






Tópicos Similares

  1. Regras no squid
    Por andrefs no fórum Servidores de Rede
    Respostas: 7
    Último Post: 10-03-2005, 01:50
  2. Duvida com regras no SQUID
    Por pedro_lemes no fórum Servidores de Rede
    Respostas: 3
    Último Post: 14-02-2005, 06:19
  3. Criar grupos de usuários e aplicar regras no SQUID
    Por rpapa no fórum Servidores de Rede
    Respostas: 10
    Último Post: 03-02-2005, 13:20
  4. Regras no squid ñ funciona.
    Por Speed no fórum Servidores de Rede
    Respostas: 2
    Último Post: 09-09-2003, 08:00
  5. Regras no SQUID para bloquear ICQ / MESSENGER
    Por soyeu no fórum Servidores de Rede
    Respostas: 2
    Último Post: 20-11-2002, 12:36

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L