This is a really simple docker image which just listens on the specified port and forwards the traffic to a given IP address and port.
Some environment variables are required to run the container:
LISTEN_PORT
: the port to listen onDESTINATION_IP
: the IP address to forward toDESTINATION_PORT
: the port to forward to
If you want to redirect traffic to the host, you can use the special IP address host.docker.internal
(see Docker documentation for more information). In particular, if you are using a Synology NAS, you can add the following argument to the docker run
command: --add-host=host.docker.internal:host-gateway
.