imcrazytwkr

Basic squid config with auth

Oct 25th, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. #authorization
  2. auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
  3. acl user1name proxy_auth user1
  4.  
  5. #some acl
  6. acl manager proto cache_object
  7. acl localhost src 127.0.0.1/32 ::1
  8. acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
  9. acl SSL_ports port 443
  10. acl Safe_ports port 80
  11. acl Safe_ports port 21
  12. acl Safe_ports port 443
  13. acl Safe_ports port 70
  14. acl Safe_ports port 210
  15. acl Safe_ports port 1025-6555
  16. acl Safe_ports port 280
  17. acl Safe_ports port 488
  18. acl Safe_ports port 591
  19. acl Safe_ports port 777
  20. acl CONNECT method CONNECT
  21.  
  22. #allow me, deny all
  23. http_access allow user1name
  24. http_access deny all
  25.  
  26. #port to listen on
  27. http_port 65534
  28.  
  29. #for paranoid mode and maximum anonymity
  30. via off
  31. request_header_access Allow allow all
  32. request_header_access Authorization allow all
  33. request_header_access WWW-Authenticate allow all
  34. request_header_access Proxy-Authorization allow all
  35. request_header_access Proxy-Authenticate allow all
  36. request_header_access Cache-Control allow all
  37. request_header_access Content-Encoding allow all
  38. request_header_access Content-Length allow all
  39. request_header_access Content-Type allow all
  40. request_header_access Date allow all
  41. request_header_access Expires allow all
  42. request_header_access Host allow all
  43. request_header_access If-Modified-Since allow all
  44. request_header_access Last-Modified allow all
  45. request_header_access Location allow all
  46. request_header_access Pragma allow all
  47. request_header_access Accept allow all
  48. request_header_access Accept-Charset allow all
  49. request_header_access Accept-Encoding allow all
  50. request_header_access Accept-Language allow all
  51. request_header_access Content-Language allow all
  52. request_header_access Mime-Version allow all
  53. request_header_access Retry-After allow all
  54. request_header_access Title allow all
  55. request_header_access Connection allow all
  56. request_header_access All deny all
  57. forwarded_for off
  58.  
  59. #disable caching
  60. cache deny all
Advertisement
Add Comment
Please, Sign In to add comment