Advertisement
ney2x

squid.conf

Jan 7th, 2014
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.17 KB | None | 0 0
  1. # Do not edit manually !
  2. http_port 192.168.1.1:3128 transparent
  3. http_port 127.0.0.1:80 transparent
  4. icp_port 0
  5.  
  6. pid_filename /var/run/squid.pid
  7. cache_effective_user proxy
  8. cache_effective_group proxy
  9. error_directory /usr/local/etc/squid/errors/English
  10. icon_directory /usr/local/etc/squid/icons
  11. visible_hostname ney2x
  12. cache_mgr ney2x@outlook.com
  13. access_log /var/squid/logs/access.log
  14. cache_log /var/squid/logs/cache.log
  15. cache_store_log none
  16. logfile_rotate 7
  17. shutdown_lifetime 0 seconds
  18. # Allow local network(s) on interface(s)
  19. acl localnet src  192.168.1.0/255.255.255.0
  20. uri_whitespace strip
  21. dns_nameservers 127.0.0.1
  22.  
  23. cache_mem 512 MB
  24. maximum_object_size_in_memory 32 KB
  25. memory_replacement_policy heap GDSF
  26. cache_replacement_policy heap LFUDA
  27. cache_dir coss /var/squid/coss 50 max-size=4096 block-size=512
  28. cache_dir aufs /var/squid/cache 71680 16 256 min-size=4096
  29. minimum_object_size 0 KB
  30. maximum_object_size 256 MB
  31. offline_mode off
  32. cache_swap_low 90
  33. cache_swap_high 95
  34. acl donotcache dstdomain "/var/squid/acl/donotcache.acl"
  35. cache deny donotcache
  36. # No redirector configured
  37.  
  38.  
  39.  
  40. # Setup some default acls
  41. acl all src 0.0.0.0/0.0.0.0
  42. acl localhost src 127.0.0.1/255.255.255.255
  43. acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901  3128 1025-65535
  44. acl sslports port 443 563
  45. acl manager proto cache_object
  46. acl purge method PURGE
  47. acl connect method CONNECT
  48. acl partialcontent_req req_header Range .*
  49. #acl dynamic urlpath_regex cgi-bin \?
  50. include /usr/local/etc/squid/include.conf
  51. #cache deny dynamic
  52. http_access allow manager localhost
  53.  
  54. # Allow external cache managers
  55. acl ext_manager_1 src 192.168.1.1
  56. http_access allow manager ext_manager_1
  57.  
  58. http_access deny manager
  59. http_access allow purge localhost
  60. http_access deny purge
  61. http_access deny !safeports
  62. http_access deny CONNECT !sslports
  63.  
  64. # Always allow localhost connections
  65. http_access allow localhost
  66.  
  67. quick_abort_min 0 KB
  68. quick_abort_max 0 KB
  69. quick_abort_pct 100
  70. range_offset_limit 0 MB
  71. request_body_max_size 0 allow all
  72. reply_body_max_size 0 deny all
  73.  
  74. # Allow local network(s) on interface(s)
  75. http_access allow localnet
  76.  
  77. # Default block all to be sure
  78. http_access deny all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement