Guest User

Untitled

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