Advertisement
pakdoz

squid.conf

Apr 23rd, 2013
34,955
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
  2. auth_param basic children 5
  3. auth_param basic realm Squid proxy-caching web server
  4. auth_param basic credentialsttl 2 hours
  5. auth_param basic casesensitive off
  6.  
  7. acl all src all
  8. acl manager proto cache_object
  9. acl localhost src 127.0.0.1/32
  10. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
  11. acl ncsa_users proxy_auth REQUIRED
  12.  
  13. acl SSL_ports port 443 # https
  14. acl SSL_ports port 563 # snews
  15. acl SSL_ports port 873 # rsync
  16. acl Safe_ports port 80 # http
  17. acl Safe_ports port 21 # ftp
  18. acl Safe_ports port 443 # https
  19. acl Safe_ports port 70 # gopher
  20. acl Safe_ports port 210 # wais
  21. acl Safe_ports port 1025-65535 # unregistered ports
  22. acl Safe_ports port 280 # http-mgmt
  23. acl Safe_ports port 488 # gss-http
  24. acl Safe_ports port 591 # filemaker
  25. acl Safe_ports port 777 # multiling http
  26. acl Safe_ports port 631 # cups
  27. acl Safe_ports port 873 # rsync
  28. acl Safe_ports port 901 # SWAT
  29. acl purge method PURGE
  30. acl CONNECT method CONNECT
  31.  
  32. http_access allow manager localhost
  33. http_access deny manager
  34. http_access allow purge localhost
  35. http_access deny purge
  36. http_access deny !Safe_ports
  37. http_access deny CONNECT !SSL_ports
  38. http_access allow localhost
  39. http_access allow ncsa_users
  40. http_access deny all
  41.  
  42. icp_access deny all
  43. http_port 3128
  44. hierarchy_stoplist cgi-bin ?
  45. cache_dir ufs /var/spool/squid 1000 16 256
  46. access_log /var/log/squid/access.log squid
  47. refresh_pattern ^ftp: 1440 20% 10080
  48. refresh_pattern ^gopher: 1440 0% 1440
  49. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  50. refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
  51. refresh_pattern . 0 20% 4320
  52. acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
  53. upgrade_http0.9 deny shoutcast
  54. acl apache rep_header Server ^Apache
  55. broken_vary_encoding allow apache
  56. extension_methods REPORT MERGE MKACTIVITY CHECKOUT
  57. dns_nameservers 8.8.8.8 8.8.4.4
  58. hosts_file /etc/hosts
  59. coredump_dir /var/spool/squid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement