eniomarconcini

squid.conf

Jun 3rd, 2015
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. # PORTA DE ESCUTA
  2. http_port 192.168.0.1:3128
  3.  
  4. # CONFIGURAÇÃO PADRÃO
  5. error_directory /root/squid/msgerros_pref
  6. cache_effective_user squid
  7. cache_effective_group squid
  8. visible_hostname gateway.empresa
  9. dns_nameservers 127.0.0.1
  10. shutdown_lifetime 20 seconds
  11. coredump_dir none
  12. logfile_rotate 2
  13. icp_port 0
  14. cache_mgr email@empresa
  15.  
  16. # MEMÓRIA E CACHE EM RAM
  17. cache_mem 2048 MB
  18. cache_swap_high 95
  19. cache_swap_low 90
  20. maximum_object_size 32 MB
  21. maximum_object_size_in_memory 256 KB
  22. minimum_object_size 1 KB
  23.  
  24. # REGRAS DE RECICLAGEM DOS OBJETOS
  25. memory_replacement_policy heap GDSF
  26. cache_replacement_policy heap LFUDA
  27.  
  28. # AUTENTICAÇÃO
  29. auth_param basic program /usr/local/libexec/squid/basic_ncsa_auth /root/squid/passwd_squid
  30. auth_param basic children 10 startup=5 idle=1
  31. auth_param basic realm Para continuar, digite seu LOGIN e SENHA de acesso a Internet. Todos os sites acessados serao monitorados.
  32. auth_param basic credentialsttl 5 minutes
  33.  
  34. # ARQUIVOS ADICIONAIS
  35. mime_table /usr/local/etc/squid/mime.conf
  36. include "/root/squid/tunning.conf"
  37.  
  38. # INCLUDE DAS ACLs PRINCIPAIS
  39. include "/root/squid/safeports.conf"
  40. include "/root/squid/acls.conf"
  41.  
  42. # LOGs
  43. access_log daemon:/var/log/squid/access.log on-error=drop !SEMLOG_SITES
  44. cache_log /var/log/squid/cache.log
  45. cache_store_log none
  46. debug_options ALL,1
  47. #debug_options 28,9
  48.  
  49. # INCLUDE DO CONTROLE HTTP_ACCESS
  50. include "/root/squid/controle.conf"
  51.  
  52. # FIM
Advertisement
Add Comment
Please, Sign In to add comment