Blog / A flood took our client area down
A flood took our client area down, and kept it down
29 November 2026 · Update · By Mohammad AlSaraf
We are natbox, a one-person host of small NAT servers. On the morning of 28 November 2026 our client area, my.natbox.io, stopped answering for about 20 minutes, and our website went down twice. It was an HTTP flood: thousands of machines asking for our home page over and over. It came back seven more times over the next 22 hours, and on the last one it knocked our website over again, for four and a half minutes. Customer servers were never affected: they run on the same hosts, but none of the flood reached them.
This post covers what happened, the part that surprised us (the client area stayed down after the flood had moved on), what we changed, what the attack looked like from Cloudflare's side, and what nearly 290 abuse reports got us. All charts are from our own server logs and Cloudflare's free-plan analytics.
The numbers
| 28 Nov 08:46 to 29 Nov 06:36 UTC | |
|---|---|
| Waves | 8 that reached our server, plus one that Cloudflare stopped on its own; 3 to 37 minutes each |
| Requests counted by Cloudflare in the ten attack hours | 22.8 million (a normal hour: about 3,800) |
| Requests that reached our server in those hours | about 650,000 |
| Highest rate at our server | 53,845 requests in one minute (normal: about 40) |
| Source addresses in Cloudflare's log | at least 27,099 (87% IPv6) in 1,081 networks and 93 countries |
| Client area down | about 20 minutes, all in the first wave, plus single failed checks later |
| Website down | 4 and 1.5 minutes on 28 Nov, 4.5 minutes on 29 Nov |
| What it cost us in money | nothing: Cloudflare's free plan and the servers we already had |
| Abuse reports sent | nearly 290 emails and 5 web forms |

What happened
At 08:46 UTC the client area's home page started getting requests from all over the world. A normal minute brings about 40 requests to the whole client area. Two minutes later we were at 13,393 a minute, almost all of them for the home page.
Every request was the same: fetch /, with one of a handful of fake browser names and a made-up "came from" link (Google, DuckDuckGo, X). That is what rented attack services look like: you pay a few dollars and they point hijacked servers and open proxies at a site. In the first wave about 149,000 requests from 2,240 addresses reached our server. The biggest single source was one server at a hosting company in Russia, walking through 1,108 IPv6 addresses of its own block (25,201 requests, 17% of the wave). None of the addresses had ever signed in to a natbox account.

Why it stayed down
The client area runs on Paymenter, a PHP application, behind nginx and PHP-FPM with a fixed number of workers. Each home-page request takes a worker for a moment. Thousands a minute filled them all, so real visitors waited too, and gave up. That part is expected.
The surprise is in the middle of the chart above. From 08:51 only a few hundred requests a minute were arriving (by 08:55 the flood had moved on to our website), but the client area still didn't answer. When we looked, 3,794 requests were queued in front of PHP, waiting for a free worker. The bots that sent them had given up minutes earlier, but PHP didn't know that: it would have taken each one, built the page and sent it to nobody, while the requests of real visitors waited at the back of the queue. On two CPU cores that would have taken a long time. The only limit on that queue was the listen backlog, and PHP-FPM's default on Linux is to take the kernel's maximum, net.core.somaxconn: 4,096 on our system. So a few minutes of flood could keep the site down long after it ended.
Restarting PHP dropped the dead queue, and the client area answered straight away. Our one-minute checks show it down from 08:48 to 09:05, plus single failed checks at 09:08, 09:16 and 09:22 while we were changing things.
The fix is two lines. PHP-FPM now queues at most 64 connections; anything beyond that gets an immediate error from nginx instead of waiting. And no request may run longer than 60 seconds, which is when nginx stops waiting for it anyway:

Why the website fell over too
Our website is plain files and normally needs very little. But the flood moved to it twice that morning, at 08:55 and 09:04, and its web server ran in a container with only 256 MB of memory. Both times nginx ran out of memory and was killed, at 08:56 and at 09:05, and both times it stayed down until we started it by hand: 4 minutes, then a minute and a half. Static files don't help when the server in front of them isn't running. We doubled its memory and raised its connection limits, and moved on to the client area. We didn't ask why it hadn't come back by itself. That came back to bite us the next morning.
What we changed that day
- A short queue and a time limit for PHP, as above. A flood can still slow the client area down, but it can't leave thousands of dead requests behind.
- Stopping the attack before PHP. The flood's browser names are refused at Cloudflare and again in nginx, before the application.
- A rate limit at Cloudflare: more than 40 requests in 10 seconds from one address to the client area, and that address is blocked for ten seconds. Payment webhooks are excluded.
- No way around the front door. Our own sites now accept connections only from Cloudflare's addresses. Before, a flood could skip Cloudflare by connecting to our server's address directly. In HAProxy, which sits in front of everything:
acl from_cf src -f /etc/haproxy/cloudflare.lst acl own_sni req.ssl_sni,lower -m str natbox.io my.natbox.io ... acl trusted_src src 127.0.0.0/8 ::1 ... tcp-request content reject if own_sni !from_cf !trusted_src
- Automatic protection. A small script counts the client area's requests every minute. If they jump far above normal (3,000 a minute, or 600 for the home page), it switches on a browser check at Cloudflare and in our own nginx, and messages us. Real visitors see it for about a second, once; payments and logged-in pages keep working. It switches off by itself after 30 quiet minutes.
- More room. The client area got twice the CPU and more PHP workers (10 to 16).
The second wave: the attacker adapted
At 10:00 UTC the same attack came back, much bigger: about 305,000 requests reached our server in half an hour, up to 53,845 in a single minute, mostly from the same networks as in the morning. At first it used the same browser names, so our nginx rule refused it (purple below), and the automatic protection switched on at 10:01.
At 10:10 the attacker changed tactics: new, realistic browser names that our rule didn't know. That is what the second layer is for. The browser check was already on, and it answered all of the roughly 190,000 new requests with its 400-byte check page (green); 17 home-page requests reached the application in those 20 minutes. Bots don't pass it, so it cost us almost nothing. The flood ended at about 10:30. The client area stayed up, but not perfectly: 4 of our one-minute checks in that half hour hit their 10-second limit.

It kept coming back
After that the attack returned six more times, in short bursts, the last one at 06:27 the next morning. Each time, only the first minute or two reached our server in force; then the watcher saw it and switched the check on.


This is where the short PHP queue paid off. In that first minute of each burst PHP was full again, but instead of queueing thousands of requests it turned away about 70,000 of them at once with an error (orange), and recovered as soon as the check took over. Over the six bursts, 22 requests for pages other than the flooded home page got such an error. While the check was on, customers kept signing in and opening their servers and invoices.
The last burst found the next weak spot
The burst at 06:27 on 29 November hit the client area first, and the watcher switched the check on there at 06:28. A minute later the flood moved to our website, natbox.io, which the automatic check didn't cover yet. Only about 2,000 requests made it into the web server's log in those minutes, but the container's memory filled up anyway, most likely with connections that never got as far as a finished request, and at 06:32 nginx hit the limit (512 MB since the first wave) and was killed again. Cloudflare showed visitors its "SSL handshake failed" page until we started nginx again:

The memory limit was the trigger, but the real problem is the gap of four and a half minutes in that log, the same gap as the day before. The nginx unit had no Restart=, so once it was killed it stayed down until someone noticed. We had fixed the symptom (memory) and not the cause. Now it restarts by itself after three seconds, the container has 1 GB, the automatic check covers natbox.io as well as the client area, and the watcher counts the website's requests too.
What it looked like from Cloudflare
The hourly chart at the top shows the scale: in the ten attack hours Cloudflare counted 22.8 million requests to our domain, and about 650,000 reached our server, roughly 1 in 35. Cloudflare's free plan doesn't give per-minute totals, but its security event log does record what was stopped and why, as a sample with a weight for each event. We downloaded all of it, about 4 million events. It shows a little more than our own logs: a ninth, five-minute wave at 10:51 on 28 November that Cloudflare stopped completely, and night bursts that lasted 16 to 24 minutes at Cloudflare, of which only the first few minutes got through to us. Most of the work was done by Cloudflare's automatic DDoS protection, which is on for every site, free plan included, before any rule of ours:

That changes how we read our own changes. Our rules at Cloudflare stopped about 1.8 million requests, which is small next to its automatic protection's 17 million. But what got through still mattered: in the first minutes of each burst, thousands of requests a minute reached our server, and there the short PHP queue and our own browser check did the work. The layers did different jobs.
The sources were spread wide. Cloudflare saw requests from 102 countries; no country sent more than 14%:

By network it's the usual list of cloud and hosting providers, plus some home connections:

