squid.conf 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ## To cleanup a squid.conf file you should use the next commad:
  2. ## cat squid.conf |egrep -v "^#|^$" > squid.conf-cleaned
  3. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
  4. acl localnet src 192.168.1.0/16 # RFC1918 possible internal network
  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 443 # https
  9. acl Safe_ports port 70 # gopher
  10. acl Safe_ports port 210 # wais
  11. acl Safe_ports port 1025-65535 # unregistered ports
  12. acl Safe_ports port 280 # http-mgmt
  13. acl Safe_ports port 488 # gss-http
  14. acl Safe_ports port 591 # filemaker
  15. acl Safe_ports port 777 # multiling http
  16. acl CONNECT method CONNECT
  17. acl GET method GET
  18. http_access deny !Safe_ports
  19. http_access deny CONNECT !SSL_ports
  20. http_access allow localhost manager
  21. http_access deny manager
  22. http_access allow localnet
  23. http_access allow localhost
  24. http_access deny all
  25. http_port 3129 intercept
  26. http_port 3128
  27. icap_enable on
  28. icap_service service_req reqmod_precache icap://192.168.1.19:1344/injectjs
  29. adaptation_access service_req allow GET
  30. adaptation_access service_req deny all
  31. coredump_dir /var/spool/squid
  32. refresh_pattern ^ftp: 1440 20% 10080
  33. refresh_pattern ^gopher: 1440 0% 1440
  34. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  35. refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
  36. refresh_pattern . 0 20% 4320
  37. visible_hostname Yosi_and_Zohar_proxy