TCP Anti-DDoS guidePublished on 6 May 2026Reading time: 15 min
SYN flood protection: mitigate TCP DDoS attacks without blocking real connections
A SYN flood is not only about sending many packets. It abuses the TCP opening phase to create pressure on connection queues, stateful firewalls, load balancers and exposed servers. Effective protection must filter early, avoid state exhaustion and keep legitimate users able to establish sessions.
TCP is stateful
Every new session can consume state on the server, firewall or load balancer.
PPS matters as much as Gbps
A SYN flood can break a TCP stack with moderate bandwidth but very high packet rate.
Filtering must happen early
A server-side rule is not enough when the port, router or firewall saturates first.
Availability is the goal
Mitigation must preserve real handshakes, not only make the traffic graph look cleaner.
A SYN flood is one of the most common TCP DDoS scenarios, but it remains dangerous because it targets a sensitive stage: opening a connection. Before a visitor loads a page, reaches a customer panel, calls an API or establishes a session with an exposed service, TCP must complete a handshake. Attackers abuse this phase by sending large numbers of opening requests that never complete correctly, or that arrive at a rate the infrastructure cannot absorb.
The mistake is to treat a SYN flood as a simple server problem. In real incidents, the first layer to fail is not always the application. It may be the transit port, a stateful firewall, a load balancer, a connection table, a kernel queue or a device forced to track too many incomplete states. Serious protection must act before saturation, separate plausible openings from noise and deliver clean traffic without damaging legitimate sessions.
Related offers
Protect TCP without making the service unreachable
Peeryx protects exposed TCP services with Anti-DDoS protected IP transit, BGP announcement, tunnel or cross-connect delivery, protected dedicated servers and, when the use case requires it, gaming reverse proxy delivery for Minecraft/FiveM and related services.
Definition of the problem: what a SYN flood really tries to exhaust
A SYN flood targets the TCP connection opening mechanism. Under normal conditions, a client sends SYN, the server replies with SYN-ACK, and the client confirms with ACK. During an attack, the target receives an abnormal amount of SYN packets, often from spoofed, distributed or unstable sources. The server or an intermediate device may then keep state for connections that will never complete.
The effect is not just more traffic. It is pressure on connection resources: state tables, TCP backlog, firewall CPU, queues, memory, NAT systems, load balancers, reverse proxies or web servers. Even if the bandwidth in Gbps is below the advertised capacity, packets per second and incomplete states can make the service unavailable.
Modern SYN floods can also be mixed with other vectors. An UDP wave may saturate the link while SYN traffic exhausts stateful components. A defense based only on average bitrate or broad port blocking will not be enough. You need to know where saturation appears and which layer must be relieved first.
Backlog exhaustion
Too many incomplete handshakes prevent real clients from taking a place in the TCP queue.
Stateful device pressure
Firewalls, NAT and load balancers can fail before the origin server does.
Spoofed or distributed sources
Packets can come from many IPs, sometimes forged, making source-only blocking unreliable.
Why it matters for an infrastructure that sells online
For the end user, a SYN flood does not look like a network attack. It looks like a page that does not load, a panel that rejects connections, an API timeout, a game service becoming unstable or a professional service appearing offline. If the service drives leads, customers or revenue, a few minutes of unavailability can be enough to lose sales and trust.
The difficulty is that TCP is everywhere: websites, APIs, SSH, customer panels, proxies, load balancers, tunnels and business services. Over-aggressive mitigation can therefore create major false positives. Blocking an exposed TCP port may stop the attack graph, but it also cuts the service. The right design must maintain enough capacity and precision for legitimate clients to keep establishing sessions.
This matters even more for companies growing through organic search, LinkedIn or X. A hard-earned prospect must land on infrastructure that is reachable. DDoS protection becomes a commercial topic as much as a technical one: it protects conversion, credibility and continuity.
Observed symptom
Too-simple interpretation
Real priority
TCP timeouts
The web server is slow
Check backlog, firewall, load balancer and upstream saturation
High firewall CPU
Just add more CPU
Filter before the stateful device when attack traffic exceeds its role
Low Gbps but service down
The DDoS is not large
Look at packets per second and incomplete connection states
Legitimate connections refused
Block harder
Separate attack signatures from plausible openings
Possible solutions against SYN floods
The first known response is to enable TCP protections at system level, such as SYN cookies, backlog tuning and kernel thresholds. These mechanisms are useful, but they are not a full answer. They help the server avoid reserving resources too early, but they do not protect the link, router, firewall or load balancer when the attack already reaches too far into the architecture.
Rate limiting can also reduce obvious noise. It becomes risky when legitimate traffic actually grows or when the attack imitates normal openings. A threshold that is too low blocks real users; a threshold that is too high does not protect enough. Rate limiting must be contextualized by service, port, expected behavior and real capacity.
ACLs, stateless filtering, packet-size checks, TCP flag logic and network characteristics can be very effective when applied early. But they must be precise. A broad rule can cut users, disturb network paths or break specific services. This is why upstream filtering, scrubbing and clean delivery become necessary once exposure becomes serious.
SYN cookies and kernel tuning
Useful to harden the origin, insufficient against upstream saturation.
Contextual rate limiting
Effective when thresholds match the real service, not a copied generic profile.
Early stateless filtering
Reduces pressure before devices that would otherwise keep state on noise.
Protected transit or scrubbing
Cleans traffic before production and delivers only usable flows.
TCP filtering adapted to the real service, not a generic rule
At Peeryx, the objective is not to treat every SYN as suspicious. An exposed infrastructure needs new connections to operate. The priority is to recognize what is clearly inconsistent with the service, relieve stateful layers and preserve openings that look like real clients.
Traffic can enter through Anti-DDoS protected IP transit with BGP, protected IPs, GRE/IPIP/VXLAN tunnels or cross-connect depending on the architecture. The value is to place mitigation before the attack reaches the customer’s most fragile equipment. Clean traffic is then delivered back in a readable handoff model that respects network constraints.
For highly volumetric or high-PPS waves, filtering can also be combined with upstream relief when the goal is to reduce noise before it consumes port or processing capacity. The use must remain precise, temporary and proportionate: the goal is not to blackhole the customer, but to shave the attack enough for fine mitigation to remain in control.
Depending on the customer, the same logic can protect BGP-enabled IP transit, an exposed dedicated server, a web panel, an API or a game service that depends on stable TCP connections such as Minecraft. The key is to choose the right filtering point and clean delivery model instead of applying one generic rule to the whole infrastructure.
identify where pressure appears: link, firewall, load balancer, kernel or application
filter clearly illegitimate traffic as early as possible
avoid expensive stateful logic on the hot path
keep clean delivery readable: cross-connect, GRE, IPIP, VXLAN or router VM
adapt the profile to the service instead of applying one model to every customer
Concrete use case: a web service and customer panel under SYN flood
Imagine a hosting provider or SaaS platform with a commercial website, a customer panel and several exposed TCP services. The attack begins with moderate Gbps, but a very large number of SYN packets per second. The link may not be full, yet customers see timeouts. The stateful firewall starts consuming CPU and the load balancer keeps too many incomplete states.
A local response is to raise server limits and enable basic TCP protections. This may buy time, but if the attack continues, intermediate components remain under pressure. By moving ingress through a Peeryx mitigation layer, clearly abnormal packets can be removed before customer equipment, while plausible openings are delivered to the origin.
The expected result is not magic; it depends on the service, volume, network path and legitimate behavior. But the design becomes much cleaner. The customer is no longer trying to save a drowning server alone; they receive reduced, more readable traffic closer to what the application can actually process.
1. Baseline
Understand normal TCP traffic: ports, opening rate, expected peaks and user profile.
2. Detection
Identify SYN flood signals: SYN/ACK imbalance, unstable sources, abnormal PPS or backlog pressure.
3. Filtering
Drop inconsistent traffic early and avoid making stateful layers process noise.
4. Delivery
Return clean traffic to the customer through the best integration model.
Frequent mistakes to avoid
A SYN flood looks simple, so many teams handle it with one rule. That is often not enough. The real question is which resource is failing and where in the path the decision must happen.
A second mistake is to confuse server hardening with network protection. Hardening Linux, Nginx or HAProxy helps, but it does not protect a saturated port or an already overloaded firewall. The server cannot filter packets that no longer reach it, or that have already broken an intermediate layer.
watching only Gbps and ignoring packets per second
enabling a global rate limit without knowing legitimate traffic
placing the first real defense behind a fragile stateful firewall
blocking all new connections and calling it mitigation
forgetting to test clean traffic delivery before a real attack
Why choose Peeryx for SYN flood protection
Peeryx is designed for customers who need more than a capacity promise. The architecture combines protected IP transit, BGP, tunnels, cross-connect, router VM and clean traffic delivery. For a SYN flood, this means treating the problem at the right place: before the customer’s stateful equipment is forced to absorb useless traffic.
The benefit is also commercial. Protected infrastructure must remain reachable while the company sells, prospects and grows across Europe. Peeryx helps maintain that continuity with a clear, documentable network approach adapted to exposed services.
Protected IP transit
Protect your prefixes while keeping control of BGP integration.
Flexible handoff
Cross-connect, GRE, IPIP, VXLAN or router VM depending on your architecture.
Multi-layer view
Upstream filtering, L3/L4 logic, clean traffic and optional gaming protection when needed.
No. It can be low in bandwidth but very high in packets per second or TCP state pressure.
Are SYN cookies enough?
They help on the server, but they do not protect upstream capacity, firewalls, load balancers or transit ports.
Should all TCP be blocked during the attack?
No. Critical services rely on TCP. Mitigation must preserve plausible connections and block inconsistent traffic.
Can Peeryx protect an existing infrastructure?
Yes. Clean traffic can be delivered by tunnel, cross-connect, router VM or BGP design depending on your topology.
Are SYN flood and TCP flood the same?
A SYN flood is one TCP flood type focused on connection opening. Other TCP floods may target established sessions, specific flags or applications behind TCP.
Conclusion
SYN flood protection must be treated as a complete TCP availability problem, not as a single firewall rule. The attack may target the link, packet rate, backlog, stateful equipment or the origin’s ability to accept new sessions.
A strong design combines local hardening, early filtering, upstream capacity and clean delivery. That combination preserves real users during the attack instead of forcing a choice between letting everything through and cutting everything off.
Resources
Related reading
To go deeper, here are other useful pages and articles.
Peeryx can help you deploy Anti-DDoS protected IP transit, clean delivery by tunnel or cross-connect and a mitigation strategy adapted to TCP services, web, APIs, customer panels and critical infrastructure.