Advertisement
kosmik2001

squid.conf

Apr 21st, 2015
398
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. http_port 3128
  2.  
  3. acl QUERY urlpath_regex cgi-bin \?
  4. no_cache deny QUERY
  5.  
  6. acl apache rep_header Server ^Apache
  7.  
  8. cache_mem 256 MB
  9.  
  10. maximum_object_size 4Mb
  11.  
  12. cache_replacement_policy lru
  13.  
  14. cache_dir aufs /Storage/squid-cache 8129 16 256
  15. access_log /Storage/system-logs/squid/squid.log squid
  16. cache_log /dev/null
  17.  
  18. mime_table /etc/squid/mime.conf
  19.  
  20. client_netmask 255.255.255.255
  21.  
  22. hosts_file /etc/hosts
  23.  
  24. refresh_pattern ^ftp: 1440 20% 10080
  25. refresh_pattern ^gopher: 1440 0% 1440
  26. refresh_pattern . 0 20% 4320
  27.  
  28. connect_timeout 20 second
  29.  
  30. half_closed_clients on
  31.  
  32. shutdown_lifetime 3 second
  33.  
  34. acl manager_ip src 127.0.0.1/32
  35. acl sqstat proto cache_object
  36. acl purge method PURGE
  37. http_access allow sqstat manager_ip
  38. http_access allow manager manager_ip
  39. http_access allow purge manager_ip
  40.  
  41. auth_param basic program /usr/libexec/squid/basic_ncsa_auth /etc/squid/passwd
  42. auth_param basic children 9
  43. auth_param basic realm Squid
  44. auth_param basic credentialsttl 2 hours
  45. auth_param basic casesensitive off
  46.  
  47. acl p_users proxy_auth REQUIRED
  48. http_access allow p_users
  49. http_access deny !p_users
  50.  
  51. acl admin_acl proxy_auth admin
  52. acl student_acl proxy_auth student
  53. acl pdd_acl proxy_auth pdd308 pdd414
  54. acl other_acl proxy_auth polyakova makarovskaya lemara kafedra414 dmitry406cab prep406user prep406user2 sanov gorlenko urist405 ohrena archive metod_cab sekretar akinshina sharaya
  55.  
  56. delay_pools 4
  57.  
  58. delay_class 1 1
  59. delay_parameters 1 6291456/6291456
  60. delay_access 1 allow admin_acl
  61.  
  62. delay_class 2 1
  63. delay_parameters 2 524288/524288
  64. delay_access 2 allow student_acl
  65.  
  66. delay_class 3 1
  67. delay_parameters 3 716800/716800
  68. delay_access 3 allow pdd_acl
  69.  
  70. delay_class 4 1
  71. delay_parameters 4 524288/524288
  72. delay_access 4 allow other_acl
  73.  
  74. acl webserver src satt.local
  75. acl SSL_ports port 443 # https
  76. acl Safe_ports port 80 # http
  77. acl Safe_ports port 21 # ftp
  78. acl Safe_ports port 443 # https
  79. acl CONNECT method CONNECT
  80.  
  81. acl satt_network src 192.168.0.0/16
  82. http_access allow satt_network
  83.  
  84. cache deny QUERY
  85.  
  86. http_access deny purge
  87.  
  88. http_access allow manager webserver
  89. http_access allow localhost
  90. http_access deny manager
  91. http_access deny !Safe_ports
  92. http_access deny CONNECT !SSL_ports
  93. http_access deny all
  94.  
  95. url_rewrite_program /usr/bin/squidGuard -c /etc/squidGuard/squidGuard.conf -d
  96. url_rewrite_children 64 startup=16 idle=8 concurrency=2
  97. url_rewrite_access deny webserver
  98.  
  99. http_reply_access allow all
  100.  
  101. icp_access allow all
  102.  
  103. cache_mgr root
  104.  
  105. cache_effective_user squid
  106.  
  107. cache_effective_group squid
  108.  
  109. visible_hostname satt.local
  110.  
  111. cachemgr_passwd pass all
  112.  
  113. coredump_dir /tmp
Advertisement
RAW Paste Data Copied
Advertisement