标签:生成 port test http vim tar 客户 stp server
$ sudo apt-get install squid
$ sudo vim /etc/squid/squid.conf
注释以下行:
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny manager
安装加密工具:
$ sudo apt-get install apache2-utils
生成密码文件:
$ sudo htpasswd -c /etc/squid/passwdfile testuser
输入密码:testpassword
在http_access deny all这一行之前添加以下行配置认证:
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwdfile
acl auth_user proxy_auth REQUIRED
http_access allow auth_user
$ sudo service squid restart
$ sudo export http_proxy="http://testuser:testpassword@<your-squid-server>:3128"
$ sudo export https_proxy="http://testuser:testpassword@<your-squid-server>:3128"
标签:生成 port test http vim tar 客户 stp server
原文地址:https://www.cnblogs.com/varden/p/13953972.html