GithubHelp home page GithubHelp logo

adslproxypool's Introduction

ADSL拨号服务器代理设置

更优的选择:https://github.com/Python3WebSpider/AdslProxy

服务端

服务端即远程主机

安装Python

Python3版本

安装库

pip3 install redis tornado

Clone项目

git clone https://github.com/Germey/ADSLProxyPool.git

安装Redis

安装Redis并启动服务

修改配置

cd server
vi config.py

根据注释修改配置文件

运行

根目录运行

python3 server.py

客户端

客户端即拨号主机

安装Python

Python3版本

安装库

pip3 install requests

Clone项目

git clone https://github.com/Germey/ADSLProxyPool.git

修改配置

cd server
vi config.py

根据注释修改配置文件

运行

根目录运行

python3 client.py

adslproxypool's People

Contributors

germey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

adslproxypool's Issues

请问一下,检查代理的设置怎么生效的呢

在server.py里有个test_proxies()的方法,但是没有看到哪里调用了,那么设置的每多少时间就检查代理是否生效的设置怎么生效的呢?

def test_proxies(self):
print('Test Proxies')
items = self.redis.all()
for item in items:
self.test_proxy(item)

网络波动引起的程序中断

报错日志如下

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/redis/client.py", line 572, in execute_command
    connection.send_command(*args)
  File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 563, in send_command
    self.send_packed_command(self.pack_command(*args))
  File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 538, in send_packed_command
    self.connect()
  File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 442, in connect
    raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 104 connecting to <redis_host>:6379. Connection reset by peer.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 439, in connect
    sock = self._connect()
  File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 494, in _connect
    raise err
  File "/usr/local/lib/python3.6/site-packages/redis/connection.py", line 482, in _connect
    sock.connect(socket_address)
ConnectionResetError: [Errno 104] Connection reset by peer

redis连接异常导致的程序中断

如何处理切换瞬间已经执行任务的请求

你好,非常感谢你的分享,最近在搭建ADSL进行动态IP切换,再次感谢你的开源让我快速搭建好相关的服务,现在有个疑惑需要请教你。
任务是多线程执行的,A线程获得IP执行自己的任务,执行到一半的时候由于动态切换IP,该代理不能用了,这个时候如何处理A的任务呢?目前是一台拨号主机,但是两台的时候依旧会存在同类问题,希望能给的思路,多谢多谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.