Advertisement
punces

new-squid.conf

Feb 13th, 2017
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. dns_v4_first on
  2.  
  3. reply_header_access Alternate-Protocol deny all
  4. reply_header_access Alt-Svc deny all
  5.  
  6. refresh_all_ims on
  7. reload_into_ims on
  8.  
  9. #asumsi sisa hardisk 900Gban
  10. #(720000000/256/256)*2
  11. cache_dir aufs /cache 720000 21980 256
  12. cache_mem 2 MB
  13. cache_swap_high 95
  14. cache_swap_low 90
  15.  
  16. cache_replacement_policy heap LFUDA
  17. memory_replacement_policy heap GDSF
  18.  
  19. maximum_object_size 4096000 KB
  20. maximum_object_size_in_memory 0 KB
  21.  
  22. visible_hostname cespun-proxy
  23. strip_query_terms off
  24. httpd_suppress_version_string on
  25. log_mime_hdrs off
  26. forwarded_for off
  27. via off
  28.  
  29. coredump_dir /var/log/squid
  30. logfile_rotate 1
  31.  
  32. max_filedescriptors 65536
  33.  
  34. fqdncache_size 4096
  35. ipcache_size 4096
  36. ipcache_high 95
  37. ipcache_low 90
  38.  
  39. http_port 3128
  40. http_port 3129 tproxy
  41. #https_port 3127 tproxy ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/etc/squid/ssl_cert/warnet.pem
  42. https_port 3127 tproxy ssl-bump generate-host-certificates=on cert=/etc/squid/ssl_cert/warnet.pem
  43.  
  44.  
  45. qos_flows local-hit=0x30
  46.  
  47. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
  48. acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
  49. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  50. acl localnet src fc00::/7 # RFC 4193 local private network range
  51. acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
  52. acl SSL_ports port 443
  53. acl Safe_ports port 80 # http
  54. acl Safe_ports port 182 # http
  55. acl Safe_ports port 21 # ftp
  56. acl Safe_ports port 443 # https
  57. acl Safe_ports port 70 # gopher
  58. acl Safe_ports port 210 # wais
  59. acl Safe_ports port 1025-65535 # unregistered ports
  60. acl Safe_ports port 280 # http-mgmt
  61. acl Safe_ports port 488 # gss-http
  62. acl Safe_ports port 591 # filemaker
  63. acl Safe_ports port 777 # multiling http
  64. acl PURGE method PURGE
  65. acl step1 at_step SslBump1
  66. acl step2 at_step SslBump2
  67. acl step3 at_step SslBump3
  68. acl range206 req_header Range -i byte
  69. acl iphone browser -i regexp (iPhone|iPad)
  70. acl BB browser -i regexp (BlackBerry|PlayBook)
  71. acl Winphone browser -i regexp (Windows.*Phone|Trident|IEMobile)
  72. acl Android browser -i regexp Android
  73. acl yt-rewrite url_regex -i ^https?\:\/\/(www|gaming)\.youtube\.com\/(watch\?v|embed|v)[=%&?\/]
  74. acl youtube url_regex -i ^http.*(youtube|googlevideo|videoplayback|videogoodput)
  75. acl urltomiss url_regex -i ^http.*(update|patch).*versi
  76. acl urltomiss url_regex -i ^http.*versi.*(update|patch)
  77. acl urltomiss url_regex -i ^http.*(update|patch|versi|version)\.ini
  78. acl urltomiss url_regex -i ^http.*(hsupdate|antihack|xigncode|gameguard|captcha|gameid|game_id|idgame|id_game|launcher|\.aspx|\.html|\.shtml|\.xhtml|\.ini)
  79. acl urltomiss url_regex -i ^http.*googlevideo\.com\/video(playback|goodput).*source[\&\=\?\/]yt_live
  80. acl urltomiss url_regex -i ^http.*googleapis\.com\/game
  81. acl patchpartial url_regex -i ^http.*patch.*garena
  82. acl patchpartial url_regex -i ^http.*garena.*patch
  83. acl httptomiss http_status 302
  84. acl mimehtml rep_mime_type -i mime-type ^text/html
  85. acl mimeplain rep_mime_type -i mime-type ^text/plain
  86. acl tostoreid url_regex -i ^http.*(youtube|googlevideo|videoplayback|videogoodput)
  87. acl tostoreid url_regex -i ^http.*(fbcdn|akamaihd)
  88. acl tostoreid url_regex -i ^http.*c2lo\.reverbnation\.com\/audio_player\/ec_stream_song\/.*\?
  89. acl tostoreid url_regex -i ^http.*\.c\.android\.clients\.google\.com\/market\/GetBinary\/GetBinary\/.*\/.*\?
  90. acl tostoreid url_regex -i ^http.*datafilehost.*\/get\.php.*file\=.*
  91. acl tostoreid url_regex -i ^http.*\.filehippo\.com\/.*\?
  92. acl tostoreid url_regex -i ^http.*\.4shared\.com\/.*\/.*\/.*\/dlink.*preview.mp3
  93. acl tostoreid url_regex -i ^http.*\.4shared\.com\/download\/.*\/.*\?tsid
  94. acl tostoreid url_regex -i ^http.*steam(powered|content)
  95. acl tostoreid url_regex -i ^http.*savefile\.co\:182\/.*\/.*\.(mp4|flv|3gp)
  96. acl tostoreid url_regex -i ^http.*video\-http\.media\-imdb\.com\/.*\.mp4\?
  97. acl tostoreid url_regex -i ^http.*\.dl\.sourceforge\.net
  98. acl speedtest url_regex -i ^http.*([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}|speedtest|espeed|api\.ookla).*\/(speedtest\.swf|speedtest-long\.swf|latency\.txt|upload\.php|speedtest-config\.php|ipaddress\.php|random.*\.jpg)
  99. acl blokir url_regex -i ^http.*kendedes\.uzone\.id
  100. acl blokir url_regex -i ^http.*internetpositif\.uzone\.id
  101.  
  102. acl CONNECT method CONNECT
  103. acl getmethod method GET
  104.  
  105. deny_info http://103.80.80.246 blokir
  106. http_access deny blokir
  107.  
  108. http_access deny !Safe_ports
  109. http_access deny CONNECT !SSL_ports
  110. http_access allow localhost manager
  111. http_access deny manager
  112. http_access allow localhost purge
  113. http_access deny purge
  114. http_access allow localnet
  115. http_access allow localhost
  116. http_access deny all
  117.  
  118. access_log /var/log/squid/access.log !CONNECT
  119. #access_log none
  120.  
  121. range_offset_limit none range206 patchpartial
  122. range_offset_limit 128 KB range206 !patchpartial
  123. quick_abort_min 1 KB
  124. quick_abort_max 1 KB
  125. quick_abort_pct 95
  126.  
  127. cache deny speedtest
  128. cache deny urltomiss
  129. cache deny localhost
  130. ssl_bump splice localhost
  131. ssl_bump peek step1 all
  132. ssl_bump bump all
  133.  
  134. cache_peer 10.212.212.212 parent 8033 0 no-digest no-tproxy
  135. dead_peer_timeout 5 seconds
  136. cache_peer_access 10.212.212.212 allow speedtest
  137. cache_peer_access 10.212.212.212 deny all
  138. always_direct deny speedtest
  139. never_direct allow speedtest
  140.  
  141. url_rewrite_access allow yt-rewrite !iphone !BB !Winphone !Android
  142. url_rewrite_access deny all
  143. url_rewrite_program /etc/squid/storerewrite.pl
  144. url_rewrite_children 2000 startup=30 idle=1
  145.  
  146. request_header_access Accept-Encoding deny yt-rewrite !iphone !BB !Winphone !Android
  147. #yt_quality: tiny = 144px small = 240px medium = 360px large = 480px HD720 = Hd720px
  148. ecap_enable on
  149. loadable_modules /usr/local/lib/ecap_adapter_modifying.so
  150. #ecap_service modif respmod_precache uri=ecap://e-cap.org/ecap/services/sample/modifying voctim="html5":true roplacement="html5":false
  151. ecap_service modif respmod_precache uri=ecap://e-cap.org/ecap/services/sample/modifying victim="enablejsapi" replacement="dash":"0","vq":"medium","enablejsapi"
  152. adaptation_access modif allow yt-rewrite !iphone !BB !Winphone !Android
  153. adaptation_access modif deny all
  154.  
  155. store_id_bypass off
  156. store_id_extras "%{Referer}>h"
  157. store_id_program /etc/squid/storeid.pl
  158. store_id_children 2000 startup=30 idle=1
  159. store_id_access allow tostoreid
  160. store_id_access deny all
  161.  
  162. store_miss deny youtube httptomiss
  163. send_hit deny youtube httptomiss
  164. store_miss deny youtube mimeplain
  165. send_hit deny youtube mimeplain
  166. store_miss deny mimehtml
  167. send_hit deny mimehtml
  168. store_miss deny urltomiss
  169. send_hit deny urltomiss
  170. store_miss deny speedtest
  171. send_hit deny speedtest
  172.  
  173. refresh_pattern -i .* 0 90% 432000 override-expire override-lastmod reload-into-ims refresh-ims ignore-no-store ignore-must-revalidate ignore-private ignore-auth
  174.  
  175. max_stale 100 years
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement