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

Publicado em: 12 Julho 2017
no canal de: 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


Nesta página do site você pode assistir ao vídeo on-line How to set up a Squid Proxy with basic username and password authentication on Centos 7 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Quick Notepad Tutorial 12 Julho 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 5,397 vezes e gostou 24 espectadores. Boa visualização!