+ Responder ao Tópico



  1. Boa tarde...
    Estou tentando descobrir um pequeno probleminha no meu server mas nao estou conseguindo..
    Vou explicar oque esta acontecendo....

    Tenho o Lusca-Squid instalado e funcionando perfeito fazendo cache de todos os arquivos que eu baixo e entregando a full pros meus clientes.
    Ate aqui não tem problema.

    Nessa mesmo PC eu instalei o Thunder3 e ai começa o meu pequeno problema, No meu squid.conf quando eu descomento essas regras...

    Código :
    acl thunder_lst url_regex -i "/etc/thunder/thunder.lst"
     cache deny thunder_lst
     cache_peer 90.90.90.2 parent 8080 0 proxy-only no-digest
     dead_peer_timeout 2 seconds
     cache_peer_access 90.90.90.2 allow thunder_lst
     cache_peer_access 90.90.90.2 deny all
    Ai começa a fazer o cache do thunder cache3 , mas para de fazer cache do Lusca-Squid.

    Ai quando eu vou e Comento as linhas novamente volta a fazer cache do Lusca-Squid.

    Uma obs. Importante quando eu deixa as regras descomentadas ele só faz cache de alguns arquivos como por exemplo .. " MSN, EasyClear" , mas são pouquissimo os arquivos que entra no cache.
    É isso que esta me deixando emcabulado.

    E quando Comento as regras faz cache de qualquer arquivo que eu baixo.

    vou postar meu squid.conf e meu thunder.conf

    Squid.conf ......

    Código :
    http_port 3126 transparent
     icp_port 0
     cache_replacement_policy heap LFUDA
     cache_dir aufs /cache/squid 450000 128 128
     memory_replacement_policy heap GDSF
     cache_mem 512 MB
     maximum_object_size 256 MB
     minimum_object_size 0 KB
     maximum_object_size_in_memory 16 KB
     cache_swap_low 90
     cache_swap_high 95
     ipcache_size 1024
     fqdncache_size 1024
     ipcache_low 90
     ipcache_high 95
     acl QUERY urlpath_regex cgi-bin \?
     no_cache deny QUERY
     mime_table /etc/squid/mime.conf
     pid_filename /var/run/proxy.pid
     debug_options ALL,1
     log_fqdn off
     refresh_pattern ^ftp: 15 20% 2280
     refresh_pattern ^gopher: 15 0% 2280
     refresh_pattern . 15 20% 2280
     acl all src 0.0.0.0/0
     acl redeinterna src 90.90.90.0/24
     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 82
     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
     http_access allow manager localhost
     http_access allow redeinterna
     http_access deny manager
     http_access deny !Safe_ports
     http_access deny CONNECT !SSL_ports
     cache_mgr localhost
     cache_effective_user squid
     cache_effective_group squid
     visible_hostname lusca
     dns_testnames registro.br
     cache_log /var/log/squid/cache.log
     cache_store_log /var/log/squid/store.log
     cache_access_log /var/log/squid/access.log
     visible_hostname localhost
     cache_mgr localhost
     pid_filename /var/run/proxy.pid
     cache_effective_user squid
     cache_effective_group squid
     zph_mode tos
     zph_local 0x30
     zph_parent 0
     zph_option 136
     acl thunder_lst url_regex -i "/etc/thunder/thunder.lst"
     cache deny thunder_lst
     cache_peer 90.90.90.2 parent 8080 0 proxy-only no-digest
     dead_peer_timeout 2 seconds
     cache_peer_access 90.90.90.2 allow thunder_lst
     cache_peer_access 90.90.90.2 deny all
    #### Lembrando a galera que esse squid.conf é do Edilson ####

    Thunder.conf
    Código :
    # PARAMETROS PARA O THUNDER
    CACHEDIR /thunder/
    PLUGINSDIR /etc/thunder/plugins/
    # keep downloading when client stop download
    # KEEPDOWNLOAD true 
    #
    # For reasons of security it is recommended to run a proxy program
    # without root rights. It is recommended to create user that is not
    # used by any other program.
    #
    # Default:
    # USER root
    # GROUP root
    # If this is true thunder is running as daemon in background.
    # For testing you may run thunder at your text console.
    #
    # Default:
    # DAEMON true
    #
    # Process id (PID) of the main thunder process is written to this file.
    # Be sure that it is writeable by the user under which HAVP is running.
    # /etc/init.d/thunder script requires this to work.
    #
    # Default:
    # PIDFILE /var/run/thunder/thunder.pid
    #
    # For performance reasons several instances of thunder have to run.
    # Specify how many servers (child processes) are simultaneously
    # listening on port PORT for a connection. Minimum value should be
    # the peak requests-per-second expected + 5 for headroom. For best
    # performance, you should have atleast 1 CPU core per 16 processes.
    #
    # For single user home use, 8 should be minimum.
    # For 500+ users corporate use, start at 40.
    #
    # Value can and should be higher than recommended. Memory and
    # CPU usage is only affected by the number of concurrent requests.
    #
    # More childs are automatically created when needed, up to MAXSERVERS.
    #
    # Default:
    # SERVERNUMBER 8
    # MAXSERVERS 100
    #
    # Files where to log requests and info/errors.
    # Needs to have write permission for thunder user.
    #
    # Default:
    # ACCESSLOG /var/log/thunder/access.log
    # ERRORLOG /var/log/thunder/thunder.log
    #
    # Syslog can be used instead of logging to file.
    # For facilities and levels, see "man syslog".
    #
    # Default:
    # USESYSLOG false
    # SYSLOGNAME thunder
    # SYSLOGFACILITY daemon
    # SYSLOGLEVEL info
    # SYSLOGVIRUSLEVEL warning
    #
    # true: Log every request to access log
    # false: Log only viruses to access log
    #
    # Default:
    # LOG_OKS true
    #
    # Level of thunder logging
    # 0 = Only serious errors and information
    # 1 = Less interesting information is included
    #
    # Default:
    # LOGLEVEL 0
    # thunder reloads scanners virus database by receiving a signal
    # (send SIGHUP to PID from PIDFILE, see "man kill") or after
    # a specified period of time. Specify here the number of
    # minutes to wait for reloading.
    #
    # This only affects library scanners (clamlib, trophie).
    # Other scanners must be updated manually.
    #
    # Default:
    # DBRELOAD 60 
    #
    # Run thunder as transparent Proxy?
    #
    # If you don't know what this means read the mini-howto
    # TransparentProxy written by Daniel Kiracofe.
    # (e.g.: [URL]http://www.tldp.org/HOWTO/mini/TransparentProxy.html[/URL])
    # Definitely you have more to do than setting this to true.
    # You are warned!
    #
    # Default:
    # TRANSPARENT false
    #
    # Specify a parent proxy (e.g. Squid) thunder should use.
    #
    # Default: NONE
    # PARENTPROXY localhost
    # PARENTPORT 3128
    #
    # Write X-Forwarded-For: to log instead of connecters IP?
    #
    # If thunder is used as parent proxy by some other proxy, this allows
    # to write the real users IP to log, instead of proxy IP.
    #
    # Default:
    # FORWARDED_IP false
    #
    # Send X-Forwarded-For: header to servers?
    #
    # If client sent this header, FORWARDED_IP setting defines the value,
    # then it is passed on. You might want to keep this disabled for security
    # reasons. Enable this if you use your own parent proxy after thunder, so it
    # will see the original client IP.
    #
    # Disabling this also disables Via: header generation.
    #
    # Default:
    # X_FORWARDED_FOR false
    #
    # Port thunder is listening on.
    #
    # Default:
    PORT 8080
    #
    # IP address that thunder listens on.
    # Let it be undefined to bind all addresses.
    #
    # Default: NONE
    # BIND_ADDRESS 127.0.0.1
    #
    # IP address used for sending outbound packets.
    # Let it be undefined if you want OS to handle right address.
    #
    # Default: NONE
    # SOURCE_ADDRESS 1.2.3.4
    Desde Já agradeço muito.
    Última edição por osmano807; 16-12-2010 às 15:24.

  2. testa usando o cache do sistema abaixo:

    https://under-linux.org/f211/monte-o...-cache-149112/






Tópicos Similares

  1. Respostas: 3
    Último Post: 11-02-2011, 08:06
  2. Thunder so faz cache de youtube
    Por salvato no fórum Servidores de Rede
    Respostas: 1
    Último Post: 20-01-2011, 22:23
  3. Após levantar o thunder squid não faz cache de arquivo exe
    Por sosouteiro no fórum Servidores de Rede
    Respostas: 2
    Último Post: 22-10-2010, 11:15
  4. Squid não faz cache de alguns sites
    Por netosdr no fórum Servidores de Rede
    Respostas: 2
    Último Post: 24-08-2006, 08:57
  5. Squid não faz cache de arquivos .EXE
    Por ernany no fórum Servidores de Rede
    Respostas: 3
    Último Post: 13-11-2004, 09:45

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L