| Crates.io | routez |
| lib.rs | routez |
| version | 0.3.1 |
| created_at | 2023-04-03 16:56:54.414981+00 |
| updated_at | 2023-04-11 18:25:58.021132+00 |
| description | ⏩ A zero-dep port forwarder. |
| homepage | |
| repository | https://github.com/mihaigalos/routez |
| max_upload_size | |
| id | 829252 |
| size | 121,205 |
A zero-dep port forwarder. Routez supports both TCP and UDP.

Originally implemented to reroute traffic from Class-C IPs (192.168.x.x) to Docker Class-B ones (172.18.x.x).
Useful when creating an IPVLAN (L3) which has the Class-B IPs and when one wants to reach them from Class-C ones.
routez 127.0.0.1:1234 127.0.0.1:4321 TCP
Create a config file with source:port destination:port (exactly 1 space):
127.0.0.1:1234 192.168.0.33:22 TCP
127.0.0.1:4321 127.0.0.1:7890 UDP
Now run with:
routez routez.config
To output color logs, have a look at pipeview.
Either run:
routez 127.0.0.1:1234 127.0.0.1:4321 TCP | pipeview '(.*?) (.*?) (.*?) (.*?) -> (.*)' 'blue cyan white green bred'
Or create a pipeview.toml file in the directory you are calling routez from (see example in this repo) and invoke:
routez 127.0.0.1:1234 127.0.0.1:4321 UDP | pipeview