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 →
- Capture on both firewalls with
tcpdump -ni eth0 host 10.2.3.4 and port 443and check that each sees only half of the flow - Review routing on the server with
ip route get <client>to see the return path - 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 - 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.
More on Addressing, CIDR & Routing
You own 10.0.0.0/16 for a new VPC and need separate /24 subnets for dev, QA and prod across two AZs. How do you carve it up?BeginnerA host is configured as 192.168.1.130/25. What network does it belong to and what is the broadcast address?BeginnerHow many usable IPs does an AWS subnet of /28 have?BeginnerA route table has 10.0.0.0/16 -> local and 10.0.1.0/24 -> vpn-gw. Where does a packet to 10.0.1.5 go?BeginnerA newly built server can ping everything in its subnet but nothing outside. What is the first thing you check?BeginnerYou are picking a private range for a new company network. Which RFC 1918 range do you choose and why?Beginner