Hi,
Just wanted to check whether I can view my domoticz dashboard from my holiday location.
Created a port forward on my router allowing my holiday IP to connect to port 28080 and then get forwarded to local domoticz instance on 192.168.0.20:8080.
I get to see the dashboard, although I was expecting a logon screen, since the IP of my holiday location is not a trusted network.
Trusted network in domoticz is set to: 127.0.0.*;192.168.0.*;192.168.2.*
In the logfile I can see that domoticz accepts a connection not in the trusted networks.
How does this work? Why don’t I get a logon screen?
Thanks!
Connecting from the internet automatically logs in as admin
Moderator: leecollings
- kiddigital
- Posts: 438
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Connecting from the internet automatically logs in as admin
I think your router is in the trusted network and it depends on how it forwards the connection.
But I think Domoticz thinks that your remote request is coming from your router itself and therefor automatically logs in as the router is in the trusted network.
If you run Domoticz with debugflags ‘—debuglevel webserver,received’ the log will show what Domoticz sees as the IP-address that is doing the request.
You are right that you should get the login screen when coming from an external location.
Btw. all the above is under the assumption that you are running Stable 2023.1 or a higher Beta.
But I think Domoticz thinks that your remote request is coming from your router itself and therefor automatically logs in as the router is in the trusted network.
If you run Domoticz with debugflags ‘—debuglevel webserver,received’ the log will show what Domoticz sees as the IP-address that is doing the request.
You are right that you should get the login screen when coming from an external location.
Btw. all the above is under the assumption that you are running Stable 2023.1 or a higher Beta.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 25
- Joined: Friday 04 February 2022 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Connecting from the internet automatically logs in as admin
Thanks.
That’s also my assumption. Would be a weird way to handle port forwarding in my opinion.
However, it still shows the external IP in the log… so domoticz knows the remote IP.
2023-02-25 13:30:54.957 Status: [web:8080] Incoming connection from: 178.xxx.yyy.zzz
That’s also my assumption. Would be a weird way to handle port forwarding in my opinion.
However, it still shows the external IP in the log… so domoticz knows the remote IP.
2023-02-25 13:30:54.957 Status: [web:8080] Incoming connection from: 178.xxx.yyy.zzz
- kiddigital
- Posts: 438
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Connecting from the internet automatically logs in as admin
If possible, run with additional debug flags to see more details.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
- jvdz
- Posts: 2335
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: Connecting from the internet automatically logs in as admin
Could it be you have the credentials cached on the device you test with?
Could try a different browser/incognito mode to see if that makes any difference.
Could try a different browser/incognito mode to see if that makes any difference.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 25
- Joined: Friday 04 February 2022 14:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Connecting from the internet automatically logs in as admin
Thought of that possibility as well.
Tried the incognito mode and also a different browser, but no difference.
Tried the incognito mode and also a different browser, but no difference.
Who is online
Users browsing this forum: No registered users and 1 guest