Interview Prep/Networking/Security: Firewalls, SGs, NACLs & VPN

A SYN flood is saturating a public service. How do you respond?

AdvancedScenarioSecurity: Firewalls, SGs, NACLs & VPN
Answer

Situation read → SYN flood fills the half-open connection queue.

What I'd do →

  1. Verify with ss -s and netstat -n | grep -c SYN_RECV
  2. Enable SYN cookies: sysctl -w net.ipv4.tcp_syncookies=1 and raise tcp_max_syn_backlog
  3. Place the service behind a CDN, NLB or Shield Advanced which absorb SYN floods
  4. Rate-limit at the edge, block sources with NACL or upstream filters
  5. Engage the provider's DDoS team

Why → Edge infrastructure has the capacity to absorb it, a single host does not.

Interview tip → Say host tuning is the last line, not the plan.

All Networking questions Roadmap: Networking for DevOps

More on Security: Firewalls, SGs, NACLs & VPN