Simple util to redirect tcp connections. Created it to replace "redir".
Requirements:
Steps:
- Copy
config.example.yml
->config.yml
and configure there your desired port redirects and log level. - Build the docker image (just run
make build
). - Start the service (
make start
). - The service is running and will continue to run even after a reboot.
make build
builds the docker image, you should run it after each update of the code from the repo.make start
starts the service container.make stop
stops and removes the service container.make restart
re-creates the container, you should run it after each change inconfig.yml
.make logs
shows latest logs, here you can see if there are any errors (ctrl+c to exit).make status
checks if the container is running and displays it's current CPU/memory usage (ctrl+c to exit).