Sign inSign up

nodyd/test-tcp

By nodyd

Updated over 5 years ago

A container image that test if tcp connections can or cannot be established.

Image
0

1.0K

nodyd/test-tcp repository overview

Test TCP

This docker image is intended to be used to check for network connections. It is a quick-and-dirty PoC to verify if network communications are available that should not be available and vice-versa. If the condition is not matched anymore, the container crashes.

The image is published on Docker Hub and can be started with docker run --rm -it nodyd/test-tcp

Configuration

The image containes the file /test/cfg/allow.lst and /test/cfg/deny.lst. These files containes hostnames/ip's and ports that should be checked.

If the environment variable REPEAT_AFTER is not specified, the container stops after connection checks successfully. If the value is set, the container will run infinitly and re-check the connection every REPEAT_AFTER seconds. In case of a connection comes available, the container crashes.

TODO

  • Kubernetes Deployment file
  • Helm Chart

Tag summary

Content type

Image

Digest

Size

3 MB

Last updated

over 5 years ago

docker pull nodyd/test-tcp