安装

apt install tinyproxy

修改配置

mv /etc/tinyproxy/tinyproxy.conf tinyproxy.conf.bak
vim /etc/tinyproxy/tinyproxy.conf

tinyproxy.conf

Port 11451
Listen 0.0.0.0
Timeout 600
Allow 0.0.0.0/0

BasicAuth account password

测试

curl -x http://account:password@127.0.0.1:11451 ip.sb