Network connection check through API call
4.0K
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.
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" ] } }
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)" }
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" ] } }
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
Content type
Image
Digest
sha256:ace26abbb…
Size
54 MB
Last updated
about 2 years ago
docker pull jayeshmahajan/tcpcheck