Advertisement
Guest User

Untitled

a guest
Apr 26th, 2010
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SAS 2.01 KB | None | 0 0
  1. [(11:19):artem@razvitie63:~ ] sudo cat /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. acl localnet src 192.168.1.0/24
  7. acl purge method PURGE
  8. acl CONNECT method CONNECT
  9.  
  10. http_access allow manager localhost
  11. http_access deny manager
  12. http_access allow purge localhost
  13. http_access deny purge
  14. acl Safe_ports port 80      # http
  15. acl Safe_ports port 21      # ftp
  16. acl Safe_ports port 443     # https
  17. acl Safe_ports port 70      # gopher
  18. acl Safe_ports port 210     # wais
  19. acl Safe_ports port 1025-65535  # unregistered ports
  20. acl Safe_ports port 280     # http-mgmt
  21. acl Safe_ports port 488     # gss-http
  22. acl Safe_ports port 591     # filemaker
  23. acl Safe_ports port 777     # multiling http
  24. acl Safe_ports port 631     # cups
  25. acl Safe_ports port 873     # rsync
  26. acl Safe_ports port 901     # SWAT
  27. http_access deny !Safe_ports
  28. acl SSL_ports port 443      # https
  29. acl SSL_ports port 563      # snews
  30. acl SSL_ports port 873      # rsync
  31. http_access deny CONNECT !SSL_ports
  32.  
  33. http_access allow localhost
  34. http_access allow localnet
  35. http_access deny all
  36.  
  37. icp_access allow localnet
  38. icp_access deny all
  39.  
  40. http_port 127.0.0.1:3128
  41. http_port 192.168.1.111:3128 transparent
  42.  
  43. hierarchy_stoplist cgi-bin ?
  44.  
  45. cache_mem 256 MB
  46. maximum_object_size_in_memory 256 KB
  47. cache_dir aufs /var/spool/squid 10240 16 256
  48.  
  49. logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
  50.  
  51. access_log /var/log/squid/access.log squid
  52.  
  53. debug_options 4,2
  54.  
  55. refresh_pattern ^ftp:       1440    20% 10080
  56. refresh_pattern ^gopher:    1440    01440
  57. refresh_pattern -i (/cgi-bin/|\?) 0 00
  58. refresh_pattern (Release|Package(.gz)*)$    0   20% 2880
  59. refresh_pattern .       0   20% 4320
  60.  
  61. acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
  62. upgrade_http0.9 deny shoutcast
  63.  
  64. acl apache rep_header Server ^Apache
  65. broken_vary_encoding allow apache
  66.  
  67. extension_methods REPORT MERGE MKACTIVITY CHECKOUT
  68.  
  69. cache_mgr tuchinsky@razvitie63.ru
  70.  
  71. hosts_file /etc/hosts
  72.  
  73. coredump_dir /var/spool/squid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement