Why don't you just use fail2ban?
this post was submitted on 08 May 2025
11 points (100.0% liked)
Debian operating system
3289 readers
2 users here now
Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian provides more than a pure OS: it comes with over 59000 packages, precompiled software bundled up in a nice format for easy installation on your machine.
founded 5 years ago
MODERATORS
I try to minimize as much as possible what I have to install... I'm sure fail2ban would do what I want, but then I wouldn't have learned anything.
You could learn about how fail2ban works, and in the process decide if it's the right implementation for your use case, or maybe get some ideas for your implementation from the research.