Advertisement
Guest User

Untitled

a guest
May 12th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. acl manager proto cache_object
  2. acl localhost src 127.0.0.1/32 ::1
  3. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
  4. acl localnet src 192.168.56.0/24
  5.  
  6. acl SSL_ports port 443
  7. acl Safe_ports port 80      # http
  8. acl Safe_ports port 21      # ftp
  9. acl Safe_ports port 443     # https
  10. acl Safe_ports port 70      # gopher
  11. acl Safe_ports port 210     # wais
  12. acl Safe_ports port 1025-65535  # unregistered ports
  13. acl Safe_ports port 280     # http-mgmt
  14. acl Safe_ports port 488     # gss-http
  15. acl Safe_ports port 591     # filemaker
  16. acl Safe_ports port 777     # multiling http
  17. acl CONNECT method CONNECT
  18.  
  19.  
  20.  
  21. # --------------------------------------------
  22. # ---------<Autentykacja użytkownika>---------
  23. # --------------------------------------------
  24. auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
  25. auth_param basic children 2
  26. auth_param basic realm Serwer squid
  27. auth_param basic credentialsttl 2 hours
  28. acl ncsa_users proxy_auth REQUIRED
  29. http_access allow ncsa_users
  30. # --------------------------------------------
  31. # ---------</Autentykacja użytkownika>--------
  32. # --------------------------------------------
  33.  
  34. # --------------------------------------------
  35. # ---------<Użytkownicy>----------------------
  36. # --------------------------------------------
  37. acl prezes arp 08:00:27:84:24:BF 08:00:27:81:08:73
  38. acl menagerowie arp 08:00:27:E7:D5:37 08:00:27:82:59:C5 08:00:27:C3:BE:B8
  39. acl prog_proj src 192.168.2.0/24
  40. acl administrator arp 08:00:27:EB:D7:94
  41. acl ksieg_sekr src 192.169.3.0/24
  42.  
  43. acl projektanci proxy_auth "/etc/squid3/projektancji.acl"
  44. acl programisci proxy_auth "/etc/squid3/programisci.acl"
  45. # --------------------------------------------
  46. # ---------</Użytkownicy>---------------------
  47. # --------------------------------------------
  48.  
  49.  
  50. # --------------------------------------------
  51. # ---------<Definicje>------------------------
  52. # --------------------------------------------
  53. acl rozrywkowe dstdom_regex "/etc/squid3/rozrywkowe.acl"
  54. acl media urlpath_regex "/etc/squid3/media.acl"
  55. acl win_update dstdomain windows.update.microsoft.com
  56. acl portale dstdom_regex "/etc/squid3/portale.acl"
  57. acl godziny time 8:00-16:00
  58. acl dni time M T W H F
  59. acl dokumenty urlpath_regex "/etc/squid3/dokumenty.acl"
  60. # --------------------------------------------
  61. # ---------</Definicje>-----------------------
  62. # --------------------------------------------
  63.  
  64.  
  65. # --------------------------------------------
  66. # ---------<Ograniczenia>---------------------
  67. # --------------------------------------------
  68.  
  69. # PREZES
  70. http_access allow prezes
  71.  
  72. # MENAGEROWIE
  73. http_access deny godziny_pracy menagerowie rozrywkowe
  74. http_access allow menagerowie
  75.  
  76. # PROGRAMIŚCI I PROJEKTANCI
  77. http_access deny prog_proj rozrywkowe
  78.  
  79. # PROGRAMIŚCI
  80. http_access deny prog_proj programisci portale godziny dni
  81. http_access allow prog_proj programisci
  82.  
  83. # PROJEKTANCI
  84. http_access deny prog_proj projektanci media
  85. http_access allow prog_proj projektanci win_update
  86. http_access allow prog_proj projektanci
  87.  
  88. # ADMINISTRATOR
  89. http_access deny administrator !godziny dni rozrywkowe
  90. http_access allow administrator
  91.  
  92. # SEKRETARKA I KSIEGOWA
  93. http_access deny ksieg_sekr godziny dni rozrywkowe
  94. http_access deny ksieg_sekr !dokumenty
  95. http_access allow ksieg_sekr
  96.  
  97. # --------------------------------------------
  98. # ---------</Ograniczenia>--------------------
  99. # --------------------------------------------
  100.  
  101.  
  102.  
  103. http_access allow manager localhost
  104. http_access deny manager
  105.  
  106. http_access deny !Safe_ports
  107.  
  108. http_access deny CONNECT !SSL_ports
  109.  
  110. http_access allow localhost
  111. http_access allow localnet
  112.  
  113. http_access deny all
  114.  
  115. icp_access allow localnet
  116.  
  117. icp_access deny all
  118.  
  119. http_port 3128
  120.  
  121. icp_port 3130
  122.  
  123. cache_mem 8 MB
  124.  
  125. coredump_dir /var/spool/squid3
  126.  
  127. refresh_pattern ^ftp:       1440    20% 10080
  128. refresh_pattern ^gopher:    1440    01440
  129. refresh_pattern -i (/cgi-bin/|\?) 0 00
  130. refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880
  131. refresh_pattern .       0   20% 4320
  132.  
  133. cache_dir ufs /var/spool/squid3 100 16 16
  134.  
  135. client_netmask 255.255.255.255
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement