Advertisement
Guest User

squid.conf

a guest
Jan 18th, 2013
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. acl all src all
  2. acl manager proto cache_object
  3. acl localhost src 127.0.0.1/32
  4. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
  5. acl purge method PURGE
  6. acl localnet src 192.168.2.0/24
  7. acl SSL_ports port 443
  8. acl SSL_ports port 80
  9. acl Safe_ports port 80
  10. acl Safe_ports port 21
  11. acl Safe_ports port 443
  12. acl Safe_ports port 70
  13. acl Safe_ports port 210
  14. acl Safe_ports port 1024-65535
  15. acl Safe_ports port 280
  16. acl Safe_ports port 488
  17. acl Safe_ports port 591
  18. acl Safe_ports port 777
  19. acl CONNECT method CONNECT
  20. acl rules dstdomain -i "/etc/squid/rules"
  21. acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
  22. acl apache rep_header Server ^Apache
  23. cache deny to_localhost apache
  24. broken_vary_encoding allow apache
  25. access_log /var/log/squid/access.log squid
  26. http_access allow rules
  27. http_access allow manager localhost
  28. http_access deny manager
  29. http_access allow CONNECT localnet Safe_ports
  30. http_access deny !Safe_ports
  31. http_access deny CONNECT !SSL_ports
  32. http_access deny to_localhost
  33. http_access allow localnet
  34. http_access allow localhost
  35. http_access allow purge localhost
  36. http_access deny purge
  37. http_access allow rules
  38. http_access deny all
  39. url_rewrite_access deny localhost
  40. icp_access allow localnet
  41. icp_access deny all
  42. http_port 192.168.2.1:3128 transparent
  43. hierarchy_stoplist cgi-bin ?
  44. cache_mem 8 MB
  45. memory_replacement_policy lru
  46. cache_replacement_policy lru
  47. cache_dir ufs /var/cache/squid 100 16 256
  48. minimum_object_size 0 KB
  49. maximum_object_size 4096 KB
  50. cache_swap_low 90
  51. logformat squid %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt
  52. logformat squidmime %ts.%03tu %6tr %>a %Ss/%03Hs %<st %rm %ru %un %Sh/%<A %mt [%>h] [%<h]
  53. logformat common %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st %Ss:%Sh
  54. logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %<st "%{Referer}>h" "%{User-Agent}>h" %Ss:%Sh
  55. logfile_daemon /usr/sbin/logfile-daemon
  56. cache_log /var/log/squid/cache.log
  57. cache_store_log /var/log/squid/store.log
  58. emulate_httpd_log off
  59. mime_table /etc/squid/mime.conf
  60. pid_filename /var/run/squid.pid
  61. buffered_logs on
  62. netdb_filename /var/log/squid/netdb.state
  63. ftp_passive on
  64. pinger_program /usr/sbin/pinger
  65. url_rewrite_program /usr/local/bin/squidclamav
  66. refresh_pattern ^ftp: 1440 20 10080
  67. refresh_pattern ^gopher: 1440 0 1440
  68. refresh_pattern -i (/cgi-bin/|\?) 0 0 0
  69. refresh_pattern . 0 20 4320
  70. refresh_pattern -i \.gif$ 43200 100 43200
  71. refresh_pattern -i \.png$ 43200 100 43200
  72. refresh_pattern -i \.jpg$ 43200 100 43200
  73. refresh_pattern -i \.jpeg$ 43200 100 43200
  74. refresh_pattern -i \.pdf$ 43200 100 43200
  75. refresh_pattern -i \.zip$ 43200 100 43200
  76. refresh_pattern -i \.tar$ 43200 100 43200
  77. refresh_pattern -i \.gz$ 43200 100 43200
  78. refresh_pattern -i \.tgz$ 43200 100 43200
  79. refresh_pattern -i \.exe$ 43200 100 43200
  80. refresh_pattern -i \.prz$ 43200 100 43200
  81. refresh_pattern -i \.ppt$ 43200 100 43200
  82. refresh_pattern -i \.inf$ 43200 100 43200
  83. refresh_pattern -i \.swf$ 43200 100 43200
  84. refresh_pattern -i \.mid$ 43200 100 43200
  85. refresh_pattern -i \.wav$ 43200 100 43200
  86. refresh_pattern -i \.mp3$ 43200 100 43200
  87. upgrade_http0.9 deny shoutcast
  88. connect_timeout 2 minutes
  89. client_lifetime 1 days
  90. cache_mgr webmaster
  91. cache_effective_user squid
  92. icp_port 0
  93. log_icp_queries off
  94. error_directory /usr/share/squid/errors/English
  95. dns_nameservers 93.91.232.242 8.8.8.8 4.4.8.8
  96. hosts_file /etc/hosts
  97. coredump_dir /var/cache/squid
  98. cache_swap_high 95
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement