+ Responder ao Tópico



  1. #1
    salcam
    Galera o regex não funciona com esse squid??
    http_port 3128
    cache_mem 8 MB
    cache_dir ufs /var/spool/squid 100 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
    memory_pools off
    maximum_object_size_in_memory 8 KB
    error_directory /usr/share/squid/errors/Portuguese
    visible_hostname on

    #cache de arquivos grandes (32 MB)
    maximum_object_size 30 MB

    # Proxy transparente
    httpd_accel_port 80
    httpd_accel_host virtual
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on

    # Fim Proxy Transparente

    acl all src 0.0.0.0/0.0.0.0
    acl localhost src 127.0.0.1/255.255.255.255
    acl SSL_ports port 443 563 10000i 9898
    acl Safe_ports port 80
    acl Safe_ports port 21
    acl Safe_ports port 443 563
    acl Safe_ports port 70
    acl Safe_ports port 210
    acl Safe_ports port 1025-65535
    acl Safe_ports port 280
    acl Safe_ports port 488
    acl Safe_ports port 591
    acl Safe_ports port 777
    acl Safe_ports port 901
    acl Safe_ports port 3306
    acl Safe_ports port 119
    acl Safe_ports port 1869
    acl Safe_ports port 1863 # Messenger
    # Porta do AIM
    # acl Safe_ports port 9898
    acl purge method PURGE
    acl CONNECT method CONNECT
    acl total src 1.0.0.12 1.0.0.8 1.0.0.24 1.0.0.26 1.0.0.23 1.0.0.4 1.0.0.20 1.0.0.11 1.0.0.30

    acl treinamento src 1.0.0.11 1.0.0.12 1.0.0.13 1.0.0.14 1.0.0.15 1.0.0.16 1.0.0.17 1.0.0.18 1.0.0.19 1.0.0.20 1.0.0.21 1.0.0.22 1.0.0.23 1.0.0.25
    acl banco src 1.0.0.29
    acl soft src 1.0.0.2 1.0.0.3 1.0.0.4 1.0.0.7
    acl multimidia src 1.0.0.9
    acl hotmail src 1.0.0.6 1.0.0.4 1.0.0.26
    acl email src 1.0.0.6 1.0.0.10 1.0.0.29 1.0.0.2 1.0.0.3 1.0.0.7 1.0.0.9 1.0.0.8
    acl loja dstdomain "/etc/squid/loja.lista"
    acl lojahost dst "/etc/squid/loja.host"
    acl todos dstdomain "/etc/squid/todos.lista"
    acl bancos dstdomain "/etc/squid/banco.lista"
    acl locacao dstdomain "/etc/squid/locacao.lista"
    acl softlista dstdomain "/etc/squid/soft.lista"
    acl manutencaolista dstdomain "/etc/squid/manutencao.lista"
    acl manutencaohost dst "/etc/squid/manutencao.host"
    acl multimidialista dstdomain "/etc/squid/multimidia.lista"
    acl lista dstdomain "/etc/squid/msnblock.lista"
    #acl host dst "/etc/squid/msnhost.lista"
    acl icq dstdomain "/etc/squid/icq.lista"
    acl emaillista dstdomain "/etc/squid/mail.lista"
    acl bloqueado dstdomain "/etc/squid/bloqueado.lista"
    deny_info ERRO_SALCAM all
    http_access allow manager localhost
    http_access deny manager
    http_access allow purge localhost
    http_access deny purge
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access allow localhost
    http_access deny bloqueado
    http_access allow total
    http_access allow all todos
    http_access deny email emaillista
    http_access deny all lista
    http_access allow hotmail lista
    http_access allow vendas loja
    http_access allow vendas lojahost
    http_access allow manutencao manutencaolista
    http_access allow manutencao manutencaohost
    http_access allow multimidia multimidialista
    #http_access deny msnblock host
    #http_access allow all treinamento
    http_access allow soft softlista
    http_access allow banco bancos
    http_access deny all

    icp_access allow all

    miss_access deny bloqueado
    miss_access allow total
    miss_access allow all todos
    miss_access deny email emaillista
    miss_access allow hotmail lista
    miss_access deny all lista
    miss_access allow vendas loja
    miss_access allow vendas lojahost
    miss_access allow manutencao manutencaolista
    miss_access allow manutencao manutencaohost
    #miss_access deny msnblock host
    miss_access allow multimidia multimidialista
    #miss_access allow all treinamento
    miss_access allow soft softlista
    miss_access allow banco bancos
    miss_access deny all





  2. Não entendi a sua pergunta. Regex que você tá falando é nas ACL's?



  3. #3
    salcam
    isso correto

  4. Normalmente aceita, mas onde no seu squid.conf tem regex?



  5. #5
    salcam
    tentei por mais naum deu certo alguem pode dar exemplo obrigado






Tópicos Similares

  1. Regex
    Por salcam no fórum Servidores de Rede
    Respostas: 1
    Último Post: 17-07-2006, 19:45
  2. squid - regex -i
    Por whinston no fórum Servidores de Rede
    Respostas: 3
    Último Post: 15-11-2005, 00:55
  3. usando url-regex
    Por leugimfilho no fórum Servidores de Rede
    Respostas: 3
    Último Post: 04-10-2005, 14:07
  4. Proxy pass com regex
    Por SDM no fórum Servidores de Rede
    Respostas: 6
    Último Post: 01-03-2005, 14:17
  5. mod_rewrite + regex
    Por jamba no fórum Servidores de Rede
    Respostas: 5
    Último Post: 21-01-2005, 15:30

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L