TinyProxy

  1. 安装依赖

    sudo apt install apache2-utils tinyproxy
    
  2. 配置 TinyProxy

    sudoedit /etc/tinyproxy/tinyproxy.conf
    

    在配置文件中找到 BasicAuth 部分,修改为:

    BasicAuth <username> <password>
    
  3. 重启 tinyproxy 服务

    sudo systemctl restart tinyproxy  # 重启服务使配置生效
    sudo systemctl status tinyproxy   # 验证服务状态
    
  4. 测试认证

    curl -x http://username:password@localhost:8888 http://example.com
    
    # 或者查看日志
    sudo tail -f /var/log/tinyproxy/tinyproxy.log
    
posted @ 2026-06-05 16:23  undefined443  阅读(7)  评论(0)    收藏  举报