Squid Authentifizierung: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 15: | Zeile 15: | ||
auth_param basic children 20 startup=0 idle=1 | auth_param basic children 20 startup=0 idle=1 | ||
auth_param basic concurrency 0 | auth_param basic concurrency 0 | ||
| − | auth_param basic credentialsttl | + | auth_param basic credentialsttl 2 hours |
auth_param basic realm xinux-user-access | auth_param basic realm xinux-user-access | ||
auth_param basic casesensitive off | auth_param basic casesensitive off | ||
</pre> | </pre> | ||
| + | |||
==erstellen der acl== | ==erstellen der acl== | ||
<pre> | <pre> | ||
Version vom 27. September 2022, 11:29 Uhr
Authentifizierung
- Wird genutzt um sich bei dem Browser zu authentifizieren, und somit bestimmte Seiten freigeschaltet werden können
Install
- apt install apache2-utils
User anlegen
root@batman-ThinkPad-R60:~# htpasswd -c /etc/squid/passwordfile sterling New password: Re-type new password: Adding password for user sterling
Konfiguration der Authentifizierung
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwordfile auth_param basic children 20 startup=0 idle=1 auth_param basic concurrency 0 auth_param basic credentialsttl 2 hours auth_param basic realm xinux-user-access auth_param basic casesensitive off
erstellen der acl
acl xinux-user proxy_auth REQUIRED
erstellen der http_access
http_access allow xinux-user
- Nun müssen sich alle erstellten User authentifizieren