Advertisement
hamidy

squid.conf

Jun 24th, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. http_port 3128 transparent
  2. hierarchy_stoplist cgi-bin ?
  3. acl QUERY urlpath_regex -i cgi-bin \?
  4. cache deny QUERY
  5. acl localnet src 127.0.0.1/32
  6. acl lan src 192.168.11.0/24
  7. acl luar src 192.168.10.0/24
  8. acl manager proto cache_object
  9. acl SSL_ports port 443
  10. acl SSL_ports port 563
  11. acl SSL_ports port 81
  12. acl SSL_ports port 2087
  13. acl SSL_ports port 10000
  14. acl Safe_ports port 21
  15. acl Safe_ports port 70
  16. acl Safe_ports port 80
  17. acl Safe_ports port 210
  18. acl Safe_ports port 280
  19. acl Safe_ports port 443
  20. acl Safe_ports port 488
  21. acl Safe_ports port 563
  22. acl Safe_ports port 591
  23. acl Safe_ports port 631
  24. acl Safe_ports port 777
  25. acl Safe_ports port 901
  26. acl Safe_ports port 81
  27. acl Safe_ports port 3128
  28. acl Safe_ports port 1025-65535
  29. acl purge method PURGE
  30. acl CONNECT method CONNECT
  31. acl pdf urlpath_regex \.pdf$
  32. no_cache deny pdf
  33. icp_port 3120
  34. log_icp_queries off
  35. icp_hit_stale off
  36. query_icmp on
  37. http_access allow localnet
  38. http_access allow lan
  39. http_access allow luar
  40. http_access deny !Safe_ports
  41. http_access deny CONNECT !SSL_ports
  42. http_access deny purge
  43. cache_mem 3024 MB
  44. maximum_object_size_in_memory 3024 MB
  45. maximum_object_size 128000 KB
  46. minimum_object_size 0 KB
  47. memory_replacement_policy heap GDSF
  48. cache_replacement_policy heap LFUDA
  49. cache_dir aufs /p1 68000 183 256
  50. cache_dir aufs /p2 68000 183 256
  51. cache_swap_low 98
  52. cache_swap_high 99
  53. store_dir_select_algorithm least-load|round-robin
  54. access_log /var/log/squid3/access.log
  55. mime_table /etc/squid3/mime.conf
  56. cache_store_log none
  57. pid_filename /var/run/squid.pid
  58. refresh_pattern -i \.(html|htm|html\?|htm\?)$ 9440 90% 100000 override-expire reload-into-ims
  59. refresh_pattern -i \.(gif|png|jpg|jpeg|ico|bmp|tiff|webp|bif|gif\?|png\?|jpg\?|jpeg\?|ico\?|bmp\?|tiff\?|webp\?|bif\?)$ 36000 90% 100000 override-expire reload-into-ims ignore-reload
  60. refresh_pattern \.(swf|swf\?|js|js\?|wav|css|css\?|class|dat|zsci)$ 36000 90% 100000 override-expire reload-into-ims
  61. refresh_pattern -i \.(bin|deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|docx|tiff|pdf|uxx|gz|xls|xlsx|psd|crl|msi|dll|dll\?|crx|enc|skl|arc)$ 36000 90% 100000 override-expire override-lastmod reload-into-ims ignore-reload
  62. refresh_pattern -i \.(xml)$ 0 90% 100000
  63. refresh_pattern -i \.(json|json\?)$ 1440 90% 5760 override-expire reload-into-ims
  64. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  65. refresh_pattern ^ftp: 5440 90% 10080
  66. refresh_pattern ^gopher: 1440 0% 1440
  67. refresh_pattern -i . 0 90% 5760
  68. refresh_pattern -i detik.com/.* 10080 90% 43200
  69. refresh_pattern -i google.com/.* 10080 90% 43200
  70. refresh_pattern -i facebook.com/.* 10080 90% 43200
  71. quick_abort_min 0 KB
  72. quick_abort_max 0 KB
  73. quick_abort_pct 100
  74. store_avg_object_size 13 KB
  75. vary_ignore_expire on
  76. dns_nameservers 192.168.11.1
  77. ipcache_size 8192
  78. ipcache_low 98
  79. ipcache_high 99
  80. fqdncache_size 8192
  81. cache_mgr aurel_alika_masihBOBOK
  82. cache_effective_user proxy
  83. cache_effective_group proxy
  84. httpd_suppress_version_string on
  85. visible_hostname cahaya_malam
  86. mime_table /etc/squid3/mime.conf
  87. forward_timeout 240 second
  88. connect_timeout 30 second
  89. peer_connect_timeout 5 second
  90. read_timeout 600 second
  91. request_header_max_size 2560 KB
  92. request_timeout 60 second
  93. shutdown_lifetime 5 seconds
  94. memory_pools on
  95. read_ahead_gap 1 MB
  96. client_db on
  97. reload_into_ims on
  98. pipeline_prefetch on
  99. offline_mode off
  100. acl download url_regex -i .ftp .exe .mp3 .vqf .tar.gz .gz .tar .rpm .zip .rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov .msi .mp4 .flv
  101. delay_pools 2
  102. delay_class 1 2
  103. delay_parameters 1 -1/-1 -1/-1
  104. delay_class 2 2
  105. delay_parameters 2 15000/90000 1500/90000
  106. delay_access 1 deny download
  107. delay_access 1 allow all
  108. delay_access 2 allow download !lan
  109. delay_access 2 deny all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement