服務器環境:阿里雲香港ECS CentOS release 6.8 (Final)
本地環境:MacOS 10.12.6 (16G1510)
1. 安裝 TinyProxy
yum -y install tinyproxy
2. 配置 TinyProxy
vi /etc/tinyproxy/tinyproxy.conf
3. 啓動 TinyProxy
service tinyproxy start
4、開放端口
sudo /sbin/iptables -I INPUT 1 -p TCP --dport 8889:8889 -j ACCEPT
5、添加安全組規則
測試:telnet ip 8889
telnet 可以連接,但是設置了代理之後就無法打開網頁
目前還不清楚到底是什麼原因。
嘗試使用 ReversePath "/google/" "http://www.google.com/" 也不成功。
使用curl 測試結果爲:
curl: (56) Recv failure: Connection reset by peer