mschlenstedt / Loxberry

Current stable Branch is: *** Please see Releases *** Current developer Branch is: *** master ***
Apache License 2.0
77 stars 27 forks source link

Loxone "Remote Connect" und Cloud DNS Cache #1304

Open christianTF opened 2 years ago

christianTF commented 2 years ago

Die get_clouddns Funktion in System. pm/loxberry_system. php verwendet ein Cachefile 3600+rand(3600) für den Cache.

Wird Loxone "Remote Connect" verwendet, ändert sind in einem Intervall ~10-15 Minuten der Port, sodass der Cache veraltet ist.

Feststellungen:

Ermittelt werden müsste:

mschlenstedt commented 2 years ago

Die Anfrage ergibt folgendes JSON zurück:

curl "http://dns.loxonecloud.com?getip&snr=504XXXXXXFB9&json=true" {"cmd":"getip","Code":200,"IPHTTPS":"168.XXX.XXX.175:38726","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}

Es wäre also möglich auf "RemoteConnect":true zu prüfen und dann das Update-Interval für den Cache nur für RemoteCOnnect zu reduzieren.

Der Port bei Remote Connect wechselt alle 5 Minuten. Die IP der Gegenstelle des SSH Tunnels wechselt in unregelmäßigen Abständen (vermutlich Lastabhängig). Logfile minütliche Abfrage:

# DATE | JSON Response
30.12.2021 09:02:50|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:53282","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:03:50|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:53282","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:04:50|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:53282","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:05:51|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:53709","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:06:52|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:53709","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:07:52|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:53709","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:08:52|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:53709","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:09:53|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:22764","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:10:53|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:22764","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:11:53|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:22764","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:12:54|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:22764","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:13:54|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:64593","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:14:54|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:64593","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:15:55|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:64593","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:16:55|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:64593","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:17:55|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:64593","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:18:56|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:57672","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:19:56|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:57672","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:20:56|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:57672","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:21:57|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:57672","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:22:57|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:49495","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:23:58|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:49495","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:24:58|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:49495","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:25:58|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:49495","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:26:58|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:49495","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:27:59|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:38873","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:28:59|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:38873","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:29:59|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:38873","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:31:00|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:38873","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:32:00|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:38873","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:33:01|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:33704","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:34:01|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:33704","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:35:01|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:33704","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:36:01|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:33704","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:37:02|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:41516","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:38:02|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:41516","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:39:03|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:41516","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:40:03|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:41516","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:41:04|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:47637","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:42:04|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:47637","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:43:04|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:47637","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:44:04|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:47637","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:45:05|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:47637","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:46:05|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:45854","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:47:05|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:45854","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:48:06|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:45854","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:49:06|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:45854","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:50:06|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:45854","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:51:07|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:49045","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:52:07|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:49045","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:53:07|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:49045","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:54:08|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:49045","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:55:08|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:49045","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:56:09|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:51046","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:57:09|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:51046","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:58:09|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:51046","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 09:59:09|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:51046","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 10:00:10|{"cmd":"getip","Code":200,"IPHTTPS":"168.119.185.175:51046","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 10:01:10|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:26093","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
30.12.2021 10:02:10|{"cmd":"getip","Code":200,"IPHTTPS":"195.201.222.243:26093","PortOpenHTTPS":true,"RemoteConnect":true,"DNS-Status":"registered","DataCenter":"loxonecloud.com"}
mschlenstedt commented 2 years ago

Wie relevant für LB3.0 ist das? Der Issue ist ein Jahr alt. ich hab im Forum noch nie von Problemen gehört.... Benutzt das überhaupt jemand außer Wörsty?!

christianTF commented 2 years ago

Wir lassen das mal offen.