Advertisement
punces

squid.conf

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