Advertisement
Guest User

Untitled

a guest
May 29th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. #
  2. # SQUID CONFIGURATION
  3. #
  4. # Listen on Port
  5. http_port 3128
  6. # Visible Hostname in Error Messages
  7. visible_hostname proxy
  8. # Hide Source IP Address
  9. forwarded_for off
  10. # Error Messages in German
  11. error_directory /usr/share/squid3/errors/French/
  12. # Cache Manager E-Mail address
  13.  
  14. #
  15. # Caching Options
  16. #
  17. # Minimum Object Size: 0!
  18. minimum_object_size 0 KB
  19. # The bigger the objects will be, slower will be the answers: 10MB
  20. maximum_object_size 10 MB
  21. # Lowest limit for Cache (in %)
  22. cache_swap_low 90
  23. # Highest Limit for Cache (in %)
  24. cache_swap_high 98
  25. # Max Cache capacity in Memory (RAM)
  26. cache_mem 1 GB
  27. # The highest size of Objects retains in RAM
  28. maximum_object_size_in_memory 1 MB
  29.  
  30. #
  31. # Connections Options
  32. #
  33. # Eject clients with unclean closed connections
  34. half_closed_clients off
  35. # Reject Persistent Server Connections
  36. server_persistent_connections off
  37. # Accept Persistent Client Connections
  38. client_persistent_connections on
  39. client_lifetime 1 day
  40. # Connecting Timeouts for Connections
  41. connect_timeout 50 seconds
  42. request_timeout 50 seconds
  43. persistent_request_timeout 50 seconds
  44. read_timeout 2 minutes
  45. # Aborting Downloads
  46. quick_abort_min 20 KB
  47. quick_abort_max 20 KB
  48. # In Percentage
  49. quick_abort_pct 90
  50.  
  51. #
  52. # DNS Options
  53. #
  54. # Upper limit on how long Squid will cache positive DNS responses.
  55. positive_dns_ttl 6 hours
  56. # Default Time-to-Live (TTL) for failed requests.
  57. negative_dns_ttl 2 minutes
  58.  
  59. #
  60. # Refresh Patterns
  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 (Release|Packages(.gz)*)$ 0 20% 2880
  67. refresh_pattern . 0 20% 4320
  68.  
  69. #
  70. # LDAP & Kerberos (Active Directory) Authentication
  71. #
  72.  
  73. ### negotiate kerberos and ntlm authentication
  74. auth_param negotiate program /usr/local/bin/negotiate_wrapper -d --ntlm /usr/bin/ntlm_auth --diagnostics --helper-protocol=squid-2.5-ntlmssp --domain=LELOUP --kerberos /usr/local/bin/squid_kerb_auth -d -s GSS_C_NO_NAME
  75. auth_param negotiate children 10
  76. auth_param negotiate keep_alive off
  77.  
  78. ### pure ntlm authentication
  79. auth_param ntlm program /usr/bin/ntlm_auth --diagnostics --helper-protocol=squid-2.5-ntlmssp --domain=LELOUP
  80. auth_param ntlm children 10
  81. auth_param ntlm keep_alive off
  82.  
  83. ### provide basic authentication via ldap for clients not authenticated via kerberos/ntlm
  84. auth_param basic program /usr/lib/squid3/basic_ldap_auth -R -b "dc=leloup,dc=local" -D [email protected] -W /etc/squid3/ldappass.txt -f sAMAccountName=%s -h ad.leloup.local
  85. auth_param basic children 10
  86. auth_param basic realm Internet Proxy
  87. auth_param basic credentialsttl 1 minute
  88.  
  89. #
  90. # ACL Definitions
  91. #
  92. acl auth proxy_auth REQUIRED
  93. acl SSL_ports port 443
  94. acl Safe_ports port 80 # http
  95. acl Safe_ports port 21 # ftp
  96. acl Safe_ports port 443 # https
  97. acl Safe_ports port 70 # gopher
  98. acl Safe_ports port 210 # wais
  99. acl Safe_ports port 1025-65535 # unregistered ports
  100. acl Safe_ports port 280 # http-mgmt
  101. acl Safe_ports port 488 # gss-http
  102. acl Safe_ports port 591 # filemaker
  103. acl Safe_ports port 777 # multiling http
  104. acl CONNECT method CONNECT
  105.  
  106.  
  107.  
  108. #
  109. # http_access Rules
  110. #
  111. ### enforce authentication
  112. http_access deny !Safe_ports
  113. http_access deny CONNECT !SSL_ports
  114.  
  115. http_access deny !auth
  116. http_access allow auth
  117. http_access allow localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement