Skip to main content

Create random tunnel on each new connection.

Project description

random-tunnel

一款可以使用随机代理地址访问目标服务的turbo-tunnel插件

安装方法

$ pip3 install random-tunnel

使用方法

$ turbo-tunnel -l http+random://127.0.0.1:9999/?provider=${provider_url} -p random_tunnel

这样会在本地创建一个HTTPS代理服务器,客户端通过该代理服务器访问目标服务时,会随机使用${provider_url}指定的代理服务器列表中的某一个代理。

支持的provider类型

http/https

该url必须按照以下格式返回application/json类型的包体:

{
    "results": [{
        "ip": "1.2.3.4",
        "port": 8080,
        "type": "https"
    }, {
        "ip": "2.2.2.2",
        "port": 8888,
        "type": "https"
    }]
}

同时,该url需要支持limit查询参数用于指定查询的条数。

file

本地文件方式,如:file:///data/proxies.txt。该文件需要将代理服务器以每行一个的形式存放,格式为:http://1.2.3.4:8080

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

random-tunnel-0.1.1.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file random-tunnel-0.1.1.tar.gz.

File metadata

  • Download URL: random-tunnel-0.1.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.8

File hashes

Hashes for random-tunnel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1024a68fea798983ece5f28e94048343fe0d18ed4a3c9826caa1a0cd5c447e98
MD5 1e725a83f0eb965be710b3664d20367c
BLAKE2b-256 181d3c6436ab35b50ddbdffa104459990002cd47a26b2b0e7b10401ac4896a73

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page