Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. acl manager proto cache_object
  2. acl localhost src 127.0.0.1/32
  3. acl to_localhost dst 127.0.0.0/8
  4.  
  5. acl SSL_ports port 443
  6. acl Safe_ports port 80 # http
  7. acl Safe_ports port 21 # ftp
  8. acl Safe_ports port 20 # ftp
  9. acl Safe_ports port 443 # https
  10. acl Safe_ports port 70 # gopher
  11. acl Safe_ports port 210 # wais
  12. acl Safe_ports port 1025-65535 # unregistered ports
  13. acl Safe_ports port 280 # http-mgmt
  14. acl Safe_ports port 488 # gss-http
  15. acl Safe_ports port 591 # filemaker
  16. acl Safe_ports port 777 # multiling http
  17. acl Safe_ports port 84 # multiling http
  18. acl CONNECT method CONNECT
  19.  
  20. acl suporte src "/home/scripts/squid/suporte"
  21. acl redeloc src "/home/scripts/squid/redelocal"
  22. acl liberadas src "/home/scripts/squid/liberadas"
  23. acl proibidas src "/home/scripts/squid/proibidas"
  24. acl liberas url_regex "/home/scripts/squid/libera_site"
  25. acl proibep url_regex "/home/scripts/squid/proibe_palavra"
  26. acl liberap url_regex "/home/scripts/squid/libera_palavra"
  27. acl proibes dstdomain "/home/scripts/squid/proibe_site"
  28. acl msn url_regex "/home/scripts/squid/libera_msn"
  29. acl proibe_msn src "/home/scripts/squid/ips_proibe_msn"
  30.  
  31. http_access allow manager localhost
  32. http_access deny manager
  33. # Deny requests to unknown ports
  34. http_access deny !Safe_ports
  35. # Deny CONNECT to other than SSL ports
  36. http_access deny CONNECT !SSL_ports
  37.  
  38.  
  39. http_access allow localhost
  40.  
  41. http_access deny msn proibe_msn
  42. http_access allow msn
  43. http_access allow liberadas
  44. http_access allow liberas
  45. http_access allow liberap
  46. http_access deny proibep
  47. http_access deny proibes
  48. http_access deny proibidas
  49. http_access allow redeloc
  50. http_access allow suporte
  51.  
  52. http_access deny all
  53.  
  54. icp_access deny all
  55.  
  56. htcp_access deny all
  57.  
  58. http_port 3128
  59.  
  60. hierarchy_stoplist cgi-bin ?
  61.  
  62. access_log /var/log/squid/access.log squid
  63.  
  64. refresh_pattern ^ftp: 1440 20% 10080
  65. refresh_pattern ^gopher: 1440 0% 1440
  66. refresh_pattern (cgi-bin|\?) 0 0% 0
  67. refresh_pattern . 0 20% 4320
  68.  
  69. coredump_dir /var/spool/squid
  70.  
  71. acl NOCACHEDOMAIN dstdomain sinistro.uniaoresgate.com.br
  72. no_cache deny NOCACHEDOMAIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement