[GH-ISSUE #375] Fail2Ban for /admin #219

Closed
opened 2026-03-03 01:26:52 +03:00 by kerem · 1 comment
Owner

Originally created by @Biepa on GitHub (Jan 30, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/375

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 (Jan 30, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/375 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.
kerem closed this issue 2026-03-03 01:26:52 +03:00
Author
Owner

@dani-garcia commented on GitHub (Jan 30, 2019):

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

<!-- gh-comment-id:458946837 --> @dani-garcia commented on GitHub (Jan 30, 2019): 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.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#219
No description provided.