proxifier-rs
Simple proxy client library to relay network packets towards a destination target using a proxy. With built-in support for TLS.
- Supports SOCKS4/5 and HTTP/HTTPS type proxies
This is a Rust port of proxifier. Specifically designed for production use with ProxyBeast software.
Uses Async
- With
tokio - Tracing support todo
Supports
- TLS via
rustls
If you want to use a different TLS library, feel free to disable this crate's default Cargo feature: tls
Summary of the API
Exports simple connect functions from which a [TcpStream] is obtained and can in turn be wrapped into a [TlsStream<TcpStream>] with support for TLS.
Quick glance into the API
async
// running 1 test
// out: "HTTP/1.1 200 OK\r\nDate: Thu, 21 May 2026 15:15:52 GMT\r\nContent-Type: text/plain\r\nContent-Length: 14\r\nConnection: close\r\nServer: cloudflare\r\nVary: Origin\r\ncf-cache-status: DYNAMIC\r\nCF-RAY: 9ff489fdddc0dc72-FRA\r\n\r\n
//
// 194.113.119.68"
// test tests::test_socks5_ipv4 ... ok