Network Troubleshooting
Isolate DNS, routing, firewall, socket, TLS, proxy, and application failures in a fixed order.
Start from one failing source and one destination. Keep the test unchanged while you move through the layers.
1. Confirm the local state
Record the timestamp and host. Check that the expected interface is up, has the expected address, and has a route for the destination.
2. Resolve DNS
Compare the answer with the intended load balancer or server. Test both address families when both are published.
3. Confirm the route
ip route get shows the local decision without sending traffic. tracepath can identify where replies stop and reveal path-MTU information, but missing hops are not proof of a failure because routers may suppress diagnostic responses.
4. Test the socket
On the client:
On the server or backend:
Confirm the service is bound to the intended address. A listener on 127.0.0.1:3000 is available only from the same host. A listener on 0.0.0.0:3000 accepts IPv4 traffic on every interface if policy permits it.
5. Test TLS and HTTP
If the local health check succeeds but the public request fails, focus on the proxy, load balancer, certificate, and firewall. If both fail, inspect the application process and its logs first.
6. Correlate cloud policy
Check the complete path in both directions:
- source subnet route and outbound policy;
- destination subnet route and inbound policy;
- network ACLs or equivalent stateless rules;
- security groups or equivalent stateful rules;
- load-balancer listener, target port, and health result; and
- host firewall and service binding.
Avoid temporarily allowing all traffic in production. It hides the real rule and creates a second incident risk.
Capture only when needed
Use the narrowest useful filter and a packet limit. Protect the capture as incident data and delete it through the team’s approved retention process after analysis.
Write the finding
Use a statement another engineer can verify:
This points to the backend process or service configuration without changing DNS, routes, or public firewall rules.