Skip to main content

拨号主机设置

首先配置好代理,如使用 Squid,运行在 3128 端口,并设置好用户名和密码。

配置好代理之后,即可使用本工具定时拨号并发送至 Redis。

安装 ADSLProxy

pip3 install -U adslproxy

设置环境变量

# Redis 数据库地址和密码
export REDIS_HOST=
export REDIS_PASSWORD=
# 本机配置的代理端口
export PROXY_PORT=
# 本机配置的代理用户名,无认证则留空
export PROXY_USERNAME=
# 本机配置的代理密码,无认证则留空
export PROXY_PASSWORD=

执行

adslproxy send

运行结果:

pip3 install -U adslproxy

设置环境变量

# Redis 数据库地址和密码
export REDIS_HOST=
export REDIS_PASSWORD=
# 本机配置的代理端口
export PROXY_PORT=
# 本机配置的代理用户名,无认证则留空
export PROXY_USERNAME=
# 本机配置的代理密码,无认证则留空
export PROXY_PASSWORD=

执行

adslproxy send

运行结果:

2020-04-13 01:39:30.811 | INFO     | adslproxy.sender.sender:loop:90 - Starting dial...
2020-04-13 01:39:30.812 | INFO     | adslproxy.sender.sender:run:99 - Dial Started, Remove Proxy
2020-04-13 01:39:30.812 | INFO     | adslproxy.sender.sender:remove_proxy:62 - Removing adsl1...
2020-04-13 01:39:30.893 | INFO     | adslproxy.sender.sender:remove_proxy:69 - Removed adsl1 successfully
2020-04-13 01:39:37.034 | INFO     | adslproxy.sender.sender:run:108 - Get New IP 113.128.9.239
2020-04-13 01:39:42.221 | INFO     | adslproxy.sender.sender:run:117 - Valid proxy 113.128.9.239:3389
2020-04-13 01:39:42.458 | INFO     | adslproxy.sender.sender:set_proxy:82 - Successfully Set Proxy
2020-04-13 01:43:02.560 | INFO     | adslproxy.sender.sender:loop:90 - Starting dial...
2020-04-13 01:43:02.561 | INFO     | adslproxy.sender.sender:run:99 - Dial Started, Remove Proxy
2020-04-13 01:43:02.561 | INFO     | adslproxy.sender.sender:remove_proxy:62 - Removing adsl1...
2020-04-13 01:43:02.630 | INFO     | adslproxy.sender.sender:remove_proxy:69 - Removed adsl1 successfully
2020-04-13 01:43:08.770 | INFO     | adslproxy.sender.sender:run:108 - Get New IP 113.128.31.230
2020-04-13 01:43:13.955 | INFO     | adslproxy.sender.sender:run:117 - Valid proxy 113.128.31.230:3389
2020-04-13 01:43:14.037 | INFO     | adslproxy.sender.sender:set_proxy:82 - Successfully Set Proxy
2020-04-13 01:46:34.216 | INFO     | adslproxy.sender.sender:loop:90 - Starting dial...
2020-04-13 01:46:34.217 | INFO     | adslproxy.sender.sender:run:99 - Dial Started, Remove Proxy
2020-04-13 01:46:34.217 | INFO     | adslproxy.sender.sender:remove_proxy:62 - Removing adsl1...
2020-04-13 01:46:34.298 | INFO     | adslproxy.sender.sender:remove_proxy:69 - Removed adsl1 successfully

此时有效代理就会发送到 Redis。

Metadata

Release files for adslproxy 3.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adslproxy 3.0.3
File Size Uploaded
adslproxy-3.0.3.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adslproxy 3.0.3
File Interpreter ABI Platform
adslproxy-3.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 19.1 kB

Release files / adslproxy-3.0.3.tar.gz

Download URL adslproxy-3.0.3.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
96b4a5209bba0f52dc7ab2662f95c521b0de942136e76d4a336b8938668072c7
BLAKE2b-256 checksum
How to use checksums
5fa2a5d55224e9697ca9b2bd8a96ff4b319c7879072699d353deda7211eb0769
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5

Release files / adslproxy-3.0.3-py2.py3-none-any.whl

Download URL adslproxy-3.0.3-py2.py3-none-any.whl
Size 10.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5e9ca0574a4700ec1aabe3cdc0ec4d1f66c93b1388f26c52ed8d29fd5b2adf25
BLAKE2b-256 checksum
How to use checksums
12729bc284d994c2b61cfab04a2b4cd647cc0a3c74ce9c7ea2941ca55e83f000
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

3.0.3 This release

2 release files

3.0.2

2 release files

3.0.1

2 release files

2.0.0

4 release files

1.0.0

2 release files

0.9.9

2 release files

0.6.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page