tinyproxy 代理使用

安装 

yum install tinyproxy

注释掉Allow(允许大家用)

vim /etc/tinyproxy/tinyproxy.conf

service tinyproxy restart

防火墙开放8888(或已经自定义)端口

iptables -I INPUT -p tcp --dport 8888 -j ACCEPT

 尝试使用代理访问 http://httpbin.org/ip

curl --proxy http://45.77.10.62:8888 http://httpbin.org/ip

运行结果:(45.77.10.62 就是代理的ip) 

 参考:http://www.cnblogs.com/fatt/p/7171474.html

附:

1 service tinyproxy restart
2 chkconfig --level 345 tinyproxy on
#centos7如下设置:
systemctl restart tinyproxy.service
systemctl enable tinyproxy.service
五、防火墙开放8888(或已经自定义)端口
1 iptables -I INPUT -p tcp --dport 8888 -j ACCEPT
#centos7如下设置:
3 firewall-cmd --zone=public --add-port=8888/tcp --permanent
4 firewall-cmd --reload

猜你喜欢

转载自www.cnblogs.com/yuanzhenliu/p/9053197.html