Go to file
Fabian Stamm f2ad24655c
CI / build (push) Failing after 1m38s Details
Bump version
2024-04-14 00:30:57 +02:00
.github/workflows Add listener closing when the target set has changed. 2023-07-13 11:53:51 +02:00
src Handle the case, that the bind ip address is only available after start 2024-04-13 23:57:46 +02:00
.earthlyignore Add listener closing when the target set has changed. 2023-07-13 11:53:51 +02:00
.editorconfig Implementing udp support partially...in theory. Still untested :) 2022-09-21 22:22:10 +02:00
.gitignore Adjust version and README 2023-02-05 11:34:57 +01:00
Cargo.lock Bump version 2024-04-14 00:30:57 +02:00
Cargo.toml Bump version 2024-04-14 00:30:57 +02:00
Earthfile Change docker repository 2023-07-13 14:58:40 +02:00
README.md Adjust version and README 2023-02-05 11:34:57 +01:00

README.md

Rustocat

Rustocat is a simple socat alternative with way less features, but it has a config file.

Config File

Configs can be either yaml or json and can be located in /etc/rustocat.{yaml|json} or in the current working directory as config.{yaml|json}.

mappings:
  - udp: false
    source: 0.0.0.0:2222
    targets: [127.0.0.1:22]

There is support for UDP and TCP sockets. Each socket can have multiple targets.

When multiple targets are set, it will randomly pick one of them.

Live Changes

It is designed to live reconfigure itself. To trigger a change, send the signal SIGHUP to the process. This will re-read the config file and adjust the sockets and targets accordingly.

All existing connections will stay as they are, but removed sources are closed from further connections.