Invalid IP error when login attempt fails, and netbox is behind reverse proxy (haproxy) #15446
Unanswered
pelinche
asked this question in
Help Wanted!
Replies: 1 comment
-
Something upstream is setting HTTP_X_REAL_IP to a domain name rather than an IP address. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Deployment Type
Self-hosted
NetBox Version
v3.7.4
Python Version
3.11
Steps to Reproduce
I'm running netbox using a docker image, and netbox is running behind a reverse proxy (haproxy). When the user tries do login on netbox, system give this error.
If password is correct, system works correctly and allow user to use system.
When i try to open netbox without reverse proxy, system gives me the right error message.
I tried a solution, changing the order to resolve IP Address (
netbox/netbox/utilities/request.py
Line 8 in f563ba7
Expected Behavior
Observed Behavior
Beta Was this translation helpful? Give feedback.
All reactions