How to resolve mDNS across VLANs with Avahi?

How to resolve mDNS across VLANs with Avahi?

To test it, ensure your Fedora computer is configured for mDNS and can resolve yourself. Now, try and ping a device in your untrusted network. For me, this will be study.local which is one of my home automation devices in my study (funnily enough).

How to set up Avahi on OpenWrt router?

Log onto your OpenWRT router and install Avahi. There is really only one thing that must be set in the /etc/avahi/avahi-daemon.conf config file, and that is to enable reflector (proxy) support. This goes under the [reflector] section and looks like this. While technically not required, you can also set which interfaces to listen on.

Where do I find Avahi on my router?

Your LAN is probably the same, but your other networks will most likely be different. You can find these in your router’s Luci web interface under Network -> Interfaces. The interfaces option goes under the [server] section and looks like this. Now we can start and enable dbus and the Avahi service!

How to use your preferred DNS resolver instead of localhost?

In order to make the system use your preferred DNS resolver instead of localhost, you change the symlink to point to /run/systemd/resolve/resolv.conf instead of /run/systemd/resolve/stub-resolv.conf : Immediately after this, resolution of .local started working. No need to reboot or restart any service.

Is there a proxy for Avahi on OpenWrt?

There are a few different options for a proxy, such as igmpproxy, but i prefer to use the standard Avahi server on my OpenWRT router. Keep in mind that doing this will also mean that any device in your untrusted networks will be able to send mDNS requests into your trusted networks.

Can a LAN access everything in a ha network?

My LAN can access everything in my HA network, but generally only establish related TCP traffic is allowed back from HA to LAN. There are some exceptions though, for example my Pi-hole DNS servers which are accessible from all networks, but otherwise that’s the general setup.