Advertisement
kosmik2001

squid.conf

Apr 20th, 2015
845
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. http_port 3128
  2. acl QUERY urlpath_regex cgi-bin \?
  3. no_cache deny QUERY
  4. acl apache rep_header Server ^Apache
  5. cache_mem 256 MB
  6. maximum_object_size 876 KB
  7. maximum_object_size_in_memory 2560 KB
  8. cache_replacement_policy lru
  9. cache_dir aufs /Storage/squid-cache 8129 16 256
  10. access_log /Storage/system-logs/squid/squid.log squid
  11. cache_log /dev/null
  12. mime_table /etc/squid/mime.conf
  13. client_netmask 255.255.255.255
  14. hosts_file /etc/hosts
  15. refresh_pattern ^ftp: 1440 20% 10080
  16. refresh_pattern ^gopher: 1440 0% 1440
  17. refresh_pattern . 0 20% 4320
  18. connect_timeout 20 second
  19. half_closed_clients on
  20. shutdown_lifetime 3 second
  21. acl sqstat proto cache_object
  22. http_access allow sqstat localhost
  23. http_access deny sqstat
  24. acl purge method PURGE
  25. auth_param basic program /usr/libexec/squid/basic_ncsa_auth /etc/squid/passwd
  26. auth_param basic children 5
  27. auth_param basic realm Squid
  28. auth_param basic credentialsttl 2 hours
  29. auth_param basic casesensitive off
  30. acl p_users proxy_auth REQUIRED
  31. http_access allow p_users
  32. http_access deny !p_users
  33. acl admin_acl proxy_auth admin
  34. acl student_acl proxy_auth student
  35. acl pdd_acl proxy_auth pdd308 pdd414
  36. acl other_acl proxy_auth polyakova makarovskaya lemara kafedra414 dmitry406cab prep406user prep406user2 sanov gorlenko urist405 ohrena archive metod_cab
  37. delay_pools 4
  38. delay_class 1 1
  39. delay_parameters 1 6291456/6291456
  40. delay_access 1 allow admin_acl
  41. delay_class 2 1
  42. delay_parameters 2 524288/524288
  43. delay_access 2 allow student_acl
  44. delay_class 3 1
  45. delay_parameters 3 716800/716800
  46. delay_access 3 allow pdd_acl
  47. delay_class 4 1
  48. delay_parameters 4 524288/524288
  49. delay_access 4 allow other_acl
  50. acl SSL_ports port 443 # https
  51. acl Safe_ports port 80 # http
  52. acl Safe_ports port 21 # ftp
  53. acl Safe_ports port 443 # https
  54. acl CONNECT method CONNECT
  55. acl satt_network src 192.168.0.0/16
  56. cache deny QUERY
  57. http_access allow satt_network
  58. http_access deny purge
  59. http_access deny !Safe_ports
  60. http_access deny CONNECT !SSL_ports
  61. http_access deny all
  62. redirect_program /usr/bin/squidGuard -c /etc/squidGuard/squidGuard.conf -d
  63. redirect_children 64
  64. http_reply_access allow all
  65. icp_access allow all
  66. cache_mgr root
  67. cache_effective_user squid
  68. cache_effective_group squid
  69. visible_hostname satt.local
  70. cachemgr_passwd pass all
  71. coredump_dir /tmp
Advertisement
RAW Paste Data Copied
Advertisement