The most useful chart for planning defences is this one. 27,099 addresses (a minimum, since the log is a sample) sounds like a huge botnet, but it isn't one. 263 addresses, 1% of the total, sent 71% of all requests. Most of the other 26,000 sent fewer than 100 requests each, and 93% of those were IPv6 addresses that a few servers rotated through: one /48 block showed up with 8,724 different addresses, another with 8,535. The same machines came back: 2,473 addresses took part in more than one wave, and 42 in seven or all eight.

A per-address rate limit catches the loud 1% well; ours blocked about a million requests. It does almost nothing against the rotating IPv6 addresses, because each one sends a handful of requests and is gone. That is why a check that applies to everyone during an attack, rather than a limit per address, was the layer that held.
Our status page got it wrong
One thing we didn't expect: our status page recorded five of the later bursts as the client area "not responding" for about half an hour each. It wasn't down. Our status checker visits the client area like a visitor, through Cloudflare, and when the browser check switched on, the checker got the check page and an HTTP 403, like the bots. So those entries measured our protection, not an outage, and they took the client area's 7-day uptime from 99.71% down to 98.09% on paper.
We fixed the checker (Cloudflare's rule now skips it, and a 403 that carries Cloudflare's cf-mitigated: challenge header counts as up), and corrected the history: 163 one-minute readings that were the check page, not a failure, are now marked up, and the incidents describe the real interruptions. The timeouts, 502s and the website's 525s stay in. If you run a status checker through the same front door as your visitors, decide in advance what it should see when you turn on your own defences.
What nearly 290 abuse reports got us
We sent one report per network owner, each with only that network's addresses, the time window and the matching lines from our logs: 14 after the first wave, 21 after the second, and 253 after the night. (We haven't reported the last burst yet.) These are the replies we've had so far:
- Automatic receipts. Verizon sent a reference number, with a note that it can't investigate or reply to every report. Cloud.ru opened a ticket and promised an answer within 72 working hours.
- "We don't read this address." Linode, OVHcloud and Cloudflare each answered that the abuse address is not processed and pointed us to a web form. OVHcloud's form takes one address per report, so one email became four forms.
- A parser that read the wrong address. RapidSwitch's system takes the first thing in the email that looks like an IPv4 address. Our report was about an IPv6 address, and the first IPv4-looking thing in it was the browser's version number in a log line, which has the form 1xx.0.0.0. It told us that address wasn't theirs and closed the ticket. We sent it again with the real address alone on the first line.
No network has told us yet that it found or stopped a machine. Most of these addresses are probably hijacked servers and open proxies, so a report is the only way their owners learn about them, but we don't expect it to stop the next attack.
What we'd tell other small hosts
- Check what your application queues. The default queue in front of PHP-FPM is the kernel's, and it's large. During a flood it fills with requests nobody is waiting for, and it keeps your site down after the flood is over. A short queue fails fast and recovers fast: in the later bursts it turned away about 70,000 requests with an instant error instead of going down.
- Give every service a
Restart=. Our website's nginx was killed for memory three times, and each time it stayed dead, for up to four and a half minutes, because nothing told systemd to start it again. The memory limit decides when something dies; the restart policy decides how long it stays dead. - Small containers are fine until they aren't. 256 MB was plenty for a static site on a normal day. It was the first thing to break under load, and 512 MB was the second.
- If you use a protection service, close the side door. It only protects the traffic that goes through it.
- Protect everything the attacker can reach, not only what they hit first. We switched the check on for the client area, and the attacker moved to the website. Floods move.
- Plan for the attacker to adapt. A block on what one attack looks like works until the attacker changes it, which this one did about an hour after we blocked it. A second, general layer that switches on automatically is what kept the site up when that happened.
- Per-address limits miss rotating IPv6. A few servers with a /48 each looked like more than 20,000 sources. Rate limiting by address caught the loud ones; it couldn't touch the rest.
- Check what your own monitoring sees. Your defences can make your status page report an outage that isn't there.
- Report the sources, and write reports for machines. Many abuse inboxes are read by software first. Put the address you're reporting on the first line, one report per network, and expect some providers to want their own web form.
The full timeline is on our status page. If you saw the client area or the website down: sorry, and thank you for your patience.
Get new tutorials in Telegram. Follow @natboxio: every new post, plus short server tips.
More from the blog: China blocked our IPv4 address overnight, Black Friday 2026: yearly NAT VPS 50% off, for life, How much RAM does a Discord or Telegram bot need?. RSS feed.