+ Responder ao Tópico



  1. #1

    Padrão Aleluiaaa. Squid Funfou.

    Ae, galera, brigadu pela força. Agora tá bloqueando legal e liberando nas horas definidas. Só tem um probleminha que não é de hoje. Se eu navego sem proxy, jóia. Com o proxy, demora um tempão pra responder.
    Mas, depois do tempão, carrega a pag bem rápido.
    Alguma regra do squid? To testando sem trafego, no sabado.
    Detalhe. Essas regras comentadas ae servem pra que?
    Fui eu quem comentei. Não mudou nada.

    http_port 192.168.1.1:3128
    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \?
    no_cache deny QUERY
    cache_mem 100 MB
    cache_swap_low 90
    cache_swap_high 95
    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
    pid_filename /var/run/squid.pid
    #auth_param basic children 5
    #auth_param basic realm Squid proxy-caching web server
    #auth_param basic credentialsttl 2 hours
    #refresh_pattern ^ftp: 1440 20% 10080
    #refresh_pattern ^gopher: 1440 0% 1440
    #refresh_pattern . 0 20% 4320
    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 CONNECT method CONNECT

    acl bloquear url_regex -i "/etc/squid/bloqueados"
    acl livre time SMTWHFA 16:00-23:59
    acl rango time SMTWHFA 11:30-13:00
    http_access allow livre all
    http_access deny bloquear !livre rango all


    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    acl our_networks src 192.168.1.0/24 192.168.25.0/24 192.168.24.0/24 192.168.23.0/24 192.168.22.0/24 192.168.21.0/24 10.10.25.0/24 10.10.24.0/24 10.10.23.0/24 10.10.22.0/24 10.10.21.0/24
    http_access allow our_networks
    http_access allow localhost
    http_reply_access allow all
    icp_access allow all
    visible_hostname tibagi.pr.gov.br

    #coredump_dir /var/spool/squid
    ie_refresh on
    httpd_accel_host virtual
    httpd_accel_port 80
    httpd_accel_with_proxy on
    httpd_accel_uses_host_header on
    :good:

  2. #2

    Padrão Aleluiaaa. Squid Funfou.

    :toim: Ninguem tem uma dica ae???

  3. #3

  4. #4

    Padrão Aleluiaaa. Squid Funfou.

    pode ser memoria
    no meu caso
    ele demorava pra resolver
    ai coloquei um dns cache
    minha rede tem 60 compu
    melhorou muito

  5. #5

    Padrão Aleluiaaa. Squid Funfou.

    auth é para usar com proxy autenticado, e o refresh_pattern é para bloquear o reload da pagina por um determinado tempo, mas nem vira usar isso, o proxy autenticado vai depender da sua necessidade.

  6. #6

    Padrão Aleluiaaa. Squid Funfou.

    Jadir.. qual seu hardware e quantia de maquinas na rede?

  7. #7

    Padrão Aleluiaaa. Squid Funfou.

    Ae, jim. Blz???
    O servidor é P-IV 2.8/ 512m/ RH9.
    Tenho na rede em torno de 70 maquinas. 40 win98, 20 Xp e 10 linux.
    Ah, não uso proxy autenticado.