动态拨号VPS主机
ssh root@153.36.65.214 -p 20063 # 登录主机 sh ppp.sh # 输入账号密码 adsl-start # 拨号 adsl-stop # 停止 ifconfig # 查看主机ip 网卡ppp0
安装TinyProxy
yum install -y epel-release yum update -y yum install -y tinyproxy
配置
/etc/tinyproxy/tinyproxy.conf
# Allow 127.0.0.1 注释此行
启动服务
service tinyproxy start # 启动服务 start|stop|status|restart|condrestart|try-restart|reload|force-reload curl -x 112.84.118.216:8888 httpbin.org/get # 测试代理
代理池
拨号服务端
pip3 install redis tornado git clone https://github.com/Germey/ADSLProxyPool cd server python3 server.py
拨号客户端
pip3 install requests git clone https://github.com/Germey/ADSLProxyPool.git python3 client.py
参考:
问题及解决
问题1: Failed to start Startup script for the tinyproxy server
描述:service tinyproxy restart 启动tinyproxy的时候卡主好久
使用ps -ef|grep tinyproxy 查看,发现有很多tinyproxy进程
杀掉进行后重启ok
ps -ef|grep tinyproxy|grep -v grep|awk '{print "kill -9 "$2}'|sh service tinyproxy start