yprox
A modifying, multiplexer tcp proxy server tool and library.
Usage
As an executable
To use yprox as an executable, simply install it using Cargo:
Then, you can run it with:
For example:
This will start a proxy server that listens on 127.0.0.1:8080 and forwards incoming connections to 127.0.0.1:9000 and 127.0.0.1:9001.
As a library
To use yprox as a library, add it to your Cargo.toml file:
[]
= "0.1"
Then, you can use it in your code:
use Proxy;
async
This will start a proxy server that listens on 127.0.0.1:8080 and forwards incoming connections to 127.0.0.1:9000 and 127.0.0.1:9001.
Using a modifying function
Optionally you can modify the data stream before forwarding it to the target. You can do that using the start_modifying function:
use Proxy;
async