If I hit :10000 with my fifth bad login (I think, it might be time related too) the site stops loading for a short period. This last time I even managed to get:
What is that mechanism? Can I configure it (to ban longer, wait more tries, etc)? And is it logging anywhere when it trips? It seems not to be fail2ban’s webmin-auth jail.
Yes, but Virtualmin’s are defaulted to 10 minutes. I am not blocked that long, and my IP does not appear in the webmin-auth jail. Additionally my IP range is in the “IP addresses never to ban” and appears in /var/log/fail2ban.log only as:
2025-10-29 10:40:17,483 fail2ban.filter [1119]: INFO [webmin-auth] Ignore #.#.#.# by IP"
I think something else does this.
There’s a whole /var/webmin/locks thing that might have to do with it. There’s a /var/webmin/block file (no idea what that is either).
Not for nothing, I do not stand behind this claim but it might be something to check, I think until I clicked “Save” on “Logging” that /var/webmin/webmin.log kept only the last logged line for some reason (which is why I couldn’t find this on my own).
I checked “Yes” to having webmin write to the auth log as well and then saved and restarted webmin… but I think that out of the box, if you fail 5 times on :10000 and get blocked and go look at /var/webmin/webmin.log the only line there will be your most recent failure… if you click “Yes” to “auth.log”, and probably if you just click “Save” on the “Logging” page without changing anything and restart Webmin it becomes more of a log.
At least in my case when I checked it this morning that file had only one line, a failed test login of mine from yesterday afternoon (and I had not changed the 168 hour default). This was strange to me because the whole reason I opened this thread was because someone mentioned that they’d gotten banned but their IP wasn’t in Fail2Ban jail (and is whitelisted anyway)… so at least their failed login should have been in there.
This morning from a different IP I tried 5-times to login and got Webmin blocked (also Fail2Ban exempt) and that log then only contained one line, my most recent failure.
You are correct that the blocked ones show up in /var/webmin/blocked (I couldn’t fit that together on my own before because the default block time is so short).