Guest
Public paste!

Squid.conf

By: a guest | Jun 30th, 2010 | Syntax: None | Size: 4.04 KB | Hits: 232 | Expires: Never
Copy text to clipboard
  1. url_rewrite_program /usr/bin/python /usr/share/videocache/videocache.py
  2. url_rewrite_children 30
  3. acl videocache_allow_url url_regex -i \.youtube\.com\/videoplayback
  4. acl videocache_allow_url url_regex -i \.youtube\.com\/get_video\?
  5. acl videocache_allow_url url_regex -i \.googlevideo\.com\/videoplayback \.googlevideo\.com\/videoplay \.googlevideo\.com\/get_video\?
  6. acl videocache_allow_url url_regex -i \.google\.com\/videoplayback \.google\.com\/videoplay \.google\.com\/get_video\?
  7. acl videocache_allow_url url_regex -i \.google\.[a-z][a-z]\/videoplayback \.google\.[a-z][a-z]\/videoplay \.google\.[a-z][a-z]\/get_video\?
  8. acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplayback\?
  9. acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/videoplay\?
  10. acl videocache_allow_url url_regex -i (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\/get_video\?
  11. acl videocache_allow_url url_regex -i proxy[a-z0-9\-][a-z0-9][a-z0-9][a-z0-9]?\.dailymotion\.com\/
  12. acl videocache_allow_url url_regex -i vid\.akm\.dailymotion\.com\/
  13. acl videocache_allow_url url_regex -i [a-z0-9][0-9a-z][0-9a-z]?[0-9a-z]?[0-9a-z]?\.xtube\.com\/(.*)flv
  14. acl videocache_allow_url url_regex -i bitcast\.vimeo\.com\/vimeo\/videos\/
  15. acl videocache_allow_url url_regex -i va\.wrzuta\.pl\/wa[0-9][0-9][0-9][0-9]?
  16. acl videocache_allow_url url_regex -i \.files\.youporn\.com\/(.*)\/flv\/
  17. acl videocache_allow_url url_regex -i \.msn\.com\.edgesuite\.net\/(.*)\.flv
  18. acl videocache_allow_url url_regex -i media[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/ mobile[a-z0-9]?[a-z0-9]?[a-z0-9]?\.tube8\.com\/
  19. acl videocache_allow_url url_regex -i \.mais\.uol\.com\.br\/(.*)\.flv
  20. acl videocache_allow_url url_regex -i \.video[a-z0-9]?[a-z0-9]?\.blip\.tv\/(.*)\.(flv|avi|mov|mp3|m4v|mp4|wmv|rm|ram)
  21. acl videocache_allow_url url_regex -i video\.break\.com\/(.*)\.(flv|mp4)
  22. acl videocache_allow_dom dstdomain .mccont.com dl.redtube.com .cdn.dailymotion.com
  23. acl videocache_deny_url url_regex -i http:\/\/[a-z][a-z]\.youtube\.com http:\/\/www\.youtube\.com
  24. url_rewrite_access deny videocache_deny_url
  25. url_rewrite_access allow videocache_allow_url
  26. url_rewrite_access allow videocache_allow_dom
  27. redirector_bypass on
  28. acl manager proto cache_object
  29. acl localhost src 127.0.0.1/32
  30. acl localhost src ::1/128
  31. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
  32. acl to_localhost dst ::1/128
  33. acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
  34. acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
  35. acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
  36. acl localnet src fc00::/7   # RFC 4193 local private network range
  37. acl localnet src fe80::/10  # RFC 4291 link-local (directly plugged) machines
  38. acl SSL_ports port 443
  39. acl Safe_ports port 80          # http
  40. acl Safe_ports port 21          # ftp
  41. acl Safe_ports port 443         # https
  42. acl Safe_ports port 70          # gopher
  43. acl Safe_ports port 210         # wais
  44. acl Safe_ports port 1025-65535  # unregistered ports
  45. acl Safe_ports port 280         # http-mgmt
  46. acl Safe_ports port 488         # gss-http
  47. acl Safe_ports port 591         # filemaker
  48. acl Safe_ports port 777         # multiling http
  49. acl CONNECT method CONNECT
  50. http_access allow manager localhost
  51. http_access deny manager
  52. http_access deny !Safe_ports
  53. http_access deny CONNECT !SSL_ports
  54. http_access allow localnet
  55. http_access allow localhost
  56. http_access deny all
  57. http_port 3128
  58. hierarchy_stoplist cgi-bin ?
  59. cache_mem 1024 MB
  60. maximum_object_size_in_memory 512 KB
  61. minimum_object_size 4 KB
  62. maximum_object_size 512 MB
  63. cache_dir diskd /var/spool/squid 50000 64 256
  64. coredump_dir /var/spool/squid
  65. offline_mode on
  66. refresh_pattern ^ftp:           1440    20%     10080
  67. refresh_pattern ^gopher:        1440    0%      1440
  68. refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
  69. refresh_pattern .               0       20%     4320