Skip to content

Instantly share code, notes, and snippets.

@nsuvorov83
Created July 1, 2023 22:09
Show Gist options
  • Select an option

  • Save nsuvorov83/a880d4e4ff7cdc75040e65254f9d61b9 to your computer and use it in GitHub Desktop.

Select an option

Save nsuvorov83/a880d4e4ff7cdc75040e65254f9d61b9 to your computer and use it in GitHub Desktop.
#For digest auth
http_port 3128
via off
cache deny all
auth_param digest program /usr/lib/squid/digest_file_auth -c /etc/squid/users
auth_param digest children 5
auth_param digest realm PASS-PLEASE
auth_param basic credentialsttl 1 minute
auth_param basic casesensitive off
acl auth_users proxy_auth REQUIRED
http_access allow auth_users
http_access deny all
## IMPORTANT!
# To generate file 'users' enter: htdigest -c /etc/squid/users 'PASS-PLEASE' username
# realm in auth_param and realm in the command above MUST BE the same ('PASS-PLEASE').
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment