Advertisement
Guest User

Squid User Config Example

a guest
Jan 29th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. GNU nano 2.2.6 File: sq.conf
  2.  
  3. #Port you want your proxy to run on
  4. http_port 7654
  5.  
  6. #Hostname that will showup in your browser
  7. visible_hostname yourdomain.com
  8.  
  9. #Turns all identifiable trackable header traffic off
  10. forwarded_for off
  11.  
  12.  
  13. #Custom Access control Modifications
  14. #Currently set to accept connections from all ip addresses
  15. acl all src 0.0.0.0/0.0.0.0
  16.  
  17. #Defines what authentication scheme to use to authenticate users
  18. #Currently set for .htaccess via a txt file in the root directory called squid_passwd
  19. auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
  20.  
  21. #How many threads to have running on squid startup
  22. auth_param basic children 5
  23.  
  24. #What web realm you want your proxy to masquerade it is from
  25. auth_param basic realm yourdomainname.com proxy server
  26.  
  27. #How long till your sessionID expires
  28. auth_param basic credentialsttl 4 hours
  29.  
  30. #Require a passowrd to access the proxy
  31. acl password proxy_auth REQUIRED
  32. http_access allow password
  33.  
  34. #Deny all without a password access to the proxy
  35. http_access deny all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement