+ Responder ao Tópico



  1. Citação Postado originalmente por LASERNET Ver Post
    Olá amigo, o meu squid.conf é esse veja por favor o que vc acha, inclusive o maximum_object_size_in_memory 64 KB
    eu não consigo mudar para maximum_object_size_in_memory 128 KB, quando eu mudo faço backup e reinicio volta do mesmo jeoto que tava, já fiz isto atrves de editar qualquer arquivo no bfw e do winsscp. o que vc acha?




    http_port 3128 transparent
    icp_port 0
    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \?
    acl video_cache dstdomain -i "/usr/local/squid/etc/cache.flt"
    cache allow video_cache
    cache deny QUERY
    #cache_replacement_policy heap LRU
    cache_replacement_policy heap LFUDA
    memory_replacement_policy heap GDSF
    cache_mem 156 MB
    maximum_object_size 20000 KB
    minimum_object_size 4 KB
    maximum_object_size_in_memory 128 KB
    cache_dir diskd /partition/squid/cache 5000 16 256 Q1=72 Q2=64
    cache_access_log none
    cache_store_log none
    cache_effective_user nobody
    cache_effective_group nogroup
    pid_filename /var/run/squid.pid
    half_closed_clients off
    server_persistent_connections off
    client_persistent_connections off
    memory_pools off
    buffered_logs on
    pipeline_prefetch on
    #cache_swap_low 70
    #cache_swap_high 90
    refresh_pattern -i ^http://.*\.(css|htm|html|ico|js|jsp|xml)$ 1440 80% 999999
    refresh_pattern -i ^http://.*\.(bmp|gif|jpeg|jpg|png)$ 1440 80% 999999 ignore-reload
    refresh_pattern -i ^http://.*\.(ace|adt|arj|asf|avi|bin|bz2|bzip|cab|dat|dll|doc|dot|exe|fla|flv|gz|iso|lha|log|lzh|mdb|mid|mov|mp3|mpeg|mpg|msi|mso|ogg|pps|ppt|rar|rm|rtf|shs|src|sys|swf|tgz|tif|ttf|wav|wma|wri|wmv|vpu|vpaa|vqf|vob|zip)$ 43200 100% 999999 ignore-reload
    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.1/32
    acl SSL_ports port 443 563
    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 8180
    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 purge method PURGE
    acl CONNECT method CONNECT
    #Access deny to Squid ident. header
    header_access Via deny all
    header_access X-Forwarded-For deny all
    header_access Proxy-Connection deny all
    header_access Accept-Encoding deny all
    server_persistent_connections off
    zph_mode tos
    zph_local 0x30
    acl filterneg dstdom_regex "/usr/local/squid/etc/filter.flt"
    acl downloads_blocked urlpath_regex -i \.scr$ \.bat$ \.pif$ \.cmd$\.rmvb$\.3gp.rar$\.avi$
    acl internal_net src "/usr/local/squid/etc/ipaccess.yes"
    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access allow PURGE localhost
    http_access deny purge
    http_access deny filterneg
    http_reply_access deny downloads_blocked
    http_access allow internal_net
    http_access deny all
    #http_reply_access allow all
    #icp_access allow all
    acl apache rep_header Server ^Apache
    broken_vary_encoding allow apache
    visible_hostname brazilfw
    coredump_dir /partition/squid/cache
    error_directory /usr/local/squid/share/errors/Portuguese
    O meu esta um pouco diferente da uma olha da so.. aki esta muito bom..
    copia esse aki e cola la no seu so muda o tamanho da memoria e do chache...ok..

    http_port 8080 transparent
    icp_port 0
    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \?
    cache deny QUERY
    #cache_replacement_policy heap LRU
    cache_replacement_policy heap LFUDA
    memory_replacement_policy heap GDSF
    cache_mem 750 MB
    maximum_object_size 40000 KB
    minimum_object_size 4 KB
    maximum_object_size_in_memory 64 KB
    cache_dir diskd /partition/squid/cache 100000 16 256 Q1=72 Q2=64
    cache_access_log none
    cache_store_log none
    cache_effective_user nobody
    cache_effective_group nogroup
    pid_filename /var/run/squid.pid
    half_closed_clients off
    memory_pools off

    #cache_swap_low 70
    #cache_swap_high 90

    refresh_pattern -i ^http://.*\.(css|htm|html|ico|js|jsp|xml)$ 1440 80% 999999
    refresh_pattern -i ^http://.*\.(bmp|gif|jpeg|jpg|png)$ 1440 80% 999999 ignore-reload
    refresh_pattern -i ^http://.*\.(ace|adt|arj|asf|avi|bin|bz2|bzip|cab|dat|dll|doc|dot|exe|fla|flv|gz|iso|lha|log|lzh|mdb|mid|mov|mp3|mpeg|mpg|msi|mso|ogg|pps|ppt|rar|rm|rtf|shs|src|sys|swf|tgz|tif|ttf|wav|wma|wri|wmv|vpu|vpaa|vqf|vob|zip)$ 43200 100% 999999 ignore-reload

    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.1/32
    acl SSL_ports port 443 563
    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 8180
    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 purge method PURGE
    acl CONNECT method CONNECT

    #Access deny to Squid ident. header
    #header_access Via deny all
    #header_access X-Forwarded-For deny all
    #header_access Proxy-Connection deny all
    #header_access Accept-Encoding deny all

    ### Zero Penalty Hits ###
    server_persistent_connections off
    zph_mode tos
    zph_local 0x30
    acl internal_net src "/usr/local/squid/etc/ipaccess.yes"

    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access allow PURGE localhost
    http_access deny purge
    http_access allow internal_net
    http_access deny all
    #http_reply_access allow all
    #icp_access allow all
    acl apache rep_header Server ^Apache
    broken_vary_encoding allow apache
    visible_hostname madnet
    coredump_dir /partition/squid/cache
    error_directory /usr/local/squid/share/errors/Portuguese

  2. Citação Postado originalmente por binhorak Ver Post
    O meu esta um pouco diferente da uma olha da so.. aki esta muito bom..
    copia esse aki e cola la no seu so muda o tamanho da memoria e do chache...ok..

    http_port 8080 transparent
    icp_port 0
    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \?
    cache deny QUERY
    #cache_replacement_policy heap LRU
    cache_replacement_policy heap LFUDA
    memory_replacement_policy heap GDSF
    cache_mem 750 MB
    maximum_object_size 40000 KB
    minimum_object_size 4 KB
    maximum_object_size_in_memory 64 KB
    cache_dir diskd /partition/squid/cache 100000 16 256 Q1=72 Q2=64
    cache_access_log none
    cache_store_log none
    cache_effective_user nobody
    cache_effective_group nogroup
    pid_filename /var/run/squid.pid
    half_closed_clients off
    memory_pools off

    #cache_swap_low 70
    #cache_swap_high 90

    refresh_pattern -i ^http://.*\.(css|htm|html|ico|js|jsp|xml)$ 1440 80% 999999
    refresh_pattern -i ^http://.*\.(bmp|gif|jpeg|jpg|png)$ 1440 80% 999999 ignore-reload
    refresh_pattern -i ^http://.*\.(ace|adt|arj|asf|avi|bin|bz2|bzip|cab|dat|dll|doc|dot|exe|fla|flv|gz|iso|lha|log|lzh|mdb|mid|mov|mp3|mpeg|mpg|msi|mso|ogg|pps|ppt|rar|rm|rtf|shs|src|sys|swf|tgz|tif|ttf|wav|wma|wri|wmv|vpu|vpaa|vqf|vob|zip)$ 43200 100% 999999 ignore-reload

    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.1/32
    acl SSL_ports port 443 563
    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 8180
    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 purge method PURGE
    acl CONNECT method CONNECT

    #Access deny to Squid ident. header
    #header_access Via deny all
    #header_access X-Forwarded-For deny all
    #header_access Proxy-Connection deny all
    #header_access Accept-Encoding deny all

    ### Zero Penalty Hits ###
    server_persistent_connections off
    zph_mode tos
    zph_local 0x30
    acl internal_net src "/usr/local/squid/etc/ipaccess.yes"

    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access allow PURGE localhost
    http_access deny purge
    http_access allow internal_net
    http_access deny all
    #http_reply_access allow all
    #icp_access allow all
    acl apache rep_header Server ^Apache
    broken_vary_encoding allow apache
    visible_hostname madnet
    coredump_dir /partition/squid/cache
    error_directory /usr/local/squid/share/errors/Portuguese
    Obrigado amigo, vou testar, s´mais uma coisa, porque quando eu mudo o maximum_object_size_in_memory 64 KB p/ 128 kb faço backup e reboote ele volta aos 64 kb novamente?



  3. Citação Postado originalmente por LASERNET Ver Post
    Obrigado amigo, vou testar, s´mais uma coisa, porque quando eu mudo o maximum_object_size_in_memory 64 KB p/ 128 kb faço backup e reboote ele volta aos 64 kb novamente?
    Esse ai é padrão so pode ser mudado se seu hd tover 160 gb ou +

  4. Uma Ótima leitura pra os iniciantes e intermediarios:
    Curso:Como funciona o Proxy (Do Básico ao Avançado) - Under-Linux.org

    Abraço



  5. Fala Valmir, beleza ? vi que você criou vários tópicos à respeito do squid...

    uma pergunta, esse seu squid é pra sua lan house, mas o que vc quer fazer ? vc só quer compartilhar a net e fazer cache da mesma ou quer impor alguns bloqueios ? como por exemplo bloquear o download de certas extensões...






Tópicos Similares

  1. Instalação e configuração do squid
    Por derci no fórum Sistemas Operacionais
    Respostas: 8
    Último Post: 12-09-2010, 18:39
  2. Squid - Instalação e Configuração
    Por Netfile no fórum Servidores de Rede
    Respostas: 1
    Último Post: 19-04-2004, 17:37
  3. Instalação e Configuração
    Por ricardodru no fórum Servidores de Rede
    Respostas: 1
    Último Post: 07-11-2003, 13:02
  4. Instalação e Configuração do Servidor Apache
    Por Wal no fórum Servidores de Rede
    Respostas: 1
    Último Post: 30-08-2003, 18:07
  5. Instalação e Configuração do Snort
    Por no fórum Segurança
    Respostas: 2
    Último Post: 05-12-2002, 23:23

Visite: BR-Linux ·  VivaOLinux ·  Dicas-L