squid.conf 936 B

123456789101112131415161718192021222324252627
  1. visible_hostname linux
  2. http_port 3128
  3. # acl
  4. acl manager proto cache_object
  5. acl localhost src 127.0.0.1/32
  6. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
  7. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
  8. acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  9. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  10. acl SSL_ports port 443
  11. acl Safe_ports port 80 # http
  12. acl Safe_ports port 21 # ftp
  13. acl Safe_ports port 443 # https
  14. acl Safe_ports port 70 # gopher
  15. acl Safe_ports port 210 # wais
  16. acl Safe_ports port 1025-65535 # unregistered ports
  17. acl Safe_ports port 280 # http-mgmt
  18. acl Safe_ports port 488 # gss-http
  19. acl Safe_ports port 591 # filemaker
  20. acl Safe_ports port 777 # multiling http
  21. acl CONNECT method CONNECT
  22. http_access allow manager localhost
  23. http_access deny manager
  24. http_access deny !Safe_ports
  25. http_access deny CONNECT !SSL_ports
  26. http_access allow localnet
  27. http_access deny all