Advertisement
Guest User

squid.conf

a guest
Jan 5th, 2012
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. #
  2. debug_options ALL,9
  3. #
  4.  
  5. hierarchy_stoplist cgi-bin ?
  6. acl QUERY urlpath_regex cgi-bin \?
  7. cache deny QUERY
  8. acl apache rep_header Server ^Apache
  9. access_log /var/log/squid/access.log squid
  10. hosts_file /etc/hosts
  11.  
  12. refresh_pattern ^ftp: 1440 20% 10080
  13. refresh_pattern ^gopher: 1440 0% 1440
  14. refresh_pattern . 0 20% 4320
  15.  
  16. acl all src all
  17. acl manager proto cache_object
  18. acl localhost src 127.0.0.1/32
  19. acl to_localhost dst 127.0.0.0/8
  20.  
  21. acl SSL_ports port 443 563 # https, snews
  22. acl SSL_ports port 873 # rsync
  23. acl Safe_ports port 80 # http
  24. acl Safe_ports port 21 # ftp
  25. acl Safe_ports port 443 563 # https, snews
  26. acl Safe_ports port 70 # gopher
  27. acl Safe_ports port 210 # wais
  28. acl Safe_ports port 1025-65535 # unregistered ports
  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 631 # cups
  34. acl Safe_ports port 873 # rsync
  35. acl Safe_ports port 901 # SWAT
  36.  
  37. ###
  38. acl viator dstdomain .facebook.com
  39. ###
  40.  
  41. acl purge method PURGE
  42. acl CONNECT method CONNECT
  43. http_access allow manager localhost
  44. http_access deny manager
  45. http_access allow purge localhost
  46. http_access deny purge
  47. http_access deny !Safe_ports
  48. http_access deny CONNECT !SSL_ports
  49. http_access allow localhost
  50. acl lan src 192.168.1.0/24
  51. http_access allow localhost
  52. http_access allow lan
  53. http_access deny all
  54. http_reply_access allow all
  55. icp_access allow all
  56. always_direct allow all
  57.  
  58. ###
  59. cache_peer tor.proxy parent 9050 7 no-query default
  60. cache_peer_access tor.proxy allow viator
  61. never_direct allow viator
  62. always_direct allow !viator
  63.  
  64. http_port 3128 transparent
  65. ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement