Fail2Ban for /admin #2196

Closed
opened 2025-10-09 17:50:21 +03:00 by OVERLORD · 1 comment
Owner

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.x

So 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.

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.x` So 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.
Author
Owner

@dani-garcia commented on GitHub:

You are right, the documentation wasn't updated when that message was changed. I updated the Wiki now, thanks!

@dani-garcia commented on GitHub: You are right, the documentation wasn't updated when that message was changed. I updated the Wiki now, thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2196