+ Responder ao Tópico



  1. #1
    Speed
    Visitante

    Padrão Regras no squid ñ funciona.

    Amigos,

    Já li vários artigos do squid para bloquear sites, mas infelizmente todos q eu tentei ñ funcionaram. Gostaria de uma ajuda dos amigos. Tenho o RH9 com o squid-2.5.STABLE1-2. Vejam como está meu squid.conf:

    # TAG: http_port
    http_port 3128

    # TAG: hierarchy_stoplist
    hierarchy_stoplist cgi-bin ?

    # TAG: no_cache
    acl QUERY urlpath_regex cgi-bin \?
    no_cache deny QUERY

    # TAG: cache_dir
    cache_dir ufs /var/spool/squid 2000 64 64

    # TAG: cache_access_log
    cache_access_log /var/log/squid/access.log

    # TAG: cache_log
    cache_log /var/log/squid/cache.log

    # TAG: auth_param
    auth_param basic children 5
    auth_param basic realm Squid proxy-caching web server
    auth_param basic credentialsttl 2 hours

    # TAG: refresh_pattern
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 0 20% 4320

    # TAG: acl
    acl all src 0.0.0.0/0.0.0.0
    acl blocksites url_regex /etc/squid/block.txt
    acl unblocksites url_regex /etc/squid/unblock.txt
    acl rede_interna src 172.168.0.0/255.255.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

    # TAG: http_access
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access allow localhost
    http_access allow manager localhost
    http_access allow rede_interna
    http_access deny blocksites !unblocksites
    http_access deny all

    # TAG: http_reply_access
    http_reply_access allow all

    # TAG: visible_hostname
    visible_hostname rd.org

    # TAG: httpd_accel_host
    # TAG: httpd_accel_port
    httpd_accel_port 80
    httpd_accel_host virtual

    # TAG: httpd_accel_with_proxy on|off
    httpd_accel_with_proxy on

    # TAG: httpd_accel_uses_host_header on|off
    httpd_accel_uses_host_header on

    # TAG: error_directory
    error_directory /usr/share/squid/errors

    # TAG: coredump_dir
    coredump_dir /var/spool/squid

    # TAG: ie_refresh on|off
    ie_refresh on

    Tem algo a corrigir no squid.conf? No Squid só preciso q funcione o Proxy, ACL´s e futuramento irei colocar autenticação.
    Os arquivos blocksites.txt e unblocksites estão no diretório /etc/squid com as permissões full (777), os dois.
    Tentro do arquivo blocksites tem uma única linha escrito a palavra sexo.

    O q pode estar acontecendo de errado??Desde já agradeço a ajuda de todos.

    Mauricio <IMG SRC="images/forum/icons/icon_smile.gif">

  2. #2
    Speed
    Visitante

    Padrão Regras no squid ñ funciona.

    Amigos,

    Será q alguém poderia me ajudar??
    Agradeço,

    Mauricio

  3. #3
    Speed
    Visitante

    Padrão Regras no squid ñ funciona.

    Amigos,

    Se alguém puder me ajudar ficarei muito grato, pois preciso implantar isso com o máximo de urgência pois tem usuário acessando sites indevidos. <IMG SRC="images/forum/icons/icon_frown.gif">

    Obrigado,

    Mauricio