← NOTES

LOG-001 · 2026-07-22

fail2ban banned me

I do security for a living. I harden other people's estates, I write the reports, I tell clients to layer their controls. So when I set up the VPS behind my app, I did it properly: keys, MFA on top, and fail2ban watching the auth logs, ready to ban any IP that kept getting authentication wrong.

Then one evening the IP that kept getting authentication wrong was mine.

What actually happened

A run of failed MFA attempts — the ordinary kind of human fumbling, a stale code here, a mistyped one there — landed in the same log stream fail2ban was watching for brute force. To the jail, a legitimate operator having a clumsy minute and an attacker grinding through codes look identical: repeated failures from one address inside the window. It did exactly what I configured it to do, on the box I needed to be on.

The remediation


The lesson isn't that fail2ban is bad. fail2ban was flawless — it enforced my specification precisely. The problem was the gap between what I specified and what I intended, which is where most security failures live. Your config file is a contract, and it will be honoured to the letter, including against you.