Advertisement
kosmik2001

cutted-squid.conf-2

Apr 20th, 2015
397
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. acl manager_ip src 127.0.0.1/32
  2. acl sqstat proto cache_object
  3. acl purge method PURGE
  4. http_access allow sqstat manager_ip
  5. http_access allow manager manager_ip
  6. http_access allow purge manager_ip
  7.  
  8. auth_param basic program /usr/libexec/squid/basic_ncsa_auth /etc/squid/passwd
  9. auth_param basic children 9
  10. auth_param basic realm Squid
  11. auth_param basic credentialsttl 2 hours
  12. auth_param basic casesensitive off
  13.  
  14. acl p_users proxy_auth REQUIRED
  15. http_access allow p_users
  16. http_access deny !p_users
  17.  
  18. acl admin_acl proxy_auth admin
  19. acl student_acl proxy_auth student
  20. acl pdd_acl proxy_auth pdd308 pdd414
  21. acl other_acl proxy_auth polyakova makarovskaya lemara kafedra414 dmitry406cab prep406user prep406user2 sanov gorlenko urist405 ohrena archive metod_cab
  22.  
  23. delay_pools 4
  24.  
  25. delay_class 1 1
  26. delay_parameters 1 6291456/6291456
  27. delay_access 1 allow admin_acl
  28.  
  29. delay_class 2 1
  30. delay_parameters 2 524288/524288
  31. delay_access 2 allow student_acl
  32.  
  33. delay_class 3 1
  34. delay_parameters 3 716800/716800
  35. delay_access 3 allow pdd_acl
  36.  
  37. delay_class 4 1
  38. delay_parameters 4 524288/524288
  39. delay_access 4 allow other_acl
  40.  
  41. acl webserver src satt.local
  42. acl SSL_ports port 443 # https
  43. acl Safe_ports port 80 # http
  44. acl Safe_ports port 21 # ftp
  45. acl Safe_ports port 443 # https
  46. acl CONNECT method CONNECT
  47.  
  48. acl satt_network src 192.168.0.0/16
  49. http_access allow satt_network
  50.  
  51. cache deny QUERY
  52.  
  53. http_access deny purge
  54.  
  55. http_access allow manager webserver
  56. http_access allow localhost
  57. http_access deny manager
  58. http_access deny !Safe_ports
  59. http_access deny CONNECT !SSL_ports
  60. http_access deny all
  61.  
  62. redirect_program /usr/bin/squidGuard -c /etc/squidGuard/squidGuard.conf -d
  63. redirect_children 64
Advertisement
RAW Paste Data Copied
Advertisement