additional_hosts and MQTT #334
Replies: 5 comments
-
additional_hosts:
- hostname: mqtt.host.com
service: http://192.168.178.10:1883 I guess the problem is that you are trying to access your mqtt service via a (cloudflare-)http proxy. Maybe this config will work (didn't check by myself) additional_hosts:
- hostname: mqtt.host.com
service: tcp://192.168.178.10:1883 You can also check the link below for all supported protocols: |
Beta Was this translation helpful? Give feedback.
-
@elcajon thanks for your input. Unfortunately changing the protocol does not solve the problem.... |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I can't think of another solution right away. Maybe someone else knows a solution. I convert the error to the discussion corner, since it is not directly a problem with the add-on. |
Beta Was this translation helpful? Give feedback.
-
As stated by me here: #330 (comment) |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? I am also needing to access the ha mqtt broker from a hass.agent client through cloudflare. It seems I can only connect hass.agent clients on the local network. |
Beta Was this translation helpful? Give feedback.
-
The problem
Thanks for this add-on, it works very well and replaced for me the use of DuckDNS + Nginx. However, I have a problem with the connection to the MQTT server that is running in home assistant. My external PC with an MQTT client written in python is unable to initiate a connection to the MQTT server (Mosquitto broker). While connecting, I see the following exception: "[Errno 101] Network is unreachable". From the external PC I can however ping the MQTT server with its hostname. On the Cloudflare zero trust page I can see that the tunnel is properly created and is "healthy". Also with two Routes (mqtt.host.com and host.com).
My current config looks as follows:
On my previous system with DuckDNS + Nginx, everything worked without problems. Could I get some tips on what I can do to connect to the MQTT server using additional_hosts?
What version of Cloudflared has the issue?
4.0.10
What was the last working version of Cloudflared?
No response
What type of installation are you running?
Other
Add-on YAML Configuration
No response
Anything in the logs that might be useful for us?
No response
Steps to reproduce the issue
Use additional_hosts and try to connect to MQTT server from external computer.
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions