Inidian

squid.conf

Dec 30th, 2012
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. # SQUID - Lusca Head
  2. # CONFIG DATE : 04 Dec 2011
  3. # iniDian
  4.  
  5. # Port Configuration
  6. http_port 3128 transparent
  7. #icp_port 3130
  8. icp_port 0
  9. htcp_port 0
  10. snmp_port 3401
  11.  
  12. # Logfile & Directory Location
  13. access_log /var/log/squid/access.log
  14. cache_log /var/log/squid/cache.log
  15. cache_store_log none
  16. error_directory /usr/share/squid/errors/English
  17. icon_directory /usr/share/squid/icons
  18. pid_filename /var/log/squid/squid.pid
  19. logfile_rotate 2
  20.  
  21. #DNS Lookup
  22. dns_nameservers "/etc/resolv.conf"
  23.  
  24. # Tuning Memory Parameters
  25. max_filedescriptors 8192
  26. cache_mem 500 MB
  27. maximum_object_size_in_memory 4 bytes
  28. memory_replacement_policy heap GDSF
  29. cache_replacement_policy heap LFUDA
  30. #minimum_object_size 0 bytes
  31. maximum_object_size 320 MB
  32. store_avg_object_size 13 KB
  33.  
  34. offline_mode off
  35. memory_pools off
  36. cache_swap_low 96
  37. cache_swap_high 97
  38.  
  39. # Cache Directory
  40. cache_dir aufs /cache 750000 16 256
  41.  
  42. # Default ACL
  43. acl all src 0.0.0.0/0.0.0.0
  44. acl localhost src 127.0.0.1/255.255.255.255
  45. acl webserver src 127.0.0.1/255.255.255.255
  46. acl SafePorts port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
  47. acl SSLports port 443 563 81
  48. acl manager proto cache_object
  49. acl purge method PURGE
  50. acl connect method CONNECT
  51. acl snmppublic snmp_community public
  52. acl NoCache dstdomain "/etc/squid/noCache-domain.acl"
  53. acl NoCache1 urlpath_regex \.ini
  54. acl NoCache1 urlpath_regex \.xml
  55. acl NoCache1 urlpath_regex \.dat
  56.  
  57. #Block ACL
  58. acl blocksites dstdomain "/etc/squid/squid-block.acl"
  59. acl blockfiles urlpath_regex -i "/etc/squid/squid-block-file.acl"
  60. acl conficker url_regex "/etc/squid/conficker.url"
  61.  
  62. cache deny NoCache
  63. no_cache deny NoCache1
  64.  
  65. snmp_access allow snmppublic localhost
  66. snmp_access deny all
  67.  
  68. http_access allow manager localhost
  69. http_access allow manager webserver
  70. http_access deny manager
  71. http_access allow purge localhost
  72. http_access deny purge
  73. http_access deny !SafePorts
  74. http_access deny CONNECT !SSLports
  75.  
  76. #Block
  77. http_access deny blocksites
  78. http_access deny blockfiles
  79. http_access deny conficker
  80.  
  81. # ACL Acces
  82. acl localnet src 192.168.0.0/24
  83. acl localnet src 192.168.1.0/24
  84. acl localnet src 192.168.2.0/24
  85. acl localnet src 192.168.4.0/24
  86. acl localnet src 192.168.10.0/24
  87.  
  88. # Always allow localhost connections
  89. http_access allow localhost
  90. http_access allow localnet
  91. http_access deny all
  92.  
  93. # Include Rewrite & Refresh Pattern configuration
  94. include /etc/squid/rewrite.conf
  95. include /etc/squid/refresh.conf
  96.  
  97. # Misc
  98. server_http11 on
  99. client_persistent_connections off
  100. server_persistent_connections on
  101. half_closed_clients off
  102. strip_query_terms off
  103. #quick_abort_min 0 KB
  104. quick_abort_max 0 KB
  105. quick_abort_pct 100
  106. vary_ignore_expire on
  107. reload_into_ims on
  108. pipeline_prefetch on
  109. #range_offset_limit 50 KB
  110. read_timeout 30 minutes
  111. client_lifetime 2 hours
  112. negative_ttl 30 seconds
  113. positive_dns_ttl 6 hours
  114. negative_dns_ttl 60 seconds
  115. pconn_timeout 15 seconds
  116. request_timeout 1 minute
  117. logfile_rotate 10
  118.  
  119. log_icp_queries off
  120. ipcache_size 16384
  121. ipcache_low 98
  122. ipcache_high 99
  123. log_fqdn off
  124. fqdncache_size 16384
  125. uri_whitespace strip
  126. shutdown_lifetime 7 seconds
  127.  
  128. # High Anonymous Config
  129. #header_access Accept-Encoding deny all
  130. forwarded_for off
  131. via on
  132.  
  133. # Zero Penalty Hit
  134. tcp_outgoing_tos 0x30 localnet
  135. zph_mode tos
  136. zph_local 0x30
  137. zph_parent 0
  138. zph_option 136
  139.  
  140. # User Management
  141. cache_effective_user squid
  142. cache_effective_group squid
  143. cachemgr_passwd none all
  144. client_db on
  145. visible_hostname proxy.iniDian.com
Advertisement
Add Comment
Please, Sign In to add comment