Sign inSign up

tdeutsch/tcp-proxy

By tdeutsch

•Updated about 2 years ago

Simple utility to relay tcp traffic to a specific host and port.

Image
0

9.7K

tdeutsch/tcp-proxy repository overview

⁠tcp-proxy-docker

⁠Description

Simple utility to relay tcp traffic to a specific host and port.

It can prove useful if you want to temporarily bind a running container port to your host.

⁠Usage

tcp-proxy host port

⁠Examples

To relay all TCP connections on your port 1234 to my.cool.host:8080:

docker run -it --rm -p 1234:8080 hpello/tcp-proxy my.cool.host 8080

To access a container running on the compose_default network, with name api and port 8080:

docker run -it --rm --network compose_default -p 1234:8080 hpello/tcp-proxy api 8080

⁠Listen port

By default, tcp-proxy will listen on the same port as the one specified.

This can be overriden by setting the LISTEN_PORT environment variable.

Tag summary

Content type

Image

Digest

sha256:955a84aa7…

Size

4.4 MB

Last updated

about 2 years ago

docker pull tdeutsch/tcp-proxy