fail2ban - not working with vaultwarden #1669
Unanswered
ajaskiewiczpl
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
-
I'm having the same issue. Did you find any solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have vaultwarden installed in docker container:
docker-compose.yml
I'm trying to configure fail2ban to work with vaultwarden. I am reading official tutorial from github page, and I got following:
Filter file - bitwarden.local:
jail.local:
I attempted to input wrong password many times and I see the expected message
Username or password is incorrect
in the log file. To verify if fail2ban correctly parses log file I run following command:fail2ban-regex /mnt/storage/bitwarden/bitwarden.log /etc/fail2ban/filter.d/bitwarden.local
and here are results:Looks good. I also checked if there are any errors with jail initialization when fail2ban starts:
As you can see, no errors, however fail2ban is still not even detecting any attempts to login with invalid credentials and is not taking any action - there are no relevant logs in fail2ban log file. Just to be clear, max retries value is 3 and I try to login with invalid password 5 or 6 times within couple of seconds. What am I doing wrong? Why it doesn't work?
Beta Was this translation helpful? Give feedback.
All reactions