digest_squid.conf 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #
  2. # Recommended minimum configuration:
  3. #
  4. # Example rule allowing access from your local networks.
  5. # Adapt to list your (internal) IP networks from where browsing
  6. # should be allowed
  7. acl localnet src 0.0.0.1-0.255.255.255 # RFC 1122 "this" network (LAN)
  8. acl localnet src 10.0.0.0/8 # RFC 1918 local private network (LAN)
  9. acl localnet src 100.64.0.0/10 # RFC 6598 shared address space (CGN)
  10. acl localnet src 169.254.0.0/16 # RFC 3927 link-local (directly plugged) machines
  11. acl localnet src 172.16.0.0/12 # RFC 1918 local private network (LAN)
  12. acl localnet src 192.168.0.0/16 # RFC 1918 local private network (LAN)
  13. acl localnet src fc00::/7 # RFC 4193 local private network range
  14. acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
  15. acl SSL_ports port 443
  16. acl SSL_ports port 1025-65535
  17. acl Safe_ports port 80 # http
  18. acl Safe_ports port 21 # ftp
  19. acl Safe_ports port 443 # https
  20. acl Safe_ports port 70 # gopher
  21. acl Safe_ports port 210 # wais
  22. acl Safe_ports port 1025-65535 # unregistered ports
  23. acl Safe_ports port 280 # http-mgmt
  24. acl Safe_ports port 488 # gss-http
  25. acl Safe_ports port 591 # filemaker
  26. acl Safe_ports port 777 # multiling http
  27. acl CONNECT method CONNECT
  28. auth_param digest program /usr/lib/squid/digest_file_auth /etc/squid/passwd
  29. auth_param digest realm proxy
  30. acl authenticated proxy_auth REQUIRED
  31. http_access allow authenticated
  32. #
  33. # Recommended minimum Access Permission configuration:
  34. #
  35. # Deny requests to certain unsafe ports
  36. http_access deny !Safe_ports
  37. # Deny CONNECT to other than secure SSL ports
  38. http_access deny CONNECT !SSL_ports
  39. # Only allow cachemgr access from localhost
  40. http_access allow localhost manager
  41. http_access deny manager
  42. # We strongly recommend the following be uncommented to protect innocent
  43. # web applications running on the proxy server who think the only
  44. # one who can access services on "localhost" is a local user
  45. #http_access deny to_localhost
  46. #
  47. # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  48. #
  49. # Example rule allowing access from your local networks.
  50. # Adapt localnet in the ACL section to list your (internal) IP networks
  51. # from where browsing should be allowed
  52. http_access allow localnet
  53. http_access allow localhost
  54. # And finally deny all other access to this proxy
  55. http_access deny all
  56. # Squid normally listens to port 3128
  57. http_port 3129
  58. # Uncomment and adjust the following to add a disk cache directory.
  59. #cache_dir ufs /var/spool/squid 100 16 256
  60. # Leave coredumps in the first cache dir
  61. coredump_dir /var/spool/squid
  62. #
  63. # Add any of your own refresh_pattern entries above these.
  64. #
  65. refresh_pattern ^ftp: 1440 20% 10080
  66. refresh_pattern ^gopher: 1440 0% 1440
  67. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  68. refresh_pattern . 0 20% 4320