Guest User

Untitled

a guest
Sep 4th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. # Proxy Transparente
  2. http_port 8787 transparent
  3. visible_hostname pombo
  4.  
  5. # Cache em memoria
  6. cache_mem 128 MB
  7. maximum_object_size_in_memory 128 KB
  8.  
  9. # Cache em disco
  10. maximum_object_size 64 MB
  11. minimum_object_size 4 KB
  12. cache_swap_low 90
  13. cache_swap_high 95
  14. cache_dir ufs /var/spool/squid3 2048 16 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 blocked_sites url_regex -i "/etc/squid3/rules/blocked_sites"
  42. #acl free_sites url_regex -i "/etc/squid3/rules/free_sites"
  43. #acl unlimited_ips src "/etc/squid3/rules/unlimited_ips"
  44. #acl limited_downloads url_regex -i "/etc/squid3/rules/limited_downloads"
  45. #acl low_rate url_regex -i "/etc/squid3/rules/low_rate"
  46.  
  47. http_access allow manager localhost
  48. http_access deny manager
  49.  
  50. http_access allow purge localhost
  51. http_access deny purge
  52.  
  53. http_access deny !Safe_ports
  54. http_access deny CONNECT !SSL_ports
  55. htcp_access allow all
  56. icp_access allow all
  57. # Bloqueando e liberando sites e banda para navegacao
  58. #http_access allow unlimited_ips
  59. #http_access allow free_sites
  60. #http_access deny blocked_sites
  61.  
  62. http_access allow localhost
  63. http_access allow local_network
  64. http_access deny all
  65.  
  66. # Limitando banda para navegacao
  67. #delay_pools 2
  68.  
  69. #delay_class 1 2
  70. #delay_parameters 1 380160/380160 4096/4096
  71. #delay_access 1 allow limited_downloads
  72.  
  73. #delay_class 2 2
  74. #delay_parameters 2 380160/380160 4096/4096
  75. #delay_access 2 allow low_rate
Advertisement
Add Comment
Please, Sign In to add comment