← All hands-on practice
Networking · 8 min
Hold the door: a SYN flood
Every new connection starts with a three-way handshake, and the server keeps a slot for each one it has started. Fill the slots with handshakes that never finish and real visitors are turned away.
Start it: free, in your browser, no account
What you will do
- Run with no attack and watch the queue.
- Turn the attack on (40 a second) and run it with the default settings.
- Make the queue four times bigger and run the flood again.
- Find a setting that keeps every visitor in at 40 SYNs a second, without SYN cookies.
- Keep that setting and turn the attack up to 400 a second.
- Turn SYN cookies on and find out whether any visitor is refused.
Exam objectives it practises
- CompTIA Network+ 4.2 Attack types and their impact
- CompTIA Security+ 2.4 Indicators of malicious activity
- CompTIA PenTest+ 4.2 Network attacks
Simplified: four real visitors a second, a fixed attack rate, and a server that gives up on a half-open connection after a set time (on Linux, tcp_synack_retries=5 means about 63 seconds). The queue size is net.ipv4.tcp_max_syn_backlog together with the listening program's own backlog. Linux has SYN cookies on by default (tcp_syncookies=1) and uses them only once the queue overflows; the log line is as Ubuntu 20.04 (Linux 5.4) prints it, and newer kernels also print the listening address. Floods big enough to fill the internet link itself need help upstream, from the provider or a scrubbing service. Defender's view: never test against systems you don't own.