mDNS for multiple VLANs not routed by pfSense
-
I have a L3 switch that is handling most of the routing in my homelab environment. I have a dedicated VLAN for IoT devices, however if I put devices, for example, Google Home into that VLAN, then I lose the ability to cast to them. The VLANs that are routed by the L3 switch are configured as static routes on my pfSense and is accessible inbetween. My understanding is that Avahi can be leveraged to proxy mDNS. My question is how exactly can I configure it so that it can handle discovery across multiple VLANs terminated on the L3?
-
@eroji if you want traffic to break the L2 barrier you would have to do that on your switch.. Avahi can only rebroadcast that traffic when its seen by pfsense.
You could prob do it with multicast routing - but that feature is normally not part of small business sort of switches, what switch do you have exactly?
Your only other option would be put something that has legs in your different vlans and run say avahi on it.. And let it do the rebroadcasting of the multicast.
Other option would be to remove the L3 routing at your switch and let pfsense do it - then pfsense would see the multicast from all the vlans and be able to leverage avahi to rebroadcast the mdns traffic.
-
I was able to get around it by creating a VM with multiple interfaces on each of the VLANs and running mdns-repeater as a service on top of the NICs.
-
@eroji glad you found your solution..