+ Responder ao Tópico



  1. #1

    Padrão -squid: não libera alguns sites

    Estou com os sleguintes problemas:
    -dentro do arquivo blacklistspy tem um site proibido "best...", e agora não consigo acessar o site www.ibest.com.br
    -dentro do arquivo proibe_download está não permite q sejam baixados arquivos com extenção .exe. e para acessar o e-mail do www.bol.com.br ele redireciona para um site que termina com .exe (http://fmail12.uol.com.br/cgi-bin/webmail.exe - e o nr do fmail sempre muda).

    como faço pra liberar estes sies, com as regras abaixo não estou conseguiindo.


    ----------------------------------------------------------------------------------------------------------
    http_port 3128
    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 140960 KB
    minimum_object_size 0 KB
    maximum_object_size_in_memory 256 KB
    cache_dir ufs /var/spool/squid 1000 16 256
    cache_access_log /var/log/squid/access.log
    cache_log /var/log/squid/cache.log
    cache_store_log /var/log/squid/store.log
    auth_param basic children 5
    auth_param basic realm Squid proxy-caching web server
    auth_param basic credentialsttl 2 hours
    auth_param basic casesensitive off
    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 0 20% 4320
    #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 Safe_ports port 901 #SWAT
    acl CONNECT method CONNECT

    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports

    #acl proibidos dstdom_regex "/etc/squid/proibidos"
    acl liberado urlpath_regex -i "/etc/squid/liberado"
    acl spyware url_regex "/etc/squid/blacklistspy.txt"
    acl download urlpath_regex -i "/etc/squid/proibe_download"
    #acl bloqueados dstdomain playboy.abril.com.br

    http_access allow liberado all
    http_access deny spyware
    http_access deny download
    #http_access deny proibidos
    #http_access deny bloqueados

    acl chefes src 192.168.0.0/24
    http_access allow chefes
    acl peoes src 192.168.1.0/24
    http_access allow peoes

    # And finally deny all other access to this proxy
    http_access allow localhost
    http_access deny all

    # http_reply_access allow all
    http_reply_access allow all

    icp_access allow all

    #proxy transparente
    httpd_accel_host virtual
    httpd_accel_port 80
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on :x

  2. #2
    geofesteiro
    Visitante

    Padrão Re: -squid: não libera alguns sites

    tipo so um detalhe se tento coloca estes sites sitados dentro do arquivo de sites liberados pq pelo que vi ele esta barrando e depois libera de uma verificada nisso que eu acho que ja vai funciona se num funciona volte a posta okkk

  3. #3

    Padrão Re: -squid: não libera alguns sites

    os sites q estou querendo liberar já estão dentro do arquivo "liberados"

  4. #4

    Padrão

    a palavra ele está relacionando a palavra best ... a ibest ...

    você pode fazer o seguinte ...

    # Rede local
    acl rede_local src 192.168.2.0/24

    # palavras proibidas
    acl block_redelocal url_regex -i "/etc/squid/bloqueados/libera_palavra.txt"

    # palavras que parecem; mais não são proibidas.
    acl unblock_redelocal url_regex -i "/etc/squid/bloqueados/proibe_palavra.txt"

    http_access deny rede_local block_redelocal !unblock_redelocal


    Ou seja, você bloquear o best em libera_palavra.txt e libera o ibest ... em proibe_palavra.txt

    isso resolve seu problema ...

    Falow ...
    Última edição por rootmaster; 21-10-2006 às 12:33.