Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. # wskazanie programu kodujacego odebrane haslo i plik
  2. # zawierajacy dane uzytkownikow
  3. auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
  4. # maksymalna liczba obslugiwanych sesji
  5. auth_param basic children 2
  6. # komunikat przesylany do przegladarki
  7. # informujacy o potrzebie uwierzytelnienia
  8. auth_param basic realm Serwer squid
  9. # maksymalny czas utrzymywania sesji
  10. auth_param basic credentialsttl 2 hours
  11. # wymagane uwierzytelnienie
  12. acl ncsa_users proxy_auth REQUIRED
  13. # obsluga uwierzytelnionych uzytkownikow
  14. http_access allow ncsa_users
  15.  
  16. acl manager proto cache_object
  17. acl localhost src 127.0.0.1/32 ::1
  18. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
  19. acl localnet src 192.168.56.0/24
  20.  
  21. acl SSL_ports port 443
  22. acl Safe_ports port 80 # http
  23. acl Safe_ports port 21 # ftp
  24. acl Safe_ports port 443 # https
  25. acl Safe_ports port 70 # gopher
  26. acl Safe_ports port 210 # wais
  27. acl Safe_ports port 1025-65535 # unregistered ports
  28. acl Safe_ports port 280 # http-mgmt
  29. acl Safe_ports port 488 # gss-http
  30. acl Safe_ports port 591 # filemaker
  31. acl Safe_ports port 777 # multiling http
  32. acl CONNECT method CONNECT
  33.  
  34. http_access allow manager localhost
  35. http_access deny manager
  36.  
  37. http_access deny !Safe_ports
  38.  
  39. http_access deny CONNECT !SSL_ports
  40.  
  41. http_access allow localhost
  42. http_access allow localnet
  43.  
  44. http_access deny all
  45.  
  46. icp_access allow localnet
  47.  
  48. icp_access deny all
  49.  
  50. http_port 3128
  51.  
  52. icp_port 3130
  53.  
  54. cache_mem 8 MB
  55.  
  56. coredump_dir /var/spool/squid3
  57.  
  58. refresh_pattern ^ftp: 1440 20% 10080
  59. refresh_pattern ^gopher: 1440 0% 1440
  60. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  61. refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
  62. refresh_pattern . 0 20% 4320
  63.  
  64. cache_dir ufs /var/spool/squid3 100 16 16
  65.  
  66. client_netmask 255.255.255.255
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement