Advertisement
albspirit86

aa

Aug 10th, 2014
520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.83 KB | None | 0 0
  1. #=======================================================================#
  2. ## SQUID - Youtube Cache Super Squid Proxy
  3. ## BY PRAST
  4. ## THANKS TO MIKROTIK SQUID GROUP FACEBOOK
  5. ## Espescially : Mr. Ando Trlb Mr Zoiken Ameterasu and all my friend
  6. ##======================================================================#
  7. ## DATE : 9/7/2014 ...BISMILAHIRAHMANIRAHIM
  8. #=======================================================================#
  9.  
  10. #=============================================
  11. # ADMINISTRATIVE PARAMETER
  12. #=============================================
  13. cache_mgr prast
  14. visible_hostname prast
  15. cache_mem 8 MB
  16. cache_swap_low 98
  17. cache_swap_high 99
  18.  
  19. maximum_object_size 1024 MB
  20. maximum_object_size_in_memory 32 KB
  21.  
  22. ipcache_size 16384
  23. ipcache_low 98
  24. ipcache_high 99
  25.  
  26. memory_pools off
  27. reload_into_ims on
  28. vary_ignore_expire on
  29. max_filedescriptors 65536
  30.  
  31. debug_options ALL,1 22,3
  32.  
  33. #====================================
  34. # HDD CACHE
  35. #====================================
  36. cache_replacement_policy heap LFUDA
  37. memory_replacement_policy heap GDSF
  38. cache_dir aufs /cache 230000 540 256
  39.  
  40. access_log /var/log/squid/access.log
  41. cache_log /var/log/squid/cache.log
  42. cache_store_log /var/log/squid/store.log
  43.  
  44. #====================================
  45. # ACL OPTION
  46. #====================================
  47. acl all src
  48. acl SSL_ports port 443
  49. acl Safe_ports port 80
  50. acl Safe_ports port 21
  51. acl Safe_ports port 443
  52. acl Safe_ports port 70
  53. acl Safe_ports port 210
  54. acl Safe_ports port 1025-65535
  55. acl Safe_ports port 280
  56. acl Safe_ports port 488
  57. acl Safe_ports port 591
  58. acl Safe_ports port 777
  59. acl CONNECT method CONNECT
  60.  
  61. #
  62. acl error url_regex -i ^http.*gemscool\.com.*hackshield.*
  63. cache deny error
  64.  
  65. #acl link-bermasalah dst 203.89.146.67
  66. #cache deny link-bermasalah
  67. #ssl_bump none link-bermasalah
  68.  
  69. always_direct allow all
  70. ssl_bump server-first all
  71. http_access deny !Safe_ports
  72. http_access deny CONNECT !SSL_ports
  73. http_access allow all
  74. http_reply_access allow all
  75. icp_access allow all
  76.  
  77. https_port 3127 tproxy ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/squid/ssl_cert/myCA.pem
  78. http_port 3128
  79. http_port 3129 tproxy
  80.  
  81. sslcrtd_program /usr/lib/squid/ssl_crtd -s /var/squid/ssl_db/certs/ -M 4MB
  82. sslcrtd_children 5
  83. sslproxy_cert_error allow all
  84. sslproxy_flags DONT_VERIFY_PEER
  85.  
  86. acl reverbnation url_regex -i reverbnation.*(audio_player|ec_stream_song).*$
  87. acl reverbnation url_regex -i \.c\.(reverbnation|c2lo)\.com\/(get_audio|audioplayback|audioplay).*$
  88.  
  89. acl youtube url_regex -i youtube.*(ptracking|stream_204|player_204|gen_204).*$
  90. acl youtube url_regex -i (youtube|google).*\/videoplayback\?.*
  91.  
  92. acl dontrewrite url_regex redbot\.org
  93. acl getmethod method GET
  94.  
  95. acl QUERY urlpath_regex -i (begin|start)\=
  96. acl QUERY urlpath_regex -i cgi-bin \? .php$ .asp$ .shtml$ .cfm$ .cfml$ .phtml$ .php3$ localhost
  97. acl dontrewrite url_regex -i c\.youtube\.com\/.*(begin|start)\=.*
  98. acl dontrewrite url_regex redbot\.org
  99. acl getmethod method GET
  100. acl redir urlpath_regex -i &redirect_counter=1&cms_redirect=yes
  101. acl redir urlpath_regex -i &ir=1&rr=12
  102. acl yutub url_regex -i youtube\.com\/(generate_204|ptracking|stream_204|player_204|s|(.*(playback|watchtime|delayplay)))\?.*$
  103. acl yutub url_regex -i gstatic\.com\/csi\?.*$
  104.  
  105. acl rewritedoms url_regex -i dl\.sourceforge\.net.*
  106. acl rewritedoms url_regex -i i[0-9]*\.ytimg\.com.*
  107. acl rewritedoms url_regex -i ak\.fbcdn\.net.*
  108. acl rewritedoms url_regex -i (youtube|google).*\/videoplayback\?.*
  109.  
  110. cache allow rewritedoms
  111. cache deny QUERY
  112. cache deny redir
  113.  
  114. store_id_program /etc/squid/store-id.pl
  115. store_id_children 40 startup=10 idle=5 concurrency=0
  116. store_id_access deny !getmethod
  117. store_id_access deny redir
  118. store_id_access deny dontrewrite
  119. store_id_access allow rewritedoms
  120. store_id_access allow youtube
  121. store_id_access allow reverbnation
  122. store_id_access deny all
  123.  
  124. strip_query_terms off
  125.  
  126. #=============================================
  127. # DNS SERVER
  128. #=============================================
  129. dns_v4_first on
  130. dns_nameservers 8.8.8.8 8.8.4.4
  131. dns_nameservers 208.67.222.222 208.67.220.220
  132.  
  133. max_stale 1 week
  134.  
  135. refresh_pattern .*(begin|start)\=[1-9][0-9].* 0 0% 0
  136. refresh_pattern -i (cgi-bin|mrtg|graph) 0 0% 0
  137. refresh_pattern -i \.(php|lst|ui|ini|list)$ 0 0% 0
  138. refresh_pattern (update.ini|Update.ini|version.list|Version.list|update.1st|update.exe|autoup.exe) 0 0% 0
  139. refresh_pattern (hackshield|nprotect) 240 100% 420 override-expire override-lastmod reload-into-ims
  140. #refresh_pattern \.gemscool.com.*\.(exe|dll|cab|zip|iop|npz|swf)$ 1440 100% 4320 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  141. #refresh_pattern \.crossfire.web.id.*\.(cab|zip|exe|rar|dat|swf)$ 1440 100% 4320 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  142. #refresh_pattern \.cabalonline.co.id.*\.(cab|zip|exe|rar|dat|swf) 1440 100% 4320 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  143. #refresh_pattern \.megaxus.com.*\.(cab|zip|exe|rar|dat|swf) 1440 100% 4320 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  144. #refresh_pattern \.lytogame.com.*\.(cab|zip|exe|rar|dat|swf) 1440 100% 4320 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  145. #refresh_pattern ((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2}).*\.(pak|exe|zip|kom|stg|npz|swf)$ 1440 100% 4320 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  146.  
  147. #PATTERN REFRESH YOU TUBE
  148. refresh_pattern -i ^http\://video\-srv\.youtube\/.* 10080 100% 43200 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  149.  
  150. #PATTERN REFRESH
  151. refresh_pattern -i \.(html|htm|css|js|png|jsp|asx|asp|aspx)$ 240 100% 420
  152. refresh_pattern -i \/speedtest\/.*\.(txt|jpg|png|swf) 0 99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
  153. refresh_pattern .pixieimage\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 1440 99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
  154. refresh_pattern .blogspot\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 1440 99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
  155. refresh_pattern .multiply\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 1440 99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
  156. refresh_pattern .((pikawarnet\.com)|(blogspot\.com)|(pixieimage\.com)|(multiply\.com)).* 60 30% 240
  157.  
  158. #sensitive site
  159. refresh_pattern -i \.(sc-|dl-|ex-|mh-|dll|da-) 0 2% 50 reload-into-ims
  160. refresh_pattern -i \.(mst|Xtp|iop)$ 0 50% 1440 reload-into-ims
  161. refresh_pattern -i (index.php|autoup.exe|main.exe|xtrap.xt|autoupgrade.exe|update.exe|grandchase.exe|FSLauncher.exe|FreeStyle_Setup.exe|grandchase.exe|filelist.zip)$ 0 50% 1440
  162. #refresh_pattern -i (UpdaterModifier.exe|FreeStyle.exe|PBLauncher.exe|update.exe|NewLauncher.exe|NewAvalon.exe|hon.exe.zip|cabal.exe)$ 0 50% 1440
  163. #refresh_pattern -i (PointBlank.exe.zip|HSUpdate.exe.zip|PBConfig.exe.zip) 0 50% 1440
  164. refresh_pattern -i (wks_avira-win32-en-pecl.info.gz|wks_avira10-win32-en-pecl.info.gz|servers.def.vpx)$ 0 50% 1440
  165. refresh_pattern -i (setup.exe.gz|avscan.exe.gz|avguard.exe.gz|filelist.zip|AvaClient.exe) 0 50% 1440
  166. refresh_pattern -i (livescore.com|goal.com|bobet) 0 50% 60
  167. refresh_pattern ^http.*(youtube|googlevideo)\.* 43200 99% 242020 ignore-reload override-expire override-lastmod ignore-must-revalidate ignore-private ignore-no-store ignore-auth store-stale
  168.  
  169. #FB
  170. refresh_pattern \.facebook\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 1440 99% 14400 override-expire ignore-reload ignore-private
  171. refresh_pattern \.facebook\.com.* 240 50% 480
  172. refresh_pattern \.fbcdn\.net.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 1440 99% 14400 override-expire ignore-reload ignore-private store-stale
  173. refresh_pattern \.gstatic\.com/images\? 1440 99% 14400 override-expire override-lastmod ignore-reload ignore-private ignore-must-revalidate
  174. refresh_pattern \.(akamaihd|edgecastcdn|spilcdn|zgncdn|(tw|y|yt)img)\.com.*\.(jp(e?g|e|2)|gif|png|swf|mp(3|4)) 1440 99% 14400 override-expire override-lastmod ignore-reload ignore-private
  175. refresh_pattern (gstatic|diggstatic)\.com/.* 1440 99% 14400 override-expire ignore-reload ignore-private
  176. refresh_pattern (photobucket|pbsrc|flickr|yimg|ytimg|twimg|gravatar)\.com.*\.(jp(e?g|e|2)|gif|png|tiff?|bmp|swf|mp(4|3)) 1440 99% 14400 override-expire ignore-reload ignore-private
  177. refresh_pattern (zynga|ninjasaga|mafiawars|cityville|farmville|crowdstar|spilcdn|agame|popcap)\.com/.* 1440 99% 14400 override-expire ignore-reload ignore-private
  178. refresh_pattern ^http:\/\/images|image|img|pics|openx|thumbs[0-9]\. 1440 99% 14400 override-expire ignore-reload ignore-private
  179. refresh_pattern ^.*safebrowsing.*google 1440 99% 14400 override-expire ignore-reload ignore-private ignore-auth ignore-must-revalidate
  180. refresh_pattern ^http://.*\.squid\.internal\/.* 10080 100% 79900 override-expire override-lastmod ignore-reload ignore-no-store ignore-must-revalidate ignore-private ignore-auth max-stale=10000 store-stale
  181. refresh_pattern -i reverbnation.com 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private ignore-must-revalidate ignore-reload store-stale
  182. #refresh_pattern (get_video\?|videoplayback\?|videodownload\?|\.flv\?|\.fid\?) 43200 99% 43200 override-expire ignore-reload ignore-must-revalidate ignore-private
  183.  
  184. # Game Online Update
  185. refresh_pattern ^http://file\.pb\.gemscool\.com/gamepatch/.*\.(exe|dll|cab|zip) 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  186. refresh_pattern ^http://file\.fs\.gemscool\.com/JCE/.*\.(exe|dll|cab|zip) 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  187. refresh_pattern ^http://file\.atlantica\.gemscool\.com/.*\.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  188. refresh_pattern ^http://122\.102\.49\.132/.*\.(zip|exe) 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth ignore-no-store store-stale
  189. refresh_pattern ^http://122\.102\.49\.202/.*\.(kom|zip|exe|stg) 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth ignore-no-store store-stale
  190. refresh_pattern ^http://.*\.cabalonline\.co\.id/.*\.(cab|zip|exe|rar|dat) 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  191. refresh_pattern ^http://.*\.gemscool\.com/.*\.(cab|zip|exe|rar|dat) 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  192. refresh_pattern ^http://patch\.crossfire\.web\.id/.*\.(cab|zip|exe|rar|dat) 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  193.  
  194. #ads
  195. refresh_pattern ^.*(streamate.doublepimp.com.*\.js\?|utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 1440 99% 14400 ignore-private override-expire ignore-reload ignore-auth max-stale=1440
  196. refresh_pattern \.(ico|video-stats) 1440 99% 14400 override-expire ignore-reload ignore-private ignore-auth override-lastmod ignore-must-revalidate
  197. refresh_pattern ^http://((cbk|mt|khm|mlt|tbn)[0-9]?)\.google\.co(m|\.uk|\.id) 1440 99% 14400 override-expire override-lastmod ignore-reload ignore-private ignore-auth ignore-must-revalidate
  198. refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 1440 99% 14400 override-expire override-lastmod
  199. refresh_pattern galleries\.video(\?|sz) 1440 99% 14400 override-expire ignore-reload ignore-must-revalidate ignore-private
  200. refresh_pattern \.wikimapia\.org\/? 1440 99% 14400 override-expire override-lastmod ignore-reload ignore-private
  201.  
  202. # Spesific Game URL
  203. refresh_pattern ^http://*.lytogame.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  204. refresh_pattern ^http://*.megaxus.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  205. refresh_pattern ^http://*.ayodance.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  206. refresh_pattern ^http://*.gemscool.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  207. refresh_pattern ^http://*.wavegame.net/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  208. refresh_pattern ^http://*.playcircle.net/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  209. refresh_pattern ^http://*.lineage2.co.id/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  210. refresh_pattern ^http://*.roseonline.web.id/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  211. refresh_pattern ^http://*.xshot.web.id/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  212. refresh_pattern ^http://*.romonline.web.id/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  213. refresh_pattern ^http://*.iahgames.co.id/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  214. refresh_pattern ^http://*.vtconline.co.id/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  215. refresh_pattern ^http://*.blackshotonline.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  216. refresh_pattern ^http://*.speedsoft.co.id/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  217. refresh_pattern ^http://*.ijji.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  218. refresh_pattern ^http://*.mmosite.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  219. # Spesific URL
  220. refresh_pattern ^http://*.indowebster.com.*/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-auth store-stale ignore-must-revalidate
  221. refresh_pattern ^http://*.21cineplex.*/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-auth store-stale ignore-must-revalidate
  222. refresh_pattern ^http://*.kompas.*/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-no-cache store-stale ignore-must-revalidate
  223. refresh_pattern ^http://*.blogspot.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  224. refresh_pattern ^http://*.wordpress.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims store-stale ignore-must-revalidate
  225. refresh_pattern ^http://*.photobucket.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  226. refresh_pattern ^http://*.tinypic.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  227. refresh_pattern ^http://*.imageshack.us/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  228. refresh_pattern ^http://*.kaskus.*/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  229. refresh_pattern ^http://*.detik.*/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  230. refresh_pattern ^http://*.detiknews.*/*.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  231. refresh_pattern ^http://video.liputan6.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  232. refresh_pattern ^http://static.liputan6.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  233. refresh_pattern ^http://*.friendster.com/.* 10080 80% 10080 override-expire override-lastmod ignore-auth store-stale ignore-must-revalidate
  234. refresh_pattern ^http://*.forummikrotik.com/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  235. refresh_pattern ^http://*.linux.or.id/.* 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-auth store-stale ignore-must-revalidate
  236. refresh_pattern ^http://(.*?)/get_video\? 10080 80% 10080 override-expire ignore-private store-stale ignore-must-revalidate
  237. refresh_pattern ^http://(.*?)/videodownload\? 10080 80% 10080 override-expire ignore-private store-stale ignore-must-revalidate
  238. # Update Antivirus
  239. refresh_pattern guru.avg.com/.*\.(bin) 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  240. refresh_pattern avast.com.*\.vpx 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  241. refresh_pattern (avgate|avira).*\.(idx|gz)$ 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  242. refresh_pattern kaspersky.*\.avc$ 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  243. refresh_pattern kaspersky 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  244. refresh_pattern liveupdate.symantecliveupdate.com.*\.zip 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  245. refresh_pattern .update.nai.com/.*\.(gem|zip|mcs) 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  246. refresh_pattern .symantec.com.*\(exe|zip) 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  247. refresh_pattern mbamupdates.com.*\.ref 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  248. refresh_pattern \/*.eset\.com\.*\(bin|php|ui|exe|mcs|gem|avc|nup)(\?|$) 1440 95% 40320 override-expire override-lastmod ignore-no-store ignore-reload reload-into-ims store-stale
  249. refresh_pattern \/*.eset\.com\.*\(bin|php|ui|exe|mcs|gem|avc|nup) 1440 95% 40320 override-expire override-lastmod ignore-no-store ignore-reload reload-into-ims store-stale
  250. # Update Windows
  251. refresh_pattern windowsupdate.com/.*\.(cab|exe) 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  252. refresh_pattern update.microsoft.com/.*\.(cab|exe) 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  253. refresh_pattern download.microsoft.com/.*\.(cab|exe) 10080 80% 10080 ignore-no-store ignore-reload reload-into-ims store-stale
  254. # Download IIX
  255. refresh_pattern ^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zip|flv|wmv|3gp|mp(4|3)|exe|msi|zip) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale ignore-auth
  256.  
  257. # Banner IIX
  258. refresh_pattern ^http:\/\/openx.*\.(jp(e?g|e|2)|gif|pn[pg]|swf|ico|css|tiff?) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  259. refresh_pattern ^http:\/\/ads(1|2|3).kompas.com.*\/ 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  260. refresh_pattern ^http:\/\/img.ads.kompas.com.*\/ 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  261. refresh_pattern .kompasimages.com.*\.(jpg|gif|png|swf) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  262. refresh_pattern ^http:\/\/openx.kompas.com.*\/ 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  263. refresh_pattern kaskus.\us.*\.(jp(e?g|e|2)|gif|png|swf) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  264. refresh_pattern ^http:\/\/img.kaskus.us.*\.(jpg|gif|png|swf) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  265. refresh_pattern ^http:\/\/img.gemscool.com.*\.(jpg|gif|png|swf) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  266. refresh_pattern ^http:\/\/img.pb.gemscool.com.*\.(jpg|gif|png|swf) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  267. refresh_pattern ^http:\/\/img.atlantica.gemscool.com.*\.(jpg|gif|png|swf) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  268. refresh_pattern ^http:\/\/img.fs.gemscool.com.*\.(jpg|gif|png|swf) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  269. refresh_pattern ^http:\/\/img.vivanews.com.*\.(jpg|gif|png|swf) 10080 80% 10080 reload-into-ims ignore-reload override-expire ignore-no-store store-stale
  270.  
  271.  
  272. #general
  273. refresh_pattern -i \.(7z|arj|bin|bz2|cab|dll|exe|gz|inc|iso|jar|lha|ms(i|p|u)|rar|rpm|tar|tgz|zip|rtp|rpz|nui|kom|stg|pak|sup|nzp|npz|iop)$ 1440 99% 14400 override-expire override-lastmod ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  274. refresh_pattern -i \.(class|doc|docx|pdf|pps|ppt|ppsx|pptx|ps|rtx|txt|wpl|xls|xlsx)$ 1440 99% 14400 override-expire override-lastmod ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  275. refresh_pattern -i \.(3gp|ac4|agx|au|avi|axd|bmp|cbr|cbt|cbz|dat|divx|flv|gif|hqx|ico|jp(2|e|eg|g)|mid|mk(a|v)|mov|mp(1|2|3|4|e|eg|g)|og(a|g|v)|qt|ra|ram|rm|swf|tif|tiff|wa(v|x)|wm(a|v|x)|x-flv)$ 1440 99% 14400 override-expire override-lastmod ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  276. refresh_pattern -i .(html|htm|css|js)$ 1440 75% 40320
  277. refresh_pattern -i .index.(html|htm)$ 0 75% 10080
  278. refresh_pattern ^ftp: 1440 20% 10080
  279. refresh_pattern ^gopher: 1440 0% 1440
  280. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  281. refresh_pattern . 60 50% 14400 store-stale
  282.  
  283.  
  284. memory_pools off
  285. client_db off
  286. #reload_into_ims on
  287. pipeline_prefetch on
  288. offline_mode off
  289. cache_effective_user proxy
  290. cache_effective_group proxy
  291.  
  292. request_header_access From deny all
  293. request_header_access Server deny all
  294. request_header_access WWW-Authenticate deny all
  295. request_header_access Link deny all
  296. request_header_access Cache-Control deny all
  297. request_header_access Proxy-Connection deny all
  298. request_header_access X-Cache deny all
  299. request_header_access X-Cache-Lookup deny all
  300. request_header_access Via deny all
  301. request_header_access Forwarded-For deny all
  302. request_header_access X-Forwarded-For deny all
  303. request_header_access Pragma deny all
  304. request_header_access Keep-Alive deny all
  305. vary_ignore_expire on
  306.  
  307.  
  308. # local
  309. qos_flows local-hit=0x30
  310. # sibling
  311. # qos_flows sibling-hit=0x31
  312. # parent
  313. # qos_flows parent-hit=0x32
  314. # preserve
  315. # qos_flows disable-preserve-miss
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement