natbox.io

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
Waves8 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 hours22.8 million (a normal hour: about 3,800)
Requests that reached our server in those hoursabout 650,000
Highest rate at our server53,845 requests in one minute (normal: about 40)
Source addresses in Cloudflare's logat least 27,099 (87% IPv6) in 1,081 networks and 93 countries
Client area downabout 20 minutes, all in the first wave, plus single failed checks later
Website down4 and 1.5 minutes on 28 Nov, 4.5 minutes on 29 Nov
What it cost us in moneynothing: Cloudflare's free plan and the servers we already had
Abuse reports sentnearly 290 emails and 5 web forms
Bar chart of requests per hour at Cloudflare from 28 November 06:00 to 29 November 06:00 UTC. Normal hours are near zero (about 3,800). Attack hours: 08:00 2.0 million (46 thousand reached our server), 09:00 2.8 million (110 thousand), 10:00 4.7 million (308 thousand), 11:00 0.3 million, 14:00 1.6 million (26 thousand), 23:00 2.4 million (40 thousand), 00:00 2.3 million (4 thousand), 02:00 3.4 million (35 thousand), 03:00 2.2 million (29 thousand), 06:00 1.0 million (43 thousand).

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.

Stacked bar chart of requests per minute at the client area, 08:40 to 09:25 UTC on 28 November. 08:46 to 08:50: up to 13,393 a minute, nearly all turned away by PHP or dropped. 08:51 to 09:05: a few hundred requests a minute at most, yet the client area is marked down for the whole time and every status check fails. 09:06 to 09:13: up to 49,009 a minute, all refused by our browser-string rule. Single failed checks at 09:08, 09:16 and 09:22.

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:

Terminal: the PHP-FPM pool settings on the client area container: pm.max_children = 16, listen.backlog = 64, request_terminate_timeout = 60s. Before 28 November: 10 workers, the kernel default backlog of 4096 and no time limit.

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

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.

Stacked bar chart of requests per minute at the client area, 09:56 to 10:34 UTC on 28 November. 10:00 to 10:09: up to 34,016 a minute, refused by our browser-string rule. From 10:10: new browser names, answered by the browser-check page, with peaks of 47,306 at 10:16 and 53,845 at 10:23. Almost nothing reached the application. Failed status checks at 10:02, 10:06, 10:11 and 10:17.

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.

Six small stacked bar charts on the same scale, one per burst: 28 November 11:09 and 14:09, 29 November 23:47, 02:23, 03:29 and 06:27 UTC. In each, the first one or two minutes are mostly orange (turned away by PHP with an error), up to about 13,000 a minute, and the following minutes are green (browser-check page). Almost nothing is answered by the application.
Terminal: the last 11 lines of the flood watcher's log. Under-attack mode switched ON at 11:10, 14:10, 23:48, 02:24, 03:30 and 06:28 UTC, each time about a minute after the burst started, with between 1,547 and 13,012 requests in the minute before, and OFF again after 30 quiet minutes each time.

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:

Terminal: the systemd journal of nginx on the website container. 06:32:14 a process of this unit has been killed by the OOM killer; 06:32:23 failed with result oom-kill, 236.1 MB memory peak; 06:36:55 starting nginx; 06:36:56 started.

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:

Horizontal bar chart: Cloudflare's automatic DDoS protection 17.03 million requests (87.4%), our rate limit 1.05 million (5.4%), our browser-string block 0.51 million (2.6%), our under-attack switch 0.24 million (1.2%), reached our server 0.65 million (3.3%).

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%:

Horizontal bar chart of the share of requests by country during the attack hours: Indonesia 13.4%, United States 10.5%, Vietnam 9.4%, France 5.4%, Germany 4.8%, Russia 4.8%, India 3.4%, Sweden 3.1%, China 3.1%, Spain 3.0%, 92 other countries 39.1%.

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

Horizontal bar chart of the top 12 networks by share of requests stopped at Cloudflare: Akamai Connected Cloud (Linode) 5.9%, Bach Kim Network (Vietnam) 4.7%, Oracle Cloud 4.5%, Microsoft Azure 3.7%, Cogento Backbone 3.0%, haoxiangyun 2.9%, Zenlayer 2.8%, OVHcloud 2.6%, Hurricane Electric 2.6%, Alibaba Cloud 1.9%, Comcast 1.9%, Google Cloud 1.9%.

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.

Grouped bar chart of addresses by how many requests each sent over all waves. 1 to 9 requests: 44.4% of addresses, 0.2% of requests. 10 to 99: 42.6% of addresses, 2.0% of requests. 100 to 999: 7.1% and 2.5%. 1,000 to 9,999: 4.9% and 24.7%. 10,000 or more: 1.0% of addresses, 70.6% of requests.

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:

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

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.