Squid uses account password for authentication

Squid 3.5 proxy ssl support, to ensure the safety and abuse, can use simple authentication.

Step1: In the squid configuration file, add the following:

auth_param basic program /usr/lib64/squid/basic_ncsa_auth /etc/squid/passwd
acl auth_user proxy_auth REQUIRED
http_access allow auth_user

Step2: Create a user for authentication

htpasswd -c /etc/squid/passwd networking

Step3: restart the squid service

[root@localhost ~]# systemctl restart squid.service

Step4: Configure your browser to bring up the verification box opens, enter the account password to successfully jump

Guess you like

Origin www.cnblogs.com/networking/p/11613279.html