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
На этой странице сайта вы можете посмотреть видео онлайн How to set up a Squid Proxy with basic username and password authentication on Centos 7 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Quick Notepad Tutorial 12 Июль 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 5,397 раз и оно понравилось 24 зрителям. Приятного просмотра!