说明: TinyProxy 貌似不可以设置user/passd
Squid proxy server允许您为代理设置用户名和密码
如果简单使用,足以:
安装tinyproxy包 sudo apt-get update sudo apt-get install tinyproxy
配置文件在 /etc/tinyproxy.conf
还有可能在/etc/tinyproxy/tinyproxy.conf
Port 8888 #预设是8888 Port,你可以更改 Allow 127.0.0.1 #将127.0.0.1改成你自己的IP #例如你的IP 是1.2.3.4,你改成Allow 1.2.3.4,那只有你才可以连上这个Proxy
运行 service tinyproxy start 默认启动 sudo service tinyproxy start 重启 sudo service tinyproxy restart 重启 sudo service tinyproxy restart 测试 curl -x <IP>:<PORT> https://www.cnblogs.com/lshan/