Check TCP port reachability through a firewall
TCP SYN traceroute gets through ICMP filtering; nc -zv confirms the port is open.
traceroute -T -p 443 <host>; nc -zv <host> 443
- tool
- troubleshooting32 commands
More troubleshooting commands
-
curl -sv --resolve <host>:443:<ip> https://<host>/healthzSend the request to a specific IP to test a backend while keeping the right SNI and Host header.
-
kubectl run dnsutils --image=tutum/dnsutils -it --rm --restart=Never -- nslookup kubernetes.defaultStart a throwaway pod to resolve a cluster name; this checks CoreDNS and the kube-dns service.
-
dig +short @$(kubectl -n kube-system get svc kube-dns -o jsonpath='{.spec.clusterIP}') <name>.<ns>.svc.cluster.localSend the query straight to the CoreDNS clusterIP; with ndots:5, short names cause many extra queries.
-
kubectl -n kube-system get cm coredns -o yaml; kubectl -n kube-system logs deploy/coredns --tail=50Check the Corefile (forward, cache) and the latest logs for SERVFAIL and upstream errors.
-
nmap --script ssl-enum-ciphers -p 443 <host>Grade the supported TLS versions and ciphers on a port and flag weak or deprecated ones.