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
Auf dieser Seite können Sie das Online-Video How to set up a Squid Proxy with basic username and password authentication on Centos 7 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Quick Notepad Tutorial 12 Juli 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5,397 Mal angesehen und es wurde von 24 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!