A lightweight, high-performance TCP proxy server written in Rust using the Tokio asynchronous runtime.
- Configurable listen port
- Customizable destination host and port
- Asynchronous handling of multiple connections
- Simple command-line interface
proxy-stream [OPTIONS]
Options:
--listen-port <PORT>
: Set the listening port (default: 8888)--destination-port <PORT>
: Set the destination port (default: 110)--destination-host <HOST>
: Set the destination host (default: 127.0.0.1)
To build the project, ensure you have Rust and Cargo installed, then run:
cargo build --release
After building, you can run the proxy server with:
./target/release/proxy-stream
Or with custom options:
./target/release/proxy-stream --listen-port 9000 --destination-port 80 --destination-host 127.0.0.1
- tokio
- clap
Contributions are welcome! Please feel free to submit a Pull Request.