Interview Prep/Networking/Addressing, CIDR & Routing

Users complain about random connection resets when a server has two uplinks and a stateful firewall in front. What is happening?

IntermediateScenarioAddressing, CIDR & Routing
Answer

Situation read → Classic asymmetric routing: the SYN goes out through firewall A and the reply returns through B, which has no state for the flow and drops it.

What I'd do →

  1. Capture on both firewalls with tcpdump -ni eth0 host 10.2.3.4 and port 443 and check that each sees only half of the flow
  2. Review routing on the server with ip route get <client> to see the return path
  3. Make routing symmetric by using source-based routing (ip rule add from 10.2.3.4 table 100) or by pinning flows with ECMP hashing
  4. If symmetry is impossible use state sync between the firewalls

Why → Stateful devices track connections and only accept return traffic they have seen leave.

Interview tip → Name the symptom correctly: SYN seen, no SYN-ACK or an ACK that gets dropped as invalid.

All Networking questions Roadmap: Networking for DevOps

More on Addressing, CIDR & Routing