mDNS spoofing for Home Assistant

Hello all,

We are planning the rollout of a home assistant aided Energy Management System at 100 locations.
To aid in this we want to have a single entry for all the devices required to a clients home network.
Either by Ethernet, Wifi, or as a fallback an LTE connection.

We are using the Mikrotik hAP ax lite LTE6 for this.
We have seperated our external interfaces and internal interfaces, and opened port 8123 (homeassistant) to to the correct local ip.

This allows us to connect to home assistant when on the clients network by going to [router_ip]:8123.
However we found that client networks are constantly changing, even if we have it as one of the terms that we need a static ip.

This can be resolved by allowing mDNS broadcast packages from the internal to the external network on port 5353, this will allow us to auto discover home assistant via the app.


Yesterday after many attempts I got an mDNS package through and recieved on the other side by the command

/ip dns set mdns-repeat-ifaces=ether2,wifi1

with ether2 being the home assistant.
However this did not resolve to the correct IP, showing the internal Home Assistant ip instead of the router ip.
Today after a fresh install the command did not setup the mdns-repeater correctly anymore, so I am working on that.

However, the root issue is how the mDNS gets send through, and what I need to do to allow this auto discovery whilst keeping the rest of the networks seperated.

Following is our interface list:
Bridge ports.png
ether1 is used for the external network.
ether2 is used for the home assistant and needs connection to the internal network, internet, aswell as the above scenario.
ether 3 and 4 are used for other devices that should have access to the internet, but should be seperated from the external network.

Our bridge ports look like:
Interface list.png
The internal network uses 192.168.88.*
The external network can have multiple different configurations, we have seen the following 192.168.178.* 192.168.1.* 198.168.168.*

Our goal is to have mDNS packages that respond to homeassistant.local be recieved and resolved as the routers external ip, after which the app would connect to router_ip:8123 which is forwarded to 192.168.88.2 (static home assistant ip).

As you may realise I am a beginner in this type of configuration, any help would be appreciated.

Remco Geuze