[GH-ISSUE #761] no IP address in log file #13310

Closed
opened 2026-04-23 04:53:55 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @VooZ2 on GitHub (Dec 7, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/761

Hi,

I'm trying to run fail2ban from WIKI. With /admin page it works, logs are with IP address:

[2019-12-07 14:54:04][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226
[2019-12-07 14:54:05][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226
[2019-12-07 14:54:06][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226

But for vault failed attempts logs don't have IP address and fail2ban doesn't work:

[2019-12-07 15:00:52][error][ERROR] Username or password is incorrect. Try again
[2019-12-07 15:00:53][error][ERROR] Username or password is incorrect. Try again
[2019-12-07 15:00:54][error][ERROR] Username or password is incorrect. Try again
[2019-12-07 15:06:08][error][ERROR] Username or password is incorrect. Try again

Where I made mistake and how to fix it?

Version: 1.13.0-a03db6d2

Originally created by @VooZ2 on GitHub (Dec 7, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/761 Hi, I'm trying to run fail2ban from WIKI. With /admin page it works, logs are with IP address: [2019-12-07 14:54:04][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226 [2019-12-07 14:54:05][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226 [2019-12-07 14:54:06][bitwarden_rs::api::admin][ERROR] Invalid admin token. IP: 188.69.198.226 But for vault failed attempts logs don't have IP address and fail2ban doesn't work: [2019-12-07 15:00:52][error][ERROR] Username or password is incorrect. Try again [2019-12-07 15:00:53][error][ERROR] Username or password is incorrect. Try again [2019-12-07 15:00:54][error][ERROR] Username or password is incorrect. Try again [2019-12-07 15:06:08][error][ERROR] Username or password is incorrect. Try again Where I made mistake and how to fix it? Version: 1.13.0-a03db6d2
Author
Owner

@dani-garcia commented on GitHub (Dec 7, 2019):

Oops that was my mistake in the latest changes to logging, I added it back again and it should show in all the new builds. Thanks for mentioning it!

<!-- gh-comment-id:562852196 --> @dani-garcia commented on GitHub (Dec 7, 2019): Oops that was my mistake in the latest changes to logging, I added it back again and it should show in all the new builds. Thanks for mentioning it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#13310