Quantcast
Channel: Reza's Weblog
Viewing all articles
Browse latest Browse all 50

Adding Authentication to Squid3 on Ubuntu

$
0
0

Configuration file location: /etc/squid3/squid.conf

  • Create file passwd in /etc/squid3/
  • sudo chmod o+r passwd
  • Add username and passwords you want using: sudo htpasswd passwd your_username. You can find htpasswd command in apache-util or other packages.
  • In the config file, add http_access allow ncsa_users to http_access tag section
  • In the auth_param section, you need to add: auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd
  • In the acl section, you need to add: acl ncsa_users proxy_auth REQUIRED
  • Restart Squid: sudo /etc/init.d/squid3 restart

Viewing all articles
Browse latest Browse all 50

Trending Articles