Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL.(官网)
服务端
下载依赖
MacOS
1
brew install squid
Linux
Debian
1
apt install squid
CentOS
1
yum install squid
配置账户(可选)
下载依赖
下载 apache httpd 使用 htpasswd 工具生成密码
Linux
Debian
1
apt install apache2
生成身份认证文件
/etc/squid/passwd:指定生成的身份认证文件
1
htpasswd -c /etc/squid/passwd <username>
1 2 3
New password: Re-type new password: Adding password for user <username>