How to set up a Squid Proxy with basic username and password authentication on Centos 7

Pubblicato il: 12 luglio 2017
sul canale di: Quick Notepad Tutorial
5,397
24

Set Basic Authentication and limit squid for users to require authentication
Squid is a web proxy and cache server which primarily provides proxy and cache services for the HTTP protocol.
yum -y install squid httpd-tools
gedit /etc/squid/squid.conf
acl lan src 192.168.0.10/24
auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/.htpasswd
auth_param basic children 5
auth_param basic realm Squid Basic Authentication
auth_param basic credentialsttl 5 hours
acl password proxy_auth REQUIRED
http_access allow password
http_access allow lan

Add Follows To The end
request_header_access Referer deny all
request_header_access X-Forwarded-For deny all
request_header_access Via deny all
request_header_access Cache-Control deny all
Do not display IP address
forwarded_for off

htpasswd -c /etc/squid/.htpasswd cent
systemctl start squid && systemctl enable squid

firewall-cmd --zone=public --add-port=3128/tcp --permanent && firewall-cmd --reload
tail -f /var/log/squid/access.log


In questa pagina del sito puoi guardare il video online How to set up a Squid Proxy with basic username and password authentication on Centos 7 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Quick Notepad Tutorial 12 luglio 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,397 volte e gli è piaciuto 24 spettatori. Buona visione!