OwnTracks MQTT - Port forwarding?

Hi

I just wanted to hear how your are setting up you owntracks configuration?

Are you port-forwarding both for HASS and MQTT to get OwnTracks to work from outside, or are you using a combination of CloudMQTT and a local MQTT server?

  • Stefan
1 Like

Hi Stefan,

I currently have 2 port forwards setup on my Gateway:

  • port 1883 to port 1883 on the IP-address of my RPI3 (on which HASS and Mosquitto server are running)
  • port XXXX to port 8123 on the IP-address of my RPI3 (in case you want to be able to access HASS from outside your home using a non-public/non-documented port#)

I’m not using MQTT cloud, since I want to keep all my home automation stuff/signals within my house.

I use cloudMQTT and I only have ports 80 and 8123 opened. But I think HA reaches out to cloudMQTT and picks up data so I don’t think any port forwarding is needed. I could be wrong there.

Do you setup some kind of security on the MQTT external port?

I just set up Owntracks and CloudMQTT with a local broker. I live behind a hardware firewall and only access HA from my VPN server but I did not have to punch any holes in the firewall or port forwardl to make the broker > cloudmqtt work. It just works.

1 Like