Guest User

squid.conf

a guest
Feb 18th, 2014
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. #/etc/squid/squid.conf
  2. acl all src all
  3. acl manager proto cache_object
  4. acl localhost src 127.0.0.1/32
  5. acl to_localhost dst 127.0.0.0/8
  6.  
  7. acl localnet src 0.0.0.0/255.255.255.0
  8. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
  9. acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  10. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  11.  
  12. acl SSL_ports port 443
  13. acl Safe_ports port 80 # http
  14. acl Safe_ports port 21 # ftp
  15. acl Safe_ports port 443 # https
  16. acl Safe_ports port 70 # gopher
  17. acl Safe_ports port 210 # wais
  18. acl Safe_ports port 1025-65535 # unregistered ports
  19. acl Safe_ports port 280 # http-mgmt
  20. acl Safe_ports port 488 # gss-http
  21. acl Safe_ports port 591 # filemaker
  22. acl Safe_ports port 777 # multiling http
  23. acl Safe_ports port 10000 # multiling http
  24. acl CONNECT method CONNECT
  25.  
  26. http_access allow manager localhost
  27. http_access deny manager
  28. http_access deny !Safe_ports
  29. http_access deny CONNECT !SSL_ports
  30. http_access allow localnet
  31. http_access allow all
  32.  
  33. icp_access allow localnet
  34. icp_access deny all
  35.  
  36. http_port 8888
  37.  
  38. hierarchy_stoplist cgi-bin ?
  39.  
  40. # cache_mem 8 MB
  41. # maximum_object_size_in_memory 8 KB
  42.  
  43. #cache_dir ufs c:/squid/var/cache 1 1 1
  44. # max_open_disk_fds 0
  45. # minimum_object_size 0 KB
  46. # maximum_object_size 4096 KB
  47. # cache_swap_low 90
  48. # cache_swap_high 95
  49. # update_headers on
  50.  
  51. #access_log c:/squid/var/logs/access.log squid
  52.  
  53. refresh_pattern ^ftp: 1440 20% 10080
  54. refresh_pattern ^gopher: 1440 0% 1440
  55. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  56. refresh_pattern . 0 20% 4320
  57.  
  58. via off
  59. acl apache rep_header Server ^Apache
  60. #broken_vary_encoding allow apache
  61. forwarded_for off
  62. #coredump_dir c:/squid/var/cache
  63.  
  64. visible_hostname localhost
  65. retry_on_error on
  66. forwarded_for delete
Advertisement
Add Comment
Please, Sign In to add comment