-
-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chrome may loose session #1779
Comments
I think option 1 is the most common way to handle sessions. |
I also think option 1 is the way to go, esp. you already listed the caveats of the other two options
|
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
Fixed by the linked PR |
This issue has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/webui-behind-lighttpd-reverse-proxy/71239/6 |
I received a report I was able to reproduce but which is pretty hard to reproduce: You will also have to have a dual-stack network, i.e., your Pi-hole is reachable both via IPv4 and IPv6, for this to happen.
Taking a close look at the Network tab in the Developer Tools didn't reveal anything odd, but checking out the debug logs of FTL told us what happens here: When browsing to your Pi-hole via hostname, Chrome prefers to picks IPv6 to connect - and sessions are tied to IP addresses for extra safety in FTL.
It can now happen - completely randomly and all out of sudden, that Chrome instead decides that connecting via IPv4 is a brilliant idea. However, the session obtained during login is only valid for
fda2:45fe:...
and not192.168.0.3
so the API replied with403 Unauthorized
causing the entire web interface to show you the login page.What do we do about this?
My ideas:
v4.pi.hole
andv6.pi.hole
which will only reply over said protocol. We can then get the client's IP address from/api/info/client
({"remote_addr":"fd29:...."}
, etc.). This is a lot of effort and will still fail if a host has multiple IPv4 addresses in the same network (e.g. one over Ethernet and one over WiFi).The text was updated successfully, but these errors were encountered: