mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 01:10:09 +03:00
Fail2Ban for /admin #2196
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Biepa on GitHub.
Hey,
i think there's something wrong with the Fail2Ban config in the wiki.
I wondered why the bitwarden-admin filter doesn't work.
In the Wiki it says:
failregex = ^.*Unauthorized Error: Invalid admin token\. IP: <HOST>.*$But the output in the log is:
[2019-01-30 10:07:46][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: x.x.x.xSo I changed the failregex to:
failregex = ^.*Invalid admin token\. IP: <HOST>.*$and then it worked.
I am not very familiar with Fail2Ban configuration, but I think there might be a mistake in the Wiki.
@dani-garcia commented on GitHub:
You are right, the documentation wasn't updated when that message was changed. I updated the Wiki now, thanks!