Sign inSign up

jbruned/port-forwarder

By jbruned

Updated over 2 years ago

Really simple image which just forwards all traffic for a given port.

Image
0

864

jbruned/port-forwarder repository overview

Docker port forwarder

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.

You can visit the GitHub repo for the source code.

Setup

Some environment variables are required to run the container:

  • LISTEN_PORT: the port to listen on
  • DESTINATION_IP: the IP address to forward to
  • DESTINATION_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.

Tag summary

Content type

Image

Digest

sha256:937ad66da

Size

3.8 MB

Last updated

over 2 years ago

docker pull jbruned/port-forwarder