On 2026-06-07 at 17:47:45 UTC-0400 (Sun, 07 Jun 2026 17:47:45 -0400)
Bill Cole <[email protected]>
is rumored to have said:

> It is clear now that there is a diurnal pattern to the DDoS, with the volume 
> being the worst in the morning UTC.
>
> There is now a total  of 44GB of swap available. This has reduced how many 
> OOM-kill events we're seeing, but has not eliminated them
>
> I added the full Spamhaus DROP list to the iptables DROP rules. Updates not 
> yet automated.
>
> If anyone has trouble getting in, be aware that there is a fail2ban daemon 
> running which may detect partial logins failing due to slowness (or 
> oom-killed sshd) as ban-worthy events. I had that happen to me and had to log 
> in via my employer's network to clear it.

Yesterday I added an abominable act of desperation to the root crontab:

        # NOT managed by puppet. 2026-06-09 billcole. A nasty hack to keep the 
system
        # manageable. Problematic traffic starts causing problems around 3:20 
UTC daily,
        # ends after 16:20 UTC. So every minute and a half I kill all the child 
processes
        # that cause the memory jam. This is an act of desperation
        17 3 * * * for x in {600..0} ; do killall ruleqa.cgi & killall pigz ; 
sleep 90 ; done 2>/dev/null

This morning I was actually able to log in at 12:42 UTC, which recently had 
been impossible due to the DDoS. It's not clear how many processes are actually 
being killed, but I have been unable to see it killing my own test hits. I will 
leave this in place for now unless someone screams. I hate it.

In other news, no scheduled jobs have generated mail yet today, because the 
system has never been overloaded. I see this as a win.

The idiosyncratic unblocked DDoS requests can be identified by the '403' 
response most of them get because of a rewrite rule that catches missing or 
bogus Referer headers. The rate of these has been relatively low until the 
latest hour:

     87 [09/Jun/2026:16
    146 [09/Jun/2026:17
    171 [09/Jun/2026:18
    148 [09/Jun/2026:19
    159 [09/Jun/2026:20
    161 [09/Jun/2026:21
    159 [09/Jun/2026:22
    166 [09/Jun/2026:23
    153 [10/Jun/2026:00
    162 [10/Jun/2026:01
    149 [10/Jun/2026:02
    151 [10/Jun/2026:03
    153 [10/Jun/2026:04
     79 [10/Jun/2026:05
    174 [10/Jun/2026:06
    127 [10/Jun/2026:07
    130 [10/Jun/2026:08
    156 [10/Jun/2026:09
    130 [10/Jun/2026:10
    168 [10/Jun/2026:11
    254 [10/Jun/2026:12
   1655 [10/Jun/2026:13

I have cleared out many old and apparently stale (zero hits since being added) 
iptables rules. I have also targeted the sources of the latest surge.

There's an Infra tool called Blocky which populates iptables with blocks that 
are ASF-wide which is having its own issues figuring out tactics:

        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processing upstream change-set 
(5403 entries)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Removing 112.91.151.179 from 
block list (found at line 20865 as 112.91.151.179)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Removing entry 112.91.151.179 
from line 20865 in INPUT
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processed 500 entries...
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processed 1000 entries...
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processed 1500 entries...
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processed 2000 entries...
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processed 2500 entries...
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processed 3000 entries...
        Jun 10 03:17:01 sa-vm pipenv[3009253]: 2804:7064::/32 was requested 
banned but the net block is too large (79228162514264337593543950336 IPs)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: 44.224.0.0/11 was requested 
banned but the net block is too large (2097152 IPs)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processed 3500 entries...
        Jun 10 03:17:01 sa-vm pipenv[3009253]: 180.96.0.0/11 was requested 
banned but the net block is too large (2097152 IPs)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processed 4000 entries...
        Jun 10 03:17:01 sa-vm pipenv[3009253]: 240e:390::/29 was requested 
banned but the net block is too large (633825300114114700748351602688 IPs)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: 2601::/20 was requested banned 
but the net block is too large (324518553658426726783156020576256 IPs)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: 98.192.0.0/10 was requested 
banned but the net block is too large (4194304 IPs)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: 76.128.0.0/11 was requested 
banned but the net block is too large (2097152 IPs)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: 67.160.0.0/11 was requested 
banned but the net block is too large (2097152 IPs)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: 90.192.0.0/11 was requested 
banned but the net block is too large (2097152 IPs)
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Processed 4500 entries...
        Jun 10 03:17:01 sa-vm pipenv[3009253]: Traceback (most recent call 
last):
        Jun 10 03:17:01 sa-vm pipenv[3009253]:   File "blocky4-client.py", line 
50, in upload_iptables
        Jun 10 03:17:01 sa-vm pipenv[3009253]:     response = await resp.json()
        Jun 10 03:17:01 sa-vm pipenv[3009253]:   File 
"/root/.local/share/virtualenvs/blocky-client-RkLFIbbA/lib/python3.8/site-packages/aiohttp/client_reqrep.py",
 line 1278, in json

I  don't have any issue with blocking 2^^96 IPv6 addresses, but blocky seems to 
be protected from doing that. :)


-- 
 Bill Cole
 [email protected] or [email protected]
 (AKA @[email protected] and many *@billmail.scconsult.com addresses)
 Please keep discussion mailing list replies *on-list*
 Not Currently Available For Hire

Reply via email to