如何在tinyproxy中配置用户名和密码?

How to configure username & password in tinyproxy?

我想限制 tinyproxy 的流量,如何通过添加用户名和密码而不是将 IP 地址列入白名单来实现?

目前 tinyproxy 不支持它。

这是一个开放的增强请求 https://github.com/tinyproxy/tinyproxy/issues/29

虽然它不像 TinyProxy 一样小,但 Squid proxy server would allow you to setup a username and password for your proxy. This guide 向您展示了如何设置它。

BasicAuth myuser mypassword 添加到 /etc/tinyproxy/tinyproxy.conf

注意tinyproxy 1.10.0加入了Basic Auth,但是Ubuntu18.04默认安装1.8.4。

自己构建最新版本的 tinyproxy 或只使用 Ubuntu 19.04 或更新版本。