mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-09 04:32:44 -05:00
Fail2ban with docker bridge ip #3958
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 @snevas on GitHub (Jun 13, 2019).
I have my docker behind a apache proxy that does 80 > 81 per wiki instructions. When I try to setup fail2ban, I see it tries to ban the docker bridge ip based on this log:
[2019-06-13 09:26:51][bitwarden_rs::error][ERROR] Username or password is incorrect. Try again. IP: 172.17.0.1. Username:test@test.com.@snevas commented on GitHub (Jun 13, 2019):
bitwarder_rs should use the X-Forwarded-For header to log the original ip.
@dani-garcia commented on GitHub (Jun 13, 2019):
Rocket uses the
X-Real-IPheader when determining the origin IP address, you should configure the proxy to set that one instead ofX-Forwarded-For.@snevas commented on GitHub (Jun 13, 2019):
Hi Dani, thanks for all your work on the project. You rock!
I've tested setting the correct header and it works. I've changed the proxy example in the wiki @
https://github.com/dani-garcia/bitwarden_rs/wiki/Proxy-examples