GithubHelp home page GithubHelp logo

adslproxy's Introduction

ADSLProxy

基于ADSL拨号的VPS的代理IP服务

原理

  1. 准备一个能ADSL拨号的VPS(Client),并在上面搭建一个代理服务(squid/TinyProxy)。
  2. 准备一个有固定IP的Server,并在上面搭建一个简单的web服务。
  3. 在Client上定时拨号产生新的IP,并将新的IP传送到Server
  4. 使用者请求Server获取最新的动态IP

使用

Client

以root用户登陆VPS

修改config文件中的:AUTH,IPinit.sh文件中的htpasswdsquid.conf文件中的http_port

cd /root/
yum install -y epel-release
yum install -y git
git clone https://github.com/nghuyong/ADSLProxy.git
cd ADSLProxy
chmod +x init.sh
./init.sh

Server

修改config文件中的:AUTH,IP

git clone https://github.com/nghuyong/ADSLProxy.git
pip install -r requirements.txt
nohup python server.py &

API使用

Get http://IP:8080/api/proxy?auth=my_auth
{
    "data": {
        "00155d0e02d7": {
            "time": "2018-11-15 20:50:07",
            "port": 8877,
            "ip": "125.121.112.244"
        }
    },
    "code": 0,
    "count": 1
}

Reference

Python爬虫进阶七之设置ADSL拨号服务器代理| 静觅

adslproxy's People

Contributors

nghuyong avatar

Watchers

 avatar

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.