Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    mDNS for multiple VLANs not routed by pfSense

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    4 Posts 2 Posters 646 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      eroji
      last edited by

      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?

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @eroji
        last edited by johnpoz

        @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.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • E
          eroji
          last edited by

          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.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @eroji
            last edited by

            @eroji glad you found your solution..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.