3 ms·
Look at how programs like Fail2Ban, and many SSH-specific monitoring services work. Specifically, Fail2Ban follows auth logs for various services, and when it
by nuclear_eclipse 18y ago
Look at how programs like Fail2Ban, and many SSH-specific monitoring services work.
Specifically, Fail2Ban follows auth logs for various services, and when it finds clients exceeding per-service configured limits, it adds IPTables rules that ban the offending IP address for a configurable amount of time.
Fail2Ban is packaged in many distributions, including Debian and Ubuntu, and can be compiled on just about any system. I personally use it exclusively to thwart brute force attacks on SSH, SMTP/Postfix, IMAP/Dovecot, and HTTP/Apache.
It should be trivial to add a new set of filter/jail rules for any web application that can log bad authentication attempts to a file, and then you have instant "protection" from most brute force attacks.