Guest User

Untitled

a guest
Oct 9th, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. http_port 8787 transparent
  2. visible_hostname nome_servidor
  3. visible_hostname on
  4.  
  5. # Cache em memoria
  6. cache_mem 512 MB
  7. maximum_object_size_in_memory 256 KB
  8.  
  9. # Cache em disco
  10. maximum_object_size 128 MB
  11. minimum_object_size 4 KB
  12. cache_swap_low 90
  13. cache_swap_high 95
  14. cache_dir ufs /var/spool/squid3 8192 64 256
  15. refresh_pattern ^ftp: 15 20% 1440
  16. refresh_pattern ^gopher: 15 0% 1440
  17. refresh_pattern . 15 20% 1440
  18.  
  19. # Acl's de conexao e cache
  20. acl manager proto cache_object
  21. acl localhost src 127.0.0.1/32
  22. acl local_network src 10.0.0.0/24
  23.  
  24. acl SSL_ports port 443 563
  25. acl Safe_ports port 80 # http
  26. acl Safe_ports port 21 # ftp
  27. acl Safe_ports port 443 # https
  28. acl Safe_ports port 70 # gopher
  29. acl Safe_ports port 210 # wais
  30. acl Safe_ports port 280 # http-mgmt
  31. acl Safe_ports port 488 # gss-http
  32. acl Safe_ports port 591 # filemaker
  33. acl Safe_ports port 777 # multiling http
  34. acl Safe_ports port 901 # swat
  35. acl Safe_ports port 1025-65535 # high ports
  36.  
  37. acl purge method PURGE
  38. acl CONNECT method CONNECT
  39.  
  40. # Acl's de bloqueio
  41. acl unlimited_ips src "/etc/squid3/rules/unlimited_ips"
  42. acl free_sites dstdom_regex "/etc/squid3/rules/free_sites"
  43. acl blocked_sites url_regex -i "/etc/squid3/rules/blocked_sites"
  44.  
  45. http_access allow manager localhost
  46. http_access deny manager
  47. http_access allow purge localhost
  48. http_access deny purge
  49. http_access deny !Safe_ports
  50. http_access deny CONNECT !SSL_ports
  51. htcp_access allow all
  52. icp_access allow all
  53.  
  54. # Libera o resto
  55. http_access allow unlimited_ips
  56. http_access allow free_sites
  57. http_access deny blocked_sites
  58. http_access allow localhost
  59. http_access allow local_network
  60. http_access deny all
Advertisement
Add Comment
Please, Sign In to add comment