Advertisement
ujiajah1

speedtes manipulation /malfunction speedtest

Apr 9th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # speedtest
  2. # ========================================================================================================
  3. acl speedtest url_regex -i \/speedtest\/.*\.(jpg|png|txt|php).*
  4. acl speedtest2 url_regex -i ^http:\/\/.*speedtest\.net\/id\/.*\.php.*
  5. acl speedtest3 url_regex -i ^http:\/\/.*api\.ookla\.com\/.*\.php
  6.  
  7. url_rewrite_access allow speedtest
  8. url_rewrite_access allow speedtest2
  9. url_rewrite_access allow speedtest3
  10.  
  11. url_rewrite_access deny all
  12.  
  13. url_rewrite_program /etc/squid/rewritespeed.pl
  14.  
  15. redirector_bypass on
  16.  
  17. cache_peer 172.16.0.2 parent 80 0 no-digest no-tproxy
  18. dead_peer_timeout 5 seconds
  19. cache_peer_access 172.16.0.2 allow speedtest
  20. cache_peer_access 172.16.0.2 allow speedtest2
  21. cache_peer_access 172.16.0.2 allow speedtest3
  22.  
  23. cache_peer_access 172.16.0.2 deny all
  24. always_direct deny speedtest
  25. never_direct allow speedtest
  26. always_direct deny speedtest2
  27. never_direct allow speedtest2
  28. always_direct deny speedtest3
  29. never_direct allow speedtest3
  30. url_rewrite_children 32 startup=10 idle=1 concurrency=50
  31. # ========================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement