Guest User

squid.conf

a guest
Jan 15th, 2013
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. http_port 3128
  2. visible_hostname servidor
  3.  
  4. error_directory /usr/share/squid/errors/Portuguese
  5.  
  6. hierarchy_stoplist CGI-bin ?
  7.  
  8. cache_mgr admin@seu_dominio.com.br
  9.  
  10. cache_mem 64 MB
  11. maximum_object_size_in_memory 64 KB
  12. maximum_object_size 512 MB
  13. minimum_object_size 0 KB
  14. cache_swap_low 90
  15. cache_swap_high 95
  16. cache_dir ufs /var/spool/squid3 2048 16 256
  17. cache_access_log /var/log/squid3/access.log
  18.  
  19. refresh_pattern ^ftp: 15 20% 2280
  20. refresh_pattern ^gopher: 15 0% 2280
  21. refresh_pattern . 15 20% 2280
  22.  
  23. acl all src 0.0.0.0/0.0.0.0
  24. acl manager proto cache_object
  25. acl localhost src 127.0.0.1/255.255.255.255
  26. acl SSL_ports port 443 563
  27. acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
  28. acl purge method PURGE
  29. acl CONNECT method CONNECT
  30.  
  31. http_access allow manager localhost
  32. http_access deny manager
  33. http_access allow purge localhost
  34. http_access deny purge
  35. http_access deny !Safe_ports
  36. http_access deny CONNECT !SSL_ports
  37.  
  38.  
  39. acl google dstdomain http://google.com
  40.  
  41. acl rede_local src 10.10.0.0/16
  42. acl palavras_bloqueadas url_regex -i "/etc/squid3/palavras_bloqueadas.txt"
  43. acl sites_bloqueados url_regex -i "/etc/squid3/ sites_bloqueados.txt"
  44. acl liberados src "/etc/squid3/ips_liberados.txt"
  45. acl formato_arquivo url_regex -i "/etc/squid3/formato_arquivo.txt"
  46.  
  47. http_access allow liberados
  48. http_access deny sites_bloqueados
  49. http_access deny palavras_bloqueadas
  50. http_access deny formato_arquivo
  51. http_access allow rede_local
  52. http_access allow localhost
  53.  
  54. http_access deny all
Advertisement
Add Comment
Please, Sign In to add comment