1. 安裝 TinyProxy
sudo apt-get install -y tinyproxy
2. 配置 TinyProxy
TinyProxy
默認的配置路徑是 etc/tinyproxy/tinyproxy.conf
:
Listen 192.168.1.11
#Allow 127.0.0.1
BasicAuth user password
修改配置後,請運行service tinyproxy restart
重啓TinyProxy
服務
3. 測試 TinyProxy
在另一臺設備上,使用curl
命令進行測試,例如:
curl --proxy user:[email protected]:8888 -k http://192.168.1.12
4. 調試 TinyProxy
TinyProxy
可查看其輸出的Log
進行調試:
tail -f /var/log/tinyproxy/tinyproxy.log