Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@drio
Created December 10, 2014 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drio/74bbbe470b9346f1dcd5 to your computer and use it in GitHub Desktop.
Save drio/74bbbe470b9346f1dcd5 to your computer and use it in GitHub Desktop.
Mininal squid config
$ cd dev
$ wget squid ...
$ tar zxvf ...
$ cd squid-...
$ ./configure -prefix=$HOME/local && make && make install
$ cat squid.conf
auth_param digest program /home/drio/dev/squid-3.4.10/helpers/digest_auth/file/digest_file_auth -c /home/drio/dev/squid-3.4.10/passwords
auth_param digest realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated
http_port 18888
$ htdigest -c ./passwords proxy drio
$ htdigest ./passwords proxy user2
$ ./src/squid -N -f ./squid.conf
# Enjoy ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment