Show a socket summary
Show socket totals by state; many SYN-SENT sockets point to dropped SYNs or a firewall.
ss -s; ss -tan state syn-sent | wc -l
- tool
- troubleshooting32 commands
More troubleshooting commands
-
tracepath -n <host>; ping -M do -s 1472 -c2 <host>Find the hop where the MTU drops; ping -M do forbids fragmentation, so you can find an MTU black hole.
-
ip route get <ip>; ip neigh show | grep -E 'FAILED|INCOMPLETE'Show the real source address and interface for a destination; FAILED or INCOMPLETE neighbor entries mean an L2/ARP problem.
-
traceroute -T -p 443 <host>; nc -zv <host> 443TCP SYN traceroute gets through ICMP filtering; nc -zv confirms the port is open.
-
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.