Expand description
§tokio-multi-proxy
tokio-multi-proxy
is a modular, async multi-interface proxy built with Tokio and Rustls.
It supports three modes of operation:
- Plain TCP passthrough (default)
- TLS termination (
--features tls
) - Mutual TLS (mTLS) with client authentication (
--features mtls
)
§Feature Flags
Feature | Description |
---|---|
passthrough | Raw TCP proxying (enabled by default) |
tls | TLS termination on incoming connections |
mtls | Mutual TLS (requires tls ) |
§Example
#[tokio::main]
async fn main() -> anyhow::Result<()> {
tokio_multi_proxy::start_tcp("0.0.0.0:8080", "127.0.0.1:9000").await
}
Re-exports§
pub use tcp::start_tcp;
pub use udp::start_udp;
pub use unix::start_unix;
pub use tls::start_tls_tcp;
tls
pub use tls::start_mtls_tcp;
mtls