proxybroker
Find, check, and serve public HTTP(S) and SOCKS4/5 proxies. A Rust library and CLI.
A rewrite of proxybroker2 (Python/asyncio) in Rust/tokio, which is itself the maintained successor to ProxyBroker. Both are Apache-2.0; this is a derivative work and carries the same licence. See NOTICE for attribution and a statement of changes.
Status: core complete, not yet published to crates.io. All three commands —
grab,find,serve— work end-to-end. Seedocs/systematic-refactor/for the port's design record.
Usage
# bring your own providers (YAML/JSON configs, one provider per file):
As a library:
use ;
use StreamExt;
let broker = builder.build;
let mut stream = broker.find.await?;
while let Some = stream.next.await
Why this exists
There was no Rust equivalent with a library API. Checked before starting (2026-07-15):
| crate | latest | published | ships a lib? | scope |
|---|---|---|---|---|
proxy-rs |
0.3.7 | 2023-10-24 | no | closest analogue — scraper + checker + serve, but binary-only and unmaintained |
proxy-scraper-checker |
0.1.3 | 2024-06-14 | no | one source only |
open_proxies |
0.1.1 | 2022-11-15 | yes | checker only |
proxy-scraper |
0.2.0 | 2024-05-03 | yes | different domain (MTProxy/Shadowsocks link parsing) |
proxy-rs is the real precedent, and it publishes no library target on any version. This
crate is library-first, with the CLI as a thin shell over it.
Install
Features
| feature | default | what it does |
|---|---|---|
cli |
yes | the proxybroker binary (clap, logging, output formats) |
server |
yes | the local rotating proxy server |
geo |
yes | country lookup code |
geo-bundled |
yes | bundles the DB-IP database (~3.9 MB). Turn off to supply your own. |
--no-default-features gives you the library with no geo data, no server, and no CLI
dependencies.
Geolocation data
When built with geo-bundled (on by default), this crate includes the DB-IP Country Lite
database:
IP Geolocation by DB-IP (https://db-ip.com)
licensed CC BY 4.0. See LICENSE-DATA.
Why not MaxMind GeoLite2, which the Python version bundles? GeoLite2's EULA requires
licensees to destroy superseded copies within 30 days of a new release. A published
crates.io version is immutable — it cannot be destroyed — so bundling GeoLite2 in a
published crate cannot be made compliant by attribution or feature flags. (The Python
project's bundled copy was built 2017-09-06 and is 8.9 years stale, and its update-geo
command has been broken since MaxMind retired the anonymous download endpoint in 2019.)
DB-IP Lite is CC BY 4.0, has no update-or-destroy clause, and no ShareAlike obligation.
You can always bring your own database — including your own lawfully-licensed GeoLite2:
Full analysis with primary sources: docs/systematic-refactor/research.md.
Licence
Apache-2.0 — see LICENSE and NOTICE. Bundled geo data is CC BY 4.0 — see LICENSE-DATA. The code licence does not cover the data, and the data licence does not cover the code.