【问题标题】:How to configure username & password in tinyproxy?如何在 tinyproxy 中配置用户名和密码?
【发布时间】:2017-09-11 06:26:45
【问题描述】:

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

【问题讨论】:

    标签: authentication tinyproxy


    【解决方案1】:

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

    请注意,在 tinyproxy 1.10.0 中添加了 Basic Auth,但 Ubuntu 18.04 默认安装 1.8.4。

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

    【讨论】:

    • 谢谢。最小的“tinyproxy.conf”:“端口 8888”“MaxClients 100”“StartServers 1”“BasicAuth myuser mypassword”。演示:“curl --proxy myuser:mypassword@localhost:8888google.com”
    【解决方案2】:

    虽然它不像 TinyProxy 那样小,但Squid proxy server 允许您为代理设置用户名和密码。 This guide 向您展示如何设置。

    【讨论】:

      【解决方案3】:

      目前在 tinyproxy 中不支持。

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

      【讨论】:

      • 从 1.10 开始,tinyproxy 已经提供了 HTTP 认证支持。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-18
      • 1970-01-01
      • 1970-01-01
      • 2011-08-14
      • 2013-05-07
      相关资源
      最近更新 更多