You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed the https://github.com/BeryJu/hass-auth-header plugin and set up Authentik and Cloudflare tunnels. I am now able to use Authentik to log into Home Assistant.
However, Authentik is currently logging the IP of my Docker container running the Cloudflare tunnel, which is 172.19.0.27. Meanwhile, Home Assistant is showing the full IP headers with the X-Real-Ip and Forwarded IP. For instance, the headers look like this: 'X-Forwarded-For': 'xxx.xx.xx.xx, 172.19.0.27', 'X-Forwarded-Host': 'ha.mydomain.id', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'X-Real-Ip': 'xxx.xx.xx.xx')
I am wondering if there is any way to have Authentik log the Real IP instead of the Docker container's IP.
Edit: I just restarted Authentik and Traefik again and I can see the real IP's now.Not sure why it wasn't working before.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have installed the https://github.com/BeryJu/hass-auth-header plugin and set up Authentik and Cloudflare tunnels. I am now able to use Authentik to log into Home Assistant.
However, Authentik is currently logging the IP of my Docker container running the Cloudflare tunnel, which is 172.19.0.27. Meanwhile, Home Assistant is showing the full IP headers with the X-Real-Ip and Forwarded IP. For instance, the headers look like this:
'X-Forwarded-For':
'xxx.xx.xx.xx, 172.19.0.27', 'X-Forwarded-Host': 'ha.mydomain.id', 'X-Forwarded-Port': '443', 'X-Forwarded-Proto': 'https', 'X-Real-Ip':'xxx.xx.xx.xx')
I am wondering if there is any way to have Authentik log the Real IP instead of the Docker container's IP.
Edit: I just restarted Authentik and Traefik again and I can see the real IP's now.Not sure why it wasn't working before.
Beta Was this translation helpful? Give feedback.
All reactions