How the FSF sysadmins block botnets with reaction

Hacker News Top Tools

Summary

FSF sysadmins share how they block botnets and DDoS attacks using the reaction tool, an alternative to fail2ban that works with ipset to handle large volumes of malicious IP addresses.

No content available
Original Article
View Cached Full Text

Cached at: 07/14/26, 04:18 PM

# How the FSF sysadmins block botnets with reaction — Free Software Foundation — Working together for free software Source: [https://www.fsf.org/blogs/community/blocking-botnets-with-reaction](https://www.fsf.org/blogs/community/blocking-botnets-with-reaction) —Published onJul 09, 2026 11:29 AM I have written about the FSF facing DDoS attacks several times, including on doing our part to[clean up the internet](https://www.fsf.org/bulletin/2024/fall/fsf-sysops-cleaning-up-the-internet)and on[Uptime Kuma](https://www.fsf.org/bulletin/2026/summer/is-the-site-down-or-is-it-me-introducing-new-fsf-uptime-kuma-instance), as well as["Defending Savannah from DDoS attacks"](https://www.fsf.org/bulletin/2025/spring/defending-savannah-from-ddos-attacks)\. But I realized recently that I left out an important tool that we use extensively\. Today I will talk about[reaction](https://directory.fsf.org/wiki/Reaction)\. With the rise of aggressive scrapers building datasets to train LLMs, we needed to invest a lot of resources into thwarting the attackers\. During this journey, we had several growing pains\. We noticed patterns in the scrapers that were abnormal, which gave us material for writing regular expressions\. Searching for the regular expression then gave us a large lists of IP addresses\. Looking up the origin of those IP addresses revealed that some of the crawlers were using botnets of residential IP addresses to scrape faster and avoid detection\. We looked for what kinds of botnets might be generating the kind of traffic that we were seeing, and one that we suspected was called the "Vo1d" botnet, comprised of smart TVs running some sort of compromised app\. Recently, more information has come out about the Vo1d/Popa botnet\. Security researchers at Qurium, a digital forensics investigation organization, intentionally ran a node and published the data\. We got confirmation that at least some of the botnet traffic hitting GNU Savannah was originating through[the Vo1d/Popa botnet](https://popa.live/csv/watched/git_domains.csv)\. We placed our regular expressions in[fail2ban](https://directory.fsf.org/wiki/Fail2Ban), and found that we were hitting the maximum rules that could be added to[UFW](https://directory.fsf.org/wiki/Uncomplicated_Firewall-_ufw)firewall rules on our systems which showed degradation around 65,000 rules\. fail2ban is a program that can read the stream of log files and perform actions when certain conditions are met\. The actions are typically banning an address with a firewall like UFW, which blocks or allows connections to and from a server\. We learned about[ipset](https://directory.fsf.org/wiki/Ipset)and configured fail2ban to add IP addresses that it found to IP sets\. Using ipset, we kept building larger IP sets and did not find instability with as large as five million rules\. We used fail2ban with ipset for a while but ran into limits of its architecture with Python and SQLite\. We rolled our own solutions as a quick patch several times with BASH, awk, Perl, etc\. to find the address matching the pattern and add the rule to ipset without an additional intermediary database\. The custom scripts worked for a moment, but it became difficult to manage when we had to run several little scripts as more patterns appeared\. Not all of the patterns should be banned on first appearance either so we needed a solution like fail2ban\. We looked for fail2ban alternatives written recently\. We found several, but many of them were written as one\-off showcases rather than well\-maintained solutions that would last\. We eventually found a promising project on Framasoft's forge Framagit called[reaction](https://directory.fsf.org/wiki/Reaction)written by ppom\. It took us a bit of time to understand how to configure reaction\. Unlike fail2ban, reaction does not come with a working configuration and you must build your own configuration with what is relevant to your needs from example documentation\. There was not an example for using ipset so we had to build one\. Overall, this approach is very good because we now have a configuration that has everything we need and very little that we do not need\. After we ran into scaling issues with our initial implementation, we developed a much faster implementation where the reaction shutdown process would export the IP sets to disk and the reaction startup process would restore the IP sets\. This allowed us to have nearly instantaneous restarts of the service to apply new rules\. We published[both of our configurations upstream to reaction's wiki](https://reaction.ppom.me/examples/actions/ipset/)so that everyone can benefit from it\. reaction's getting started documentation now leads to the method that we proposed\. This work is not possible without your support\. Because of free software supporters just like you, we can continue to find new patterns, block crawlers and mitigate DDoS attacks, and share our improvements with everyone\. We know not everyone is in a position to give, but if you can, support our efforts by joining the FSF as an[associate member](https://my.fsf.org/join?mtm_campaign=summer26&mtm_source=techappeal)\. An associate membership is a great show of support we can rely on\. The FSF does not compromise when it comes to defending your freedom\. Without the continued commitment of people like you, the progress we have made is in danger, and software freedom could be reduced to a mere wish instead of today's reality\. Please help us continue to protect software freedom and increase its global support\. Every membership this summer will help us towards our goal of 175 new members\. Associate members will also be able to enjoy all the[member benefits](https://www.fsf.org/associate/benefits?mtm_campaign=summer26&mtm_source=techappeal)which include merchandise discounts, a 16GB bootable membership card, and use of our associate member videoconferencing server\. Many sysadmins know about fail2ban, but not enough people know about[reaction](https://reaction.ppom.me/)\. I am very grateful to ppom for the help they have provided and for the tremendous project they have released to the world with reaction\. We have implemented other defenses as well, but reaction is doing the majority of the automated work keeping our sites online\.

Similar Articles

Blocking an ASN (or similar) from my sites

Lobsters Hottest

A technical guide on blocking entire ASNs and cloud provider IP ranges from websites to mitigate unwanted bot and AI scraper traffic, using iptables and consolidation tools like net-consolidator and cidr-aggregator.

Feds Disrupt IoT Botnets Behind Huge DDoS Attacks

Krebs on Security

U.S., Canadian, and German authorities have dismantled four IoT botnets—Aisuru, Kimwolf, JackSkid, and Mossad—that compromised over three million devices and launched record-breaking DDoS attacks, including against the Department of Defense.

Anti-DDoS Firm Heaped Attacks on Brazilian ISPs

Krebs on Security

KrebsOnSecurity reports that a Brazilian anti-DDoS firm, Huge Networks, was compromised and its infrastructure used to launch massive DDoS attacks against other Brazilian ISPs via a botnet of insecure routers and DNS servers.