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 →
- Verify with
ss -sandnetstat -n | grep -c SYN_RECV - Enable SYN cookies:
sysctl -w net.ipv4.tcp_syncookies=1and raisetcp_max_syn_backlog - Place the service behind a CDN, NLB or Shield Advanced which absorb SYN floods
- Rate-limit at the edge, block sources with NACL or upstream filters
- 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.
More on Security: Firewalls, SGs, NACLs & VPN
Security group versus NACL: explain the differences.BeginnerHow do you let only your office IP SSH into a server?BeginnerWhat does it mean that a security group can reference another security group?BeginnerStateful versus stateless firewalls: what is the practical difference?BeginnerWhat is a WAF and where do you place it?BeginnerWhat is the difference between a site-to-site VPN and a client VPN?Beginner