Sign inSign up

jayeshmahajan/tcpcheck

By jayeshmahajan

Updated about 2 years ago

Network connection check through API call

Image
Networking
API management
Developer tools
3

4.0K

jayeshmahajan/tcpcheck repository overview

Enable developer to do network connection check with server or kuberntes access with API call It also prevents attack by having rate limiting by not allowing more than 30 calls in a min in case someone from internal network tries to attack the server or app.

Check connection on example.com for port 80

http://127.0.0.1:8080/check_connection?port=80&domain=example.com

{ "message": "HTTP connection successful", "dns_result": { "cname": null, "ips": [ "93.184.215.14" ] } }

Check https connection for wrong.host.badssl.com

http://127.0.0.1:8080/check_http_connection?protocol=https&domain=wrong.host.badssl.com

{ "message": "SSL connection failed", "dns_result": { "cname": null, "ips": [ "104.154.89.105" ] }, "error": "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'wrong.host.badssl.com'. (_ssl.c:1133)" }

Checks default https connection for port 443

http://127.0.0.1:8080/check_http_connection?domain=example.com { "message": "HTTP connection successful", "dns_result": { "cname": null, "ips": [ "93.184.215.14" ] } }

Prevent continues for loop attack

http://127.0.0.1:8080/check_http_connection?domain=example.com

{"error":"rate limit exceeded: 10 per 1 minute"}

Github Repo: https://github.com/jayeshmahajan/tcpcheck

Tag summary

Content type

Image

Digest

sha256:ace26abbb

Size

54 MB

Last updated

about 2 years ago

docker pull jayeshmahajan/tcpcheck