Advertisement
ujiajah1

squid.conf /#bonbin

Feb 15th, 2016
757
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # SQUID CONFIGURATION SQUID VERSION-3.5.xx
  2. # HTTP | HTTPS SQUID PROXY SERVER RENEGADE
  3.  
  4. acl localnet src 192.168.1.0/24  # my local network
  5. acl all src
  6. acl SSL_ports port 443
  7. acl SSL_ports port 5353
  8. acl Safe_ports port 182
  9. acl Safe_ports port 21
  10. acl Safe_ports port 22
  11. acl Safe_ports port 53
  12. acl Safe_ports port 70
  13. acl Safe_ports port 80
  14. acl Safe_ports port 210
  15. acl Safe_ports port 280
  16. acl Safe_ports port 1025-65535
  17. acl Safe_ports port 443
  18. acl Safe_ports port 488
  19. acl Safe_ports port 591
  20. acl Safe_ports port 777
  21. acl Safe_ports port 5353
  22. acl Safe_ports port 18901-18909
  23. acl Safe_ports port 1818
  24. acl Safe_ports port 39190
  25. acl Safe_ports port 40000-40010
  26. acl Safe_ports port 7777
  27. acl Safe_ports port 19101
  28. acl Safe_ports port 27780
  29. acl Safe_ports port 29000
  30. acl Safe_ports port 22100
  31. acl Safe_ports port 5121
  32. acl Safe_ports port 6000-6152
  33. acl Safe_ports port 2001
  34. acl Safe_ports port 9601-9602
  35. acl Safe_ports port 8085
  36. acl Safe_ports port 11011-11041
  37. acl Safe_ports port 13413
  38. acl Safe_ports port 19000
  39. acl Safe_ports port 5105
  40. acl Safe_ports port 10009
  41. acl Safe_ports port 12060-12070
  42. acl Safe_ports port 6000-6001
  43. acl Safe_ports port 29200
  44. acl Safe_ports port 10402
  45. acl Safe_ports port 9600
  46. acl Safe_ports port 15002
  47. acl Safe_ports port 16402-16502
  48. acl Safe_ports port 5126
  49. acl Safe_ports port 3010
  50. acl Safe_ports port 11031  
  51. acl Safe_ports port 11440-11460
  52. acl Safe_ports port 11100-11125
  53. acl Safe_ports port 4300
  54. acl Safe_ports port 12011
  55. acl Safe_ports port 12110
  56. acl Safe_ports port 15001
  57. acl Safe_ports port 15002
  58. acl Safe_ports port 7341
  59. acl Safe_ports port 7451
  60. acl Safe_ports port 7808
  61. acl Safe_ports port 30000
  62. acl Safe_ports port 9001
  63. acl Safe_ports port 9030
  64. acl Safe_ports port 953
  65. acl Safe_ports port 42051-42052
  66. acl Safe_ports port 36567
  67. acl Safe_ports port 8001
  68. acl Safe_ports port 14000-14050
  69. acl Safe_ports port 27019
  70. acl Safe_ports port 28901-28920
  71. acl Safe_ports port 7201-7208
  72. acl Safe_ports port 17001-17002
  73. acl Safe_ports port 14300-14440
  74. acl Safe_ports port 15100-15150
  75. acl Safe_ports port 7770-7790
  76. acl Safe_ports port 16320-16340
  77. acl Safe_ports port 9000-9160
  78. acl Safe_ports port 7200
  79. acl Safe_ports port 7400
  80. acl Safe_ports port 7106
  81. acl Safe_ports port 7999
  82. acl Safe_ports port 47611
  83. acl Safe_ports port 36567
  84. acl Safe_ports port 10087  
  85. acl Safe_ports port 27000-27050
  86. acl Safe_ports port 27014-27050
  87. acl Safe_ports port 4380
  88. acl Safe_ports port 3478
  89. acl Safe_ports port 4379
  90. acl Safe_ports port 8890
  91. acl Safe_ports port 9339
  92. acl Safe_ports port 8890
  93. acl Safe_ports port 7200-7210
  94. acl Safe_ports port 7450-7460
  95. acl Safe_ports port 8000
  96. acl Safe_ports port 64990-65010
  97. acl CONNECT method CONNECT
  98. # ========================================================================================================
  99. acl speedtest url_regex -i \/speedtest\/.*\.(jpg|png|txt|php).*
  100. acl speedtest2 url_regex -i ^http:\/\/.*speedtest\.net\/id\/.*\.php.*
  101. acl speedtest3 url_regex -i ^http:\/\/.*api\.ookla\.com\/.*\.php
  102.  
  103. url_rewrite_access allow speedtest
  104. url_rewrite_access allow speedtest2
  105. url_rewrite_access allow speedtest3
  106.  
  107. url_rewrite_access deny all
  108.  
  109. url_rewrite_program /etc/squid/rewritespeedtest.pl
  110. redirector_bypass on
  111.  
  112. cache_peer 172.16.0.2 parent 80 0 no-digest no-tproxy
  113. dead_peer_timeout 5 seconds
  114. cache_peer_access 172.16.0.2 allow speedtest
  115. cache_peer_access 172.16.0.2 allow speedtest2
  116. cache_peer_access 172.16.0.2 allow speedtest3
  117.  
  118. cache_peer_access 172.16.0.2 deny all
  119. always_direct deny speedtest
  120. never_direct allow speedtest
  121. always_direct deny speedtest2
  122. never_direct allow speedtest2
  123. always_direct deny speedtest3
  124. never_direct allow speedtest3
  125. url_rewrite_children 32 startup=10 idle=1 concurrency=50
  126. # ========================================================================================================
  127. # ========================================================================================================
  128. # Lock_resol 240-360
  129. # ========================================================================================================
  130. acl youtube_240 dstdomain .youtube.com
  131. request_header_access Accept-Encoding deny youtube_240
  132. loadable_modules /usr/local/lib/DSI_ecap_youtube.so
  133. ecap_enable on
  134. ecap_service ecapModifier respmod_precache \
  135. uri=ecap://dokter-squid.com/ecap yt_quality=medium
  136. adaptation_access ecapModifier allow youtube_240
  137. adaptation_access ecapModifier deny all
  138. # =========================================================================================================
  139. #Deny Access
  140. acl deny_domain dstdomain "/etc/squid/malesbanget.txt"
  141. http_access deny deny_domain
  142. http_reply_access deny deny_domain
  143. # ========================================================================================================
  144. acl deny_url url_regex -i "/etc/squid/blokir.txt"
  145. http_access deny deny_url
  146. http_reply_access deny deny_url
  147. # ========================================================================================================
  148. # config_GAME
  149. # ========================================================================================================
  150. # dota2
  151. acl store_rewrite_list url_regex -i .*\.*steampowered\.com\/(.*)
  152. acl store_rewrite_list url_regex -i ^https?\:\/\/.*steampowered.*\/(client|depot)\/(.*)\?.*
  153. acl store_rewrite_list url_regex -i ^https?\:\/\/.*steampowered.*\/(client|depot)\/(.*)
  154. refresh_pattern -i ^http:\/\/((.*dota2\.com*).*$) 43830 99% 259200 override-expire override-lastmod ignore-reload
  155. refresh_pattern -i .*\.*steampowered\.com\/.* 1440 100% 4320 override-expire override-lastmod reload-into-ims ignore-auth store-stale
  156. refresh_pattern -i ^http:\/\/.*steampowered\.com.* 1 50% 4320 reload-into-ims refresh-ims
  157. # ========================================================================================================
  158. # PARTIAL GARENA
  159. # GAME PARTIAL CONTENT
  160. acl partial_garena url_regex -i .*\.garenanow.com\/.*\.(dll|xml|exe|version|jpg|png|bmp)$
  161. acl partial_garena url_regex -i .*\.garenanow.com\/.*
  162. acl partial_garena url_regex -i .*cdn.id.garenanow.com\/.*
  163. acl partial_garena url_regex -i .*\.cdn.starhub.com\/.*\.exe?.*
  164. refresh_pattern -i .*cdn.garenanow.com\/.* 1440 40% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  165. refresh_pattern -i .*edge.cdn.starhub.com\/.* 1440 40% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  166. refresh_pattern -i .*cdn.id.garenanow.com\/.* 1440 40% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  167. # ========================================================================================================
  168. # GAME PARTIAL CONTENT
  169. acl partial_206 url_regex -i ^http:\/\/(.*\.github\.io\/.*)[^\&\s]*\/(.*\.mp4?.*)
  170. acl partial_206 url_regex -i ^http:\/\/.*\.(garenanow\.com)(.*\.exe?.*)
  171. acl partial_206 url_regex -i ^http:\/\/.*\.(garenanow\.com\/.*[^\&\s]*).*(patcher.*\.?)
  172. acl partial_206 url_regex -i ^http:\/\/.*\.(garenanow\.com)\/.*\.*\/(.*patcher.*)
  173. acl partial_206 url_regex -i ^http:\/\/(.*\.*\.gemscool\.com)\/.*\/.*\/(.*pak?)
  174. acl partial_206 url_regex -i ^http:\/\/(.*\.*\.gemscool\.com)\/.*\/.*\/(.*iop?)
  175. refresh_pattern -i ^http:\/\/(.*\.github\.io\/.*)[^\&\s]*\/(.*\.mp4?.*) 1440 40% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  176. refresh_pattern -i ^http:\/\/(.*\.*\.gemscool\.com)\/.*\/.*\/(.*pak?)  0 20% 14400 ignore-reload override-expire override-lastmod ignore-must-revalidate  ignore-private ignore-no-store ignore-auth store-stale
  177. refresh_pattern -i ^http:\/\/.*\.(garenanow\.com)(.*\.exe?.*) 1440 40% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  178. refresh_pattern -i ^http:\/\/.*\.(garenanow\.com\/.*[^\&\s]*).*(patcher.*\.?) 1440 40% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  179. refresh_pattern -i ^http:\/\/.*\.(garenanow\.com)\/.*\.*\/(.*patcher.*)  1440 40% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  180. refresh_pattern -i ^http:\/\/(.*\.*\.gemscool\.com)\/.*\/.*\/(.*iop?)  0 20% 14400 ignore-reload override-expire override-lastmod ignore-must-revalidate  ignore-private ignore-no-store ignore-auth store-stale
  181. refresh_pattern -i ^http:\/\/(.*\.*\.gemscool\.com)\/.*\/.*\/(.*zip?) 1440 40% 14400 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  182. range_offset_limit none partial_206
  183. # ========================================================================================================
  184. # ACCESS RULES
  185. http_access deny !Safe_ports
  186. http_access deny CONNECT !SSL_ports
  187. http_access allow localnet
  188. http_access allow localhost
  189. http_reply_access allow all
  190. http_access deny all
  191.  
  192. # LISTENING PORT SQUID
  193. https_port 3127 tproxy ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/squid/ssl_certs/squid.crt key=/etc/squid/ssl_certs/squid.key cipher=ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA:DHE-RSA-CAMELLIA128-SHA:AES128-SHA:RC4-SHA:HIGH:!aNULL:!MD5:!ADH
  194. http_port 3128
  195. http_port 3129 tproxy
  196.  
  197. # CONNECTION HANDLING
  198. qos_flows local-hit=0x30
  199. collapsed_forwarding on
  200. balance_on_multiple_ip on
  201. detect_broken_pconn on
  202. client_persistent_connections off
  203. server_persistent_connections on
  204.  
  205. # DNS OPTIONS
  206. #dns_packet_max 4096
  207. dns_defnames on
  208. dns_v4_first on
  209. dns_nameservers 192.168.1.254 8.8.8.8 8.8.4.4
  210. connect_retries 2
  211. negative_dns_ttl 1 second
  212. range_offset_limit 0
  213. quick_abort_min 0
  214. quick_abort_max 0
  215. quick_abort_pct 80
  216. ipcache_low 98
  217. ipcache_high 99
  218. ipcache_size 4096
  219. fqdncache_size 2048
  220. pipeline_prefetch 0
  221.  
  222. # MISCELEANOUS
  223. memory_pools off
  224. reload_into_ims on
  225. max_filedescriptors 65536
  226.  
  227. # CACHE MANAGEMENT
  228. cache_mem 512 MB
  229. maximum_object_size_in_memory 128 KB
  230. memory_replacement_policy heap GDSF
  231. cache_effective_group proxy
  232. cache_effective_user proxy
  233. cache_dir aufs /cache/cache 50000 16 256
  234. coredump_dir /cache/cache
  235. cache_mgr kangmus
  236. visible_hostname kangmus
  237. minimum_object_size 0 KB
  238. maximum_object_size 1 GB
  239. read_ahead_gap 64 KB  
  240. cache_replacement_policy heap LFUDA
  241. store_dir_select_algorithm least-load
  242. # strip_query_terms off
  243. cache_swap_high 90
  244. cache_swap_low 95
  245.  
  246. # LOG FILE OPTIONS
  247. acl log method CONNECT
  248. logfile_daemon /usr/lib/squid/log_file_daemon
  249. access_log daemon:/var/log/squid/access.log !CONNECT
  250. # cache_log /dev/null      
  251. cache_log /var/log/squid/cache.log
  252. debug_options ALL,1 22,3
  253. cache_store_log none
  254. logfile_rotate 5
  255. pid_filename /var/run/squid.pid
  256.  
  257. # FILTERING HTTPS
  258. acl 1 dstdomain .fbcdn.net .akamaihd.net .fbsbx.com
  259. acl 2 url_regex -i ^http.*\.(fbcdn|akamaihd)\.net\/h(profile|photos).*[\d\w].*\/([\w]\d+x\d+\/.*\.[\d\w]{3}).*
  260. acl 2 url_regex -i ^http(.*)static(.*)(akamaihd|fbcdn).net\/rsrc.php\/(.*\/.*\/(.*).(js|css|png|gif))(\?(.*)|$)
  261. acl 2 url_regex -i ^https?:\/\/[a-zA-Z0-9\-\_\.\%]*(fbcdn|akamaihd)[a-zA-Z0-9\-\_\.\%]*net\/rsrc\.php\/(.*)
  262. acl 2 url_regex -i ^https?\:\/\/.*(profile|photo|creative).*\.ak\.fbcdn\.net\/((h|)(profile|photos)-ak-)(snc|ash|prn)[0-9]?(.*)
  263. acl 2 url_regex -i ^https?:\/\/attachment\.fbsbx\.com\/.*\?(id=[0-9]*).*
  264. acl 2 url_regex -i ^https?:\/\/.*(profile|photo|creative)*.akamaihd\.net\/((h|)(profile|photos|ads)-ak-)(snc|ash|prn|frc[0-9])[0-9]?(.*)
  265. acl 2 url_regex -i ^https?\:\/\/video\.(.*)\.fbcdn\.net\/(.*?)\/([0-9_]+\.(mp4|flv|avi|mkv|m4v|mov|wmv|3gp|mpg|mpeg)?)(.*)
  266. acl 2 url_regex -i \.fbsbx\.com\/.*\/(.*\.(unity3d|pak|zip|exe|dll|jpg|png|gif|swf)/)$
  267. acl 2 url_regex -i ^https?:\/\/([^\.]*)\.yimg\.com\/(.*)
  268. acl 2 url_regex -i (.*\.vimeocdn\.com\/.*[^\&\s]*)\/([^\&\s]*\.?).*$
  269. acl 2 url_regex -i ^https:\/\/.*googleapis\.com\/.*\.*\/v2\/code\.google\.com\/.*\.*
  270. acl 2 url_regex -i ^https?:\/\/.*\.gstatic\.com\/images\?q=tbn\:(.*)
  271. acl 2 url_regex -i ^https:\/\/.*googleapis\.com\/.*\.*\/v2\/code\.google\.com\/.*\.*
  272. acl 2 url_regex -i ^http:\/\/.*\.*filehippo\.com.*\.*
  273. acl 2 url_regex -i ^https?:\/\/.*\.reverbnation\.com\/.*\/(ec_stream_song|download_song_direct|stream_song)\/([0-9]*).*
  274. acl 2 url_regex -i .*(audio_player|ec_stream_song).*$
  275. acl 2 url_regex -i (reverbnation|c2lo)\.com\/(get_audio|audioplayback|audioplay).*$
  276. acl 2 url_regex -i ^https?:\/\/([a-z0-9.]*)(\.doubleclick\.net|\.quantserve\.com|.exoclick\.com|interclick.\com|\.googlesyndication\.com|\.auditude\.com|.visiblemeasures\.com|yieldmanager|cpxinteractive)(.*)
  277. acl 2 url_regex -i ^https?:\/\/(.*?)\/(ads)\?(.*?)
  278. acl 3 url_regex -i ^https?:\/\/(.*?)\/speedtest\/.*\.(jpg|txt|png|gif|swf)\?.*
  279. acl 3 url_regex -i speedtest\/.*\.(jpg|txt|png|gif|swf)\?.*
  280. acl 4 url_regex -i reverbnation.*audio_player.*ec_stream_song.*$
  281. acl 5 url_regex -i utm.gif.*
  282. acl 5 url_regex -i ^http:\/\/[a-z]+[0-9]\.google\.com doubleclick\.net
  283. acl 5 url_regex -i \.(mp2|mp3|mid|midi|mp[234]|wav|ram|ra|rm|au|3gp|m4r|m4a)\?
  284. acl 5 url_regex -i \.(mpg|mpeg|mp4|m4v|mov|avi|asf|wmv|wma|dat|flv|swf)\?
  285. acl 6 url_regex -i c.android.clients.google.com.market.GetBinary.GetBinary.*
  286. acl 6 url_regex -i \.(mp2|mp3|mid|midi|mp[234]|wav|ram|ra|rm|au|3gp|m4r|m4a)\?
  287. acl 6 url_regex -i ^http:\/\/([A-Za-z-]+[0-9]+)*\.[A-Za-z]*\.[A-Za-z]*
  288. acl 6 url_regex -i \.(mp2|mp3|mid|midi|mp[234]|wav|ram|ra|rm|au|3gp|m4r|m4a)$
  289. acl 6 url_regex -i \.(mpg|mpeg|mp4|m4v|mov|avi|asf|wmv|wma|dat|flv|swf)$
  290. acl 6 url_regex -i \.(jpeg|jpg|jpe|jp2|gif|tiff?|pcx|png|bmp|pic|ico)$
  291. acl 7 url_regex -i (get_video\?|videodownload\?|videoplayback.*id)
  292. acl 7 url_regex -i ^https?:\/\/.*\.googlevideo\.com\/videoplayback\?
  293. acl 7 url_regex -i ^https?:\/\/.*\.ytimg\.com.*\.(webp|jpg|gif)
  294. acl 7 url_regex -i ^https?\:\/\/.*\.*ytimg\.com\/(.*)
  295. acl 7 url_regex -i ^https?\:\/\/.*\.*.ggpht.com\/(.*?)$
  296. acl 7 url_regex -i youtube.*(ptracking|stream_204|player_204|gen_204).*$
  297. acl 7 url_regex -i \.c\.(youtube|google)\.com\/(get_video|videoplayback|videoplay).*$
  298. acl 7 url_regex -i (youtube|google).*\/videoplayback\?.*
  299.  
  300. acl 8 http_status 302
  301.  
  302. acl store_url url_regex -i (youtube|googlevideo|docs.google|video.google).*videoplayback\?.*
  303. acl loop_302 http_status 302
  304. acl loop_mime rep_mime_type text/html
  305. acl loop_mime rep_mime_type text/plain
  306. acl getmethod method GET
  307.  
  308. store_miss deny store_url loop_302
  309. store_miss deny store_url loop_mime
  310. send_hit deny store_url loop_302
  311. send_hit deny store_url loop_mime
  312.  
  313. acl ipbypass dst "/etc/squid/ipbypass.txt"
  314. ssl_bump splice ipbypass
  315. ssl_bump splice localhost
  316. acl 9 at_step SslBump1
  317. acl 10 at_step SslBump2
  318. acl 11 at_step SslBump3
  319. ssl_bump peek 9 all
  320. ssl_bump stare 10 all
  321. ssl_bump splice 11 all
  322.  
  323. sslcrtd_program /usr/lib/squid/ssl_crtd -s /etc/squid/ssl_db -M 4MB
  324. sslcrtd_children 16 startup=1 idle=1
  325. sslproxy_capath /etc/ssl/certs
  326. sslproxy_cert_error allow all
  327. sslproxy_flags DONT_VERIFY_PEER
  328. always_direct allow all
  329. ssl_unclean_shutdown on
  330.  
  331. # ========================================================================================================
  332. # jangan lupa mamam kalo telat mamam nanti salatri gaess! omat disanguan
  333. # ========================================================================================================
  334. acl vimeo url_regex -i ^https?:\/\/.*\.*(vimeo\.com.*\/)(\.?.*).*
  335. acl vimeo url_regex -i ^https?\:\/\/.*\.akamaihd\.net\/(.*[0-9]+\w+\d+[^\&\s]*)
  336. acl vimeo url_regex -i ^https?\:\/\/(.*\.akamaihd\.net\/)(.*\.?\W+)(.*[0-9]+\w+\d+[^\&\s]*).*
  337. acl vimeo url_regex -i ^https?:\/\/.*\.vimeocdn\.com\/(.*(jpg|webp|jpeg|gif|image)).*
  338. acl vimeo url_regex -i ^https?\:\/\/.*\.akamaihd\.net\/(.*\.*)(.*[0-9]+\w+\d+[^\&\s]*).*
  339. acl vimeo url_regex -i ^https?:\/\/.*\.vimeocdn\.com(.*\.*)(.*[0-9]+\w+\d+[^\&\s]*).*
  340. # ========================================================================================================
  341.  
  342. acl mediafire url_regex -i ^http:\/\/.*\.*mediafire\.com.*\/(.*[0-9]+\w+\d+[^\&\s]*).*
  343. acl mediafire url_regex -i ^http:\/\/.*\.*mediafire\.com.*\/(\w+\d+[0-9]+[^\&\s]*).*
  344. acl mediafire url_regex -i ^https?:\/\/.*\.(mediafire\.com\/)(.*[0-9]+[^\&\s]*)
  345. acl mediafire url_regex -i ^https?:\/\/.*\.mediafire\.com\/(.*[0-9]+[^\&\s]*)
  346. acl yt-mp3 url_regex -i ^http:\/\/(.*\.*)\W+(aclst\.com).*\.*(mp3.*?)\.*\.*(\w+\d+.*)
  347. acl apple url_regex -i ^http:\/\/(.*\.*apple\.com\W+\d+[0-9]*[^\&\s]*).*
  348. acl apple url_regex -i ^http:\/\/.*\.apple\.com\/([^\&\s]*).*
  349. # ========================================================================================================
  350.  
  351. # STORE ID
  352. store_id_extras "%>a/%>A %un %>rm myip=%la myport=%lp  %{Referer}>h"
  353. store_id_program /usr/bin/perl /etc/squid/store-id.pl
  354. store_id_children 10 startup=5 idle=2 concurrency=10
  355. store_id_access allow store_rewrite_list
  356. store_id_access allow vimeo
  357. store_id_access allow yt-mp3
  358. store_id_access allow apple
  359. store_id_access allow mediafire
  360. store_id_access allow 1
  361. store_id_access allow 2
  362. store_id_access allow 3
  363. store_id_access allow 4
  364. store_id_access allow 5
  365. store_id_access allow 6
  366. store_id_access allow 7
  367. store_miss deny 7 8
  368. send_hit deny 7 8
  369. store_id_access deny all
  370.  
  371. # TUNNING CACHE
  372. max_stale 100 years
  373. vary_ignore_expire on
  374. shutdown_lifetime 10 seconds
  375.  
  376. # REFRESH_PATTERN
  377. # pecinta mamam yuk ah
  378.  
  379. refresh_pattern -i ^https?\:\/\/.*\.akamaihd\.net\/(.*[0-9]+\w+\d+[^\&\s]*) 432000 100% 432000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate
  380. refresh_pattern -i ^https?:\/\/.*\.vimeocdn\.com\/(.*(video|mp4|flv|3gp|x-flv|xjs|jpg|webp|jpeg|gif|svg|icon|css|html)).* 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  381. refresh_pattern -i ^https?:\/\/.*\.*(vimeo\.com.*\/)(\.?.*).* 432000 100% 432000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate
  382. # refresh_pattern -i ^https?\:\/\/(.*\.akamaihd\.net\/)(.*\.?\W+)(.*[0-9]+\w+\d+[^\&\s]*).* 129600 99% 129600 ignore-reload override-expire override-lastmod ignore-must-revalidate  ignore-private ignore-no-store ignore-auth store-stale
  383. # refresh_pattern -i ^https?:\/\/(.*\.vimeocdn\.com\/)(.*\.?\W+)(.*[0-9]+\w+\d+[^\&\s]*).* 129600 99% 129600 ignore-reload override-expire override-lastmod ignore-must-revalidate  ignore-private ignore-no-store ignore-auth store-stale
  384.  
  385. refresh_pattern -i ^https?\:\/\/.*\.*.ggpht.com\/.*  1440 100% 129600 override-expire override-lastmod ignore-auth ignore-reload reload-into-ims
  386. refresh_pattern -i ^https?\:\/\/.*\.*ytimg\.com\/.* 1440 100% 129600 override-expire override-lastmod ignore-auth ignore-reload reload-into-ims
  387. refresh_pattern -i ^http.*\.puji\-ganteng\.com.* 432000 100% 432000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate
  388. refresh_pattern -i https?:\/\/.*\.xx\.fbcdn\.net\/.*\.(jpg|png) 43830 99% 259200 override-expire override-lastmod ignore-reload
  389. refresh_pattern static\.(xx|ak)\.fbcdn\.net*\.(jpg|gif|png) 241920 99% 241920 ignore-reload override-expire ignore-no-store
  390. refresh_pattern ^https?\:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 241920 99% 241920 ignore-reload override-expire ignore-no-store
  391. refresh_pattern (akamaihd|fbcdn)\.net 14400 99% 518400  ignore-no-store ignore-private ignore-reload ignore-must-revalidate store-stale
  392. refresh_pattern (audio|video)\/(webm|mp4) 129600 99% 129600 ignore-reload override-expire override-lastmod ignore-must-revalidate  ignore-private ignore-no-store ignore-auth store-stale
  393. refresh_pattern -i \/speedtest\/.*\.(txt|jpg|png|swf)  0  99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
  394. refresh_pattern -i (get_video\?|videoplayback\?|videodownload\?|\.mp4|\.webm|\.flv|((audio|video)\/(webm|mp4))) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  395. refresh_pattern -i ^https?\:\/\/.*\.googlevideo\.com\/videoplayback.*   10080 99% 43200 override-lastmod override-expire ignore-reload reload-into-ims ignore-private reload-into-ims ignore-auth store-stale
  396. refresh_pattern -i \.*\.*(webm|mp4).* 129600 99% 129600 ignore-reload override-expire override-lastmod ignore-must-revalidate  ignore-private ignore-no-store ignore-auth store-stale
  397. refresh_pattern -i reverbnation.com 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private ignore-must-revalidate ignore-reload store-stale
  398. 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
  399. refresh_pattern \.(ico|video-stats) 1440 99% 14400 override-expire ignore-reload ignore-private ignore-auth override-lastmod ignore-must-revalidate
  400. 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
  401. refresh_pattern vid\.akm\.dailymotion\.com.*\.on2\? 1440 99% 14400 override-expire override-lastmod
  402. refresh_pattern galleries\.video(\?|sz) 1440 99% 14400 override-expire ignore-reload ignore-must-revalidate ignore-private
  403. refresh_pattern \.wikimapia\.org\/? 1440 99% 14400 override-expire override-lastmod ignore-reload ignore-private
  404. refresh_pattern -i (livescore.com|goal.com|bobet) 0 50% 60
  405. 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
  406. refresh_pattern (zynga|topeleven|ninjasaga|mafiawars|cityville|farmville|crowdstar|spilcdn|agame|popcap)\.com/.* 1440 99% 14400 override-expire ignore-reload ignore-private
  407. refresh_pattern -i \.*(.*(google\.co\.id))(.*$) 1440 99% 14400 override-expire ignore-reload ignore-private ignore-auth override-lastmod ignore-must-revalidate
  408. #==================================================================================================================================================================================================================================================
  409. # refresh_pattern versi mamam yuk ah
  410. refresh_pattern -i ^https?:\/\/.*\.google\.com\/(.*\.*\/([^\&\s]*)) 1440 99% 14400 override-expire ignore-reload ignore-private ignore-auth override-lastmod ignore-must-revalidate
  411. refresh_pattern -i ^https?:\/\/.*\.whatismyip\.com\/.* 0  99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
  412. refresh_pattern -i (gstatic|google.*).*?/images\?.*tbn\: 1440 99% 14400 override-expire ignore-reload ignore-private
  413. refresh_pattern -i \.*(.*(maps)).* 1440 99% 14400 override-expire ignore-reload ignore-private ignore-auth override-lastmod ignore-must-revalidate
  414. refresh_pattern -i \.*(.*(woff[0-9]+)).* 1440 99% 14400 override-expire ignore-reload ignore-private ignore-auth override-lastmod ignore-must-revalidate
  415. refresh_pattern -i ^https?:\/\/.*\.*(google.*)\/([^\&\s]*).* 1440 99% 14400 override-expire ignore-reload ignore-private ignore-auth override-lastmod ignore-must-revalidate
  416. refresh_pattern -i ^https?:\/\/.*(gstatic\.com.*).* 1440 99% 14400 override-expire ignore-reload ignore-private
  417. # mamam yuk
  418. refresh_pattern -i ^http:\/\/(.*\.*apple\.com\W+\d+[0-9]*[^\&\s]*).* 10080 80% 43200 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  419. refresh_pattern -i ^http:\/\/.*\.apple\.com\/([^\&\s]*).* 10080 80% 43200 override-expire override-lastmod ignore-no-cache ignore-private reload-into-ims ignore-must-revalidate ignore-reload store-stale
  420. refresh_pattern -i ^https?\:\/\/video\-http\.media\-imdb\.com\/(.*\.mp4).* 129600 99% 129600 ignore-reload override-expire override-lastmod ignore-must-revalidate  ignore-private ignore-no-store ignore-auth store-stale
  421. #==================================================================================================================================================================================================================================================
  422. refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  423. refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar|iop|nzp|pak|mar|msp) 10080 80% 10080 override-expire override-lastmod reload-into-ims ignore-reload
  424. refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  425. refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob|webm) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  426. refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  427. refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|cup|dvr-ms|ram|rpm|exe|inc|cab|qt) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  428. refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar|pak|cup) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  429. refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  430. refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  431. refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  432. refresh_pattern -i .(html|htm|css|js|xml)$ 1440 75% 40320
  433. refresh_pattern -i .index.(html|htm)$ 0 75% 43800
  434. refresh_pattern -i ^http.*squid\.internal.* 43200 100% 799000 override-expire override-lastmod ignore-reload ignore-no-store ignore-must-revalidate ignore-private ignore-auth
  435.  
  436. #KEEP THESE LINES AT BOTTOM OF CONFIGURATION
  437. refresh_pattern ^ftp:  1440 20% 10080
  438. refresh_pattern ^gopher: 1440 0% 1440
  439. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  440. refresh_pattern .  0 0% 4320
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement