Advertisement
Guest User

Untitled

a guest
Nov 13th, 2015
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. auth_param basic program /usr/lib/squid3/basic_ncsa_auth /sap/squid/passwd
  2. auth_param basic children 4
  3. auth_param basic utf8 on
  4. auth_param basic realm Bitte geben Sie Ihren Benutzernamen und Passwort fuer die Internetberechtigung ein!
  5. auth_param basic credentialsttl 60 minutes
  6. auth_param basic casesensitive on
  7.  
  8. external_acl_type blockscript %DST /usr/bin/php /sap/squid/block.php
  9.  
  10. acl localnet src 192.168.178.7
  11. acl ncsa_users proxy_auth REQUIRED
  12. acl mysql_block external blockscript
  13.  
  14. acl SSL_ports port 443
  15. acl Safe_ports port 80 # http
  16. acl Safe_ports port 21 # ftp
  17. acl Safe_ports port 443 # https
  18. acl Safe_ports port 70 # gopher
  19. acl Safe_ports port 210 # wais
  20. acl Safe_ports port 1025-65535 # unregistered ports
  21. acl Safe_ports port 280 # http-mgmt
  22. acl Safe_ports port 488 # gss-http
  23. acl Safe_ports port 591 # filemaker
  24. acl Safe_ports port 777 # multiling http
  25. acl CONNECT method CONNECT
  26.  
  27. # Deny requests to certain unsafe ports
  28. http_access deny !Safe_ports
  29.  
  30. # Deny CONNECT to other than secure SSL ports
  31. http_access deny CONNECT !SSL_ports
  32.  
  33. #
  34. # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  35. #
  36.  
  37. http_access deny mysql_block
  38. http_access allow localhost ncsa_users
  39. http_access allow localnet ncsa_users
  40.  
  41.  
  42. # And finally deny all other access to this proxy
  43. http_access deny all
  44.  
  45. http_port 3128
  46. cache_mgr jkallup@web.de
  47.  
  48. cache_effective_user squid
  49.  
  50. # We recommend you to use at least the following line.
  51. hierarchy_stoplist cgi-bin ?
  52.  
  53. cache_dir ufs /sap/var/spool/squid 64 16 128
  54.  
  55. cache_access_log /sap/squid/log/access.log
  56. cache_log /sap/squid/log/cache.log
  57. cache_store_log /sap/squid/log/store.log
  58.  
  59. # Leave coredumps in the first cache dir
  60. coredump_dir /sap/var/spool/squid
  61.  
  62. # Add any of your own refresh_pattern entries above these.
  63. refresh_pattern ^ftp: 1440 20% 10080
  64. refresh_pattern ^gopher: 1440 0% 1440
  65. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  66. refresh_pattern . 0 20% 4320
  67.  
  68. logformat squid %tl.%03tu %6tr %>a %un %Ss/%03>Hs %<st %rm %ru %Sh/%<A %mt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement