DNS Rebinding
-
Hey folks,
I’ve setup the gateway on a Raspberry PI running OpenHabian and the setup worked fine but when I went to test the connection from my Fire Stick it failed.
I tried a load of the different tags to see if that would help but no success. Here is a dump of the log.
Dec 19 22:30:05 openhabian monocle-gateway[3779]: ------------------------------------------------- Dec 19 22:30:05 openhabian monocle-gateway[3779]: INITIALIZE RTSP STREAM: Backyard Dec 19 22:30:05 openhabian monocle-gateway[3779]: ------------------------------------------------- Dec 19 22:30:05 openhabian monocle-gateway[3779]: - NAME : Backyard Dec 19 22:30:05 openhabian monocle-gateway[3779]: - LABEL : PRIMARY Dec 19 22:30:05 openhabian monocle-gateway[3779]: - URL : rtsp://192.168.0.150:554/ Dec 19 22:30:05 openhabian monocle-gateway[3779]: - UUID : STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082 Dec 19 22:30:05 openhabian monocle-gateway[3779]: - SESS : 9400d2e6-914b-48a3-91da-cc06db96f55f Dec 19 22:30:05 openhabian monocle-gateway[3779]: - MODIF : Sun Dec 19 2021 22:29:57 GMT+0100 (CET) Dec 19 22:30:05 openhabian monocle-gateway[3779]: - TAGS : @hangup,@noaudio,@ntpnow,@proxy-tcp Dec 19 22:30:05 openhabian monocle-gateway[3779]: ------------------------------------------------- Dec 19 22:30:05 openhabian monocle-gateway[3779]: ------------------------------------------------- Dec 19 22:30:05 openhabian monocle-gateway[3779]: RTSP STREAM MODIFIED: Backyard Dec 19 22:30:05 openhabian monocle-gateway[3779]: Any existing RTSP steams will be shut down Dec 19 22:30:05 openhabian monocle-gateway[3779]: and a new stream instance will be registered. Dec 19 22:30:05 openhabian monocle-gateway[3779]: ------------------------------------------------- Dec 19 22:30:05 openhabian monocle-gateway[3779]: 2021-12-19T21:30:05.284Z [DEBUG] <RTSP-PROXY> [REQUEST] --> [DEREGISTER] rtsp://192.168.0.150:554/ Dec 19 22:30:05 openhabian monocle-gateway[3779]: 2021-12-19T21:30:05.285Z [TRACE] <RTSP-PROXY> [REQUEST] --> [HEADERS] { Dec 19 22:30:05 openhabian monocle-gateway[3779]: "cseq": "1", Dec 19 22:30:05 openhabian monocle-gateway[3779]: "transport": "reuse_connection=0;preferred_delivery_protocol=interleaved;proxy_url_suffix=STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082" Dec 19 22:30:05 openhabian monocle-gateway[3779]: } Dec 19 22:30:05 openhabian monocle-gateway[3779]: 2021-12-19T21:30:05.287Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) Dec 19 22:30:05 openhabian monocle-gateway[3779]: 2021-12-19T21:30:05.287Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] { Dec 19 22:30:05 openhabian monocle-gateway[3779]: "cseq": "1", Dec 19 22:30:05 openhabian monocle-gateway[3779]: "date": "Sun, Dec 19 2021 21:30:05 GMT" Dec 19 22:30:05 openhabian monocle-gateway[3779]: } Dec 19 22:30:05 openhabian monocle-gateway[3779]: 2021-12-19T21:30:05.288Z [INFO] [RTSP PROXY] REGISTERING STREAM [Backyard/PRIMARY]; (STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082) Dec 19 22:30:05 openhabian monocle-gateway[3779]: 2021-12-19T21:30:05.294Z [DEBUG] <RTSP-PROXY> [REQUEST] --> [REGISTER] rtsp://192.168.0.150:554/ Dec 19 22:30:05 openhabian monocle-gateway[3779]: 2021-12-19T21:30:05.295Z [TRACE] <RTSP-PROXY> [REQUEST] --> [HEADERS] { Dec 19 22:30:05 openhabian monocle-gateway[3779]: "cseq": "1", Dec 19 22:30:05 openhabian monocle-gateway[3779]: "transport": "reuse_connection=0;preferred_delivery_protocol=interleaved;proxy_url_suffix=STREAM:420cdef4-61a5-4b9c-955e-aca5caa88082;username=XXXXX;password=XXXXX" Dec 19 22:30:05 openhabian monocle-gateway[3779]: } Dec 19 22:30:05 openhabian monocle-gateway[3779]: 2021-12-19T21:30:05.297Z [DEBUG] <RTSP-PROXY> [RESPONSE] <-- [200 (OK)] <cseq=1> (session=undefined) Dec 19 22:30:05 openhabian monocle-gateway[3779]: 2021-12-19T21:30:05.297Z [TRACE] <RTSP-PROXY> [RESPONSE] <-- [HEADERS] { Dec 19 22:30:05 openhabian monocle-gateway[3779]: "cseq": "1", Dec 19 22:30:05 openhabian monocle-gateway[3779]: "date": "Sun, Dec 19 2021 21:30:05 GMT" Dec 19 22:30:05 openhabian monocle-gateway[3779]: }
I looked into to it a bit more and its looks like the DNS Binging isn’t working. I pinged the FQDN that was displayed when the service was initialised and it doesn’t resolve.
The problem is that my router is fairly limited in terms of the settings available so I don’t think I can add an exception to it. If the router is locked down is there anything else I can do to allow the Alexa device to see my camera?
Thanks for any help you can provide.
-
I managed to solve this issue based on another post.
I am using the Virgin Media Hub 3 which doesn’t have any DNS Settings so I couldn’t put in an exception for the DNS Binding.
Instead I set the DNS for the ethernet port on my PC to the Google DNS 8.8.8.8 and 8.8.4.4. After a while when it had time to udpate then I was able to ping and nslookup the mproxy.io FQDN and it resolved to the IP of my machine.
Cameras are still not working but this hurdle is solved.