+ Responder ao Tópico



  1. #1
    Pangare
    Meu squid está fazendo com que muitas paginas da web nao venham completas, tipo sem figuras scripts links etc.
    Sei que ele eh o responsavel pq qd o paro as paginas ficam sem problemas.
    Alguem ja passou por isso ou sabe como resolver?
    Obrigado!

  2. Você tá bloqueando alguma coisa nele? Pode ser que você tenha bloqueado algumas extensões de arquivos.


    Abraços!



  3. #3
    Pangare
    Eis aki o mime.conf e o squid .conf, nao vi nada que ajudasse:
    Notei que nao sao todas as paginas que vem incompletas, por exemplo a underlinux vem redonda e muitas outras, mas outras como radio.terra.com.br e yahoo.com nao vem.

    mime.conf:
    \.gif$ image/gif anthony-image.gif - image
    \.mime$ www/mime anthony-text.gif - ascii +download
    ^internal-dirup$ - anthony-dirup.gif - ascii
    ^internal-dir$ - anthony-dir.gif - ascii
    ^internal-link$ - anthony-link.gif - ascii
    ^internal-menu$ - anthony-dir.gif - ascii
    ^internal-text$ - anthony-text.gif - ascii
    ^internal-index$ - anthony-dir.gif - ascii
    ^internal-image$ - anthony-image.gif - ascii
    ^internal-sound$ - anthony-sound.gif - ascii
    ^internal-movie$ - anthony-movie.gif - ascii
    ^internal-telnet$ - anthony-portal.gif - ascii
    ^internal-binary$ - anthony-box.gif - ascii
    ^internal-unknown$ - anthony-unknown.gif - ascii
    ^internal-view$ - anthony-text.gif - ascii
    ^internal-download$ - anthony-box.gif - ascii
    \.bin$ application/macbinary anthony-unknown.gif - image
    \.oda$ application/oda anthony-unknown.gif - image
    \.exe$ application/octet-stream anthony-unknown.gif - image
    \.pdf$ application/pdf anthony-unknown.gif - image
    \.ai$ application/postscript anthony-ps.gif - ascii +download
    \.eps$ application/postscript anthony-ps.gif - ascii +download
    \.ps$ application/postscript anthony-ps.gif - ascii +download +view
    \.rtf$ application/x-rtf anthony-unknown.gif - image
    \.Z$ - anthony-compressed.gif compress image
    \.gz$ - anthony-unknown.gif gzip image
    \.tgz$ application/x-tar anthony-tar.gif gzip image
    \.csh$ application/x-csh anthony-script.gif - ascii
    \.dvi$ application/x-dvi anthony-dvi.gif - image
    \.hdf$ application/x-hdf anthony-unknown.gif - image
    \.latex$ application/x-latex anthony-tex.gif - ascii
    \.lsm$ text/plain anthony-text.gif - ascii
    \.nc$ application/x-netcdf anthony-unknown.gif - image
    \.cdf$ application/x-netcdf anthony-unknown.gif - ascii +download
    \.sh$ application/x-sh anthony-script.gif - ascii
    \.tcl$ application/x-tcl anthony-script.gif - ascii +view
    \.tex$ application/x-tex anthony-tex.gif - ascii
    \.texi$ application/x-texinfo anthony-tex.gif - ascii
    \.texinfo$ application/x-texinfo anthony-tex.gif - ascii
    \.t$ application/x-troff anthony-text.gif - ascii
    \.roff$ application/x-troff anthony-text.gif - ascii
    \.tr$ application/x-troff anthony-text.gif - ascii
    \.man$ application/x-troff-man anthony-text.gif - ascii
    \.me$ application/x-troff-me anthony-text.gif - ascii
    \.ms$ application/x-troff-ms anthony-text.gif - ascii
    \.src$ application/x-wais-source anthony-text.gif - ascii +download
    \.zip$ application/x-zip-compressed anthony-compressed.gif - image
    \.bcpio$ application/x-bcpio anthony-unknown.gif - image
    \.cpio$ application/x-cpio anthony-unknown.gif - image
    \.gtar$ application/x-gtar anthony-tar.gif - image
    \.rpm$ application/x-rpm anthony-unknown.gif - image
    \.shar$ application/x-shar anthony-script.gif - image +download +view
    \.sv4cpio$ application/x-sv4cpio anthony-unknown.gif - image
    \.sv4crc$ application/x-sv4crc anthony-unknown.gif - image
    \.tar$ application/x-tar anthony-tar.gif - image
    \.ustar$ application/x-ustar anthony-tar.gif - image
    \.au$ audio/basic anthony-sound.gif - image
    \.snd$ audio/basic anthony-sound.gif - image
    \.mp2$ audio/basic anthony-sound.gif - image
    \.mp3$ audio/basic anthony-sound.gif - image
    \.aif$ audio/x-aiff anthony-sound.gif - image
    \.aiff$ audio/x-aiff anthony-sound.gif - image
    \.aifc$ audio/x-aiff anthony-sound.gif - image
    \.wav$ audio/x-wav anthony-sound.gif - image
    \.ief$ image/ief anthony-image.gif - image
    \.jpeg$ image/jpeg anthony-image.gif - image
    \.jpg$ image/jpeg anthony-image.gif - image
    \.jpe$ image/jpeg anthony-image.gif - image
    \.tiff$ image/tiff anthony-image.gif - image
    \.tif$ image/tiff anthony-image.gif - image
    \.ras$ image/cmu-raster anthony-image.gif - image
    \.pnm$ image/x-portable-anymap anthony-image.gif - image
    \.pbm$ image/x-portable-bitmap anthony-image.gif - image
    \.pgm$ image/x-portable-graymap anthony-image.gif - image
    \.ppm$ image/x-portable-pixmap anthony-image.gif - image
    \.rgb$ image/x-rgb anthony-image.gif - image
    \.xbm$ image/x-xbitmap anthony-xbm.gif - image
    \.xpm$ image/x-xpixmap anthony-xpm.gif - image
    \.xwd$ image/x-xwindowdump anthony-image.gif - image
    \.html$ text/html anthony-text.gif - ascii
    \.htm$ text/html anthony-text.gif - ascii
    \.c$ text/plain anthony-c.gif - ascii
    \.h$ text/plain anthony-c.gif - ascii
    \.cc$ text/plain anthony-c.gif - ascii
    \.hh$ text/plain anthony-c.gif - ascii
    \.m$ text/plain anthony-text.gif - ascii
    \.f90$ text/plain anthony-text.gif - ascii
    \.txt$ text/plain anthony-text.gif - ascii
    \.rtx$ text/richtext anthony-text.gif - ascii +download
    \.tsv$ text/tab-separated-values anthony-text.gif - ascii +download
    \.etx$ text/x-setext anthony-text.gif - ascii +download
    \.mpeg$ video/mpeg anthony-movie.gif - image
    \.mpg$ video/mpeg anthony-movie.gif - image
    \.mpe$ video/mpeg anthony-movie.gif - image
    \.qt$ video/quicktime anthony-movie.gif - image
    \.mov$ video/quicktime anthony-movie.gif - image
    \.avi$ video/x-msvideo anthony-movie.gif - image
    \.movie$ video/x-sgi-movie anthony-movie.gif - image
    \.hqx$ application/mac-binhex40 anthony-binhex.gif - image
    \.mwrt$ application/macwriteii anthony-unknown.gif - image
    \.msw$ application/msword anthony-unknown.gif - image
    \.doc$ application/msword anthony-unknown.gif - image +view
    \.xls$ application/msexcel anthony-unknown.gif - image
    \.wk[s1234]$ application/vnd.lotus-1-2-3 anthony-unknown.gif - image
    \.mif$ application/x-mif anthony-unknown.gif - image
    \.sit$ application/stuffit anthony-unknown.gif - image
    \.pict$ application/pict anthony-image.gif - image
    \.pic$ application/pict anthony-image.gif - image
    \.arj$ application/x-arj-compressed anthony-compressed.gif - image
    \.lzh$ application/x-lha-compressed anthony-compressed.gif - image
    \.lha$ application/x-lha-compressed anthony-compressed.gif - image
    \.zlib$ application/x-deflate anthony-compressed.gif deflate image
    README text/plain anthony-text.gif - ascii +download
    ^core$ application/octet-stream anthony-bomb.gif - image
    \.core$ application/octet-stream anthony-bomb.gif - image
    \.png$ image/png anthony-image.gif - image
    \.cab$ application/octet-stream anthony-compressed.gif - image +view
    # the default
    . text/plain anthony-unknown.gif - image +view +download

    -------------------------------------------------------------------------------
    squid.conf:
    visible_hostname localhost
    http_port 3128
    icp_port 3130
    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \?
    no_cache deny QUERY

    cache_mem 64 MB # limitação de uso da memória (1/2 da RAM)
    cache_dir ufs /var/cache/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/cache_store.log
    cache_effective_user proxy
    cache_effective_group proxy
    error_directory /usr/share/squid/errors/Portuguese

    mime_table /etc/squid/mime.conf
    pid_filename /var/run/squid.pid
    ftp_list_width 64

    emulate_httpd_log off

    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 dest_local dst 127.0.0.0/255.255.255.255
    acl rede_mpas src 10.0.0.0/255.0.0.0
    acl dest_all dst 0.0.0.0/0.0.0.0
    acl porn url_regex "/etc/squid/porn"
    acl notporn url_regex "/etc/squid/notporn"
    acl SSL_ports port 443 563
    acl Safe_ports port 80 21 443 563 70 210 1025-65535
    acl CONNECT method CONNECT

    acl cacic url_regex ^http://10.1.0.10/prog
    no_cache deny prog

    http_access deny CONNECT !SSL_ports
    http_access deny !Safe_ports
    http_access deny manager
    http_access allow notporn all
    http_access deny porn all
    http_access allow localhost
    http_access allow manager rede_mpas
    http_access allow rede_mpas
    http_access allow dest_local
    http_access allow dest_all
    http_access deny all

    # Para proxy transparente
    httpd_accel_host 127.0.0.1
    httpd_accel_port 80
    httpd_accel_host virtual
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on

    dns_testnames 127.0.0.1
    dns_nameservers 10.1.120.233 10.1.120.223
    memory_pools on
    memory_pools_limit 64.000000 bytes # 1/2 da RAM

    acl snmppublic snmp_community public
    snmp_port 3401
    snmp_access allow snmppublic localhost
    snmp_access allow snmppublic all

    icp_access allow all
    wccp_router 10.1.0.250
    wccp_version 4

  4. Faça o seguinte teste:
    Pegue uma página que você sabe que não abre inteira e abra com o seu access.log rodando por meio do tail (tail -f /var/log/squid/acess.log) e vê que ele mostra. Ou então abre ele manualmente e procura pela palavra DENIED.
    Outra solução interessante é deixar o SARG rodando aí, depois você vê o que ele está bloqueando e o que ele está deixando passar.


    Abraços!






Tópicos Similares

  1. Squid nao entra paginas Banco Real,Globo.com,Squid-Cache.org,etc
    Por tskstar no fórum Servidores de Rede
    Respostas: 11
    Último Post: 28-02-2009, 18:59
  2. Me Ajudem - Problemas Página www.citibank.com.br com squid .
    Por hawk23 no fórum Servidores de Rede
    Respostas: 7
    Último Post: 03-08-2004, 10:51
  3. Problemas com squid e rota
    Por ATNunes no fórum Servidores de Rede
    Respostas: 1
    Último Post: 10-02-2003, 11:22
  4. Servidor Linux RH 8 para fazer proxy com squid
    Por no fórum Servidores de Rede
    Respostas: 3
    Último Post: 05-02-2003, 23:38
  5. QUERO MONTAR PROXY/NAT COM SQUID
    Por NoiseMaster no fórum Servidores de Rede
    Respostas: 2
    Último Post: 06-09-2002, 18:15

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L