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

    Sonos speakers and applications on different subnets (VLAN's)

    Scheduled Pinned Locked Moved General pfSense Questions
    250 Posts 55 Posters 157.6k 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.
    • F
      firedemon
      last edited by

      Hey Qinn,
      I am trying to accomplish the same thing as detailed here
      https://forums.lawrencesystems.com/t/inter-vlan-routing-multicast-help-pfsense-igmp-proxy-sonos/540/7
      Did you get this working successfully ?

      QinnQ 1 Reply Last reply Reply Quote 0
      • QinnQ
        Qinn @firedemon
        last edited by Qinn

        @thewitten Yes, it does work. IGMPproxy and Avahi did not, as they don't seem to traverse the 239.255.255.250 (SSDP) across the VLAN's. So follow my "guide" above to get it working, from the tumbs up it seems that others have tried it successfully.

        Now (time is a challenge at current) I am fine-tuning the firewall rules for the ports needed, as the current rules suggested in the guide above, are not much of security.

        Cheers Qinn

        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
        Firmware: Latest-stable-pfSense CE (amd64)
        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

        1 Reply Last reply Reply Quote 0
        • V
          vacquah
          last edited by

          @qinn said in Sonos speakers and applications on different subnets (VLAN's):

          I am fine-tuning the firewall rules for the ports needed, as the current rules suggested in the guide above, are not much of security.

          Hi Qinn

          Thanks for the detailed writeup and pointing me to this. So pimd replaces the need to have Avahi and igmpproxy? How stable is pimd daemon? Waiting to see what final rules you come up with for your vlans then I'd take a stab as well.

          QinnQ 1 Reply Last reply Reply Quote 0
          • QinnQ
            Qinn @vacquah
            last edited by Qinn

            @vacquah said in Sonos speakers and applications on different subnets (VLAN's):

            @qinn said in Sonos speakers and applications on different subnets (VLAN's):

            I am fine-tuning the firewall rules for the ports needed, as the current rules suggested in the guide above, are not much of security.

            Hi Qinn

            Thanks for the detailed writeup and pointing me to this. So pimd replaces the need to have Avahi and igmpproxy? How stable is pimd daemon? Waiting to see what final rules you come up with for your vlans then I'd take a stab as well.

            Well, I have not replaced them. In my setup IGMPproxy is not running, but Avahi is. Avahi is used here to let iOS devices, that are in several VLAN's, to access the one VLAN that contains all printers. So Avahi is used to traverse Apples "Bonjour" service over these VLAN's to make printing possible to iPad's and iPhones that are on different VLAN's than were the bonjour printers are.

            The beauty with the PIM deamon/iOS is that once the Sonos applications (iPad and iPhones) have located the Sonos speakers they "remember" there IP's, so somehow.
            IP's addresses seem to be saved or stored by the Sonos applications (I can't check it, as the Sonos applications are closed source). But it's been 2 weeks since I have been running the PIM daemon (once and quit it) and I can still access the Sonos speakers from a different VLAN.

            So practically I have started the PIM daemon only once, then waited for the applications (that are in a different VLAN then the Sonos speakers) to get access to the speakers (all Sonos speakers are in one VLAN) and then quit the PIM daemon (as described in my guide above).

            Only running PIMD once and then quiting it minimizes the theoretical risk of running an package that has not been tested by the pfSense developers.

            Cheers Qinn

            Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
            Firmware: Latest-stable-pfSense CE (amd64)
            Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

            QinnQ 1 Reply Last reply Reply Quote 1
            • QinnQ
              Qinn @Qinn
              last edited by Qinn

              On the subject of security, my preliminary investigation suggests the following:

              To let the Sonos speakers access the Sonos applications (iPad and iPhones), they need to be able to access the VLAN that holds the Sonos applications on UDP port 1901 and TCP ports 3400 and 3401.

              To let the Sonos applications access the Sonos speakers they need to be able to access the VLAN that holds the Sonos speakers on TCP/UDP ports 1400 and 1443

              It's is of course best practice to create these rules only for the ip's of Sonos speakers and the Sonos devices that hold the Sonos applications.

              Sorry, time is a challenge at the moment, but in time I will place a detailed rule set.

              Cheers Qinn

              Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
              Firmware: Latest-stable-pfSense CE (amd64)
              Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

              1 Reply Last reply Reply Quote 0
              • QinnQ
                Qinn
                last edited by Qinn

                Btw to anyone, if you are happy with my guide and it helped you, maybe also vote on the thread below and add a comment, maybe the pfSense developers might consider to add the PIMD package to pfSense....

                https://forum.netgate.com/topic/139352/pimd-a-lightweight-standalone-pim-sm-ssm-v2-multicast-routing-daemon

                Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                Firmware: Latest-stable-pfSense CE (amd64)
                Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                1 Reply Last reply Reply Quote 0
                • V
                  vacquah
                  last edited by

                  @qinn said in Sonos speakers and applications on different subnets (VLAN's):

                  Btw to anyone, if you are happy with my guide and it helped you, maybe also vote on the thread below and add a comment, maybe the pfSense developers might consider to add the PIMD package to pfSense....
                  https://forum.netgate.com/topic/139352/pimd-a-lightweight-standalone-pim-sm-ssm-v2-multicast-routing-daemon

                  @Qinn See comment by @jimp in this thread:

                  https://forum.netgate.com/topic/99211/multicast-with-pfsense

                  QinnQ 1 Reply Last reply Reply Quote 0
                  • QinnQ
                    Qinn @vacquah
                    last edited by Qinn

                    @vacquah said in Sonos speakers and applications on different subnets (VLAN's):

                    @qinn said in Sonos speakers and applications on different subnets (VLAN's):

                    Btw to anyone, if you are happy with my guide and it helped you, maybe also vote on the thread below and add a comment, maybe the pfSense developers might consider to add the PIMD package to pfSense....
                    https://forum.netgate.com/topic/139352/pimd-a-lightweight-standalone-pim-sm-ssm-v2-multicast-routing-daemon

                    @Qinn See comment by @jimp in this thread:

                    https://forum.netgate.com/topic/99211/multicast-with-pfsense

                    Thanks for pointing that one out to me, I was aware, but I thought it was useless to reply on a thread that old and at that time there were (as memory serves) more issues with IGMP proxy https://redmine.pfsense.org/issues/6099
                    btw did you got it working on your Sonos setup?

                    Cheers Qinn

                    Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                    Firmware: Latest-stable-pfSense CE (amd64)
                    Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                    1 Reply Last reply Reply Quote 0
                    • BullB
                      Bull
                      last edited by

                      Hi Qinn I'll try to using your guide with pim to configure a similar problem in my network with google devices and Logitech Media server, I hope that this works.

                      Thanks.
                      Bull

                      QinnQ 2 Replies Last reply Reply Quote 0
                      • QinnQ
                        Qinn @Bull
                        last edited by Qinn

                        @bull said in Sonos speakers and applications on different subnets (VLAN's):

                        Hi Qinn I'll try to using your guide with pim to configure a similar problem in my network with google devices and Logitech Media server, I hope that this works.

                        Thanks.
                        Bull

                        did it work?

                        Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                        Firmware: Latest-stable-pfSense CE (amd64)
                        Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                        BullB 1 Reply Last reply Reply Quote 1
                        • BullB
                          Bull @Qinn
                          last edited by

                          @qinn No, at the moment I don't have any positive results, it's quite frustrating, I don't know if I have a problem with netgear GS110TP switches or with pfsense I have it configured in a vmware environment with vlan(4096) and this may be blocking multicast to the router in vmware. I don't know how to continue I'm absolutely blocked, I've been trying and testing for a couple of weeks and starting over.

                          I need a rest, think so.

                          T 1 Reply Last reply Reply Quote 0
                          • T
                            tim.mcmanus @Bull
                            last edited by

                            @bull said in Sonos speakers and applications on different subnets (VLAN's):

                            @qinn No, at the moment I don't have any positive results, it's quite frustrating, I don't know if I have a problem with netgear GS110TP switches or with pfsense I have it configured in a vmware environment with vlan(4096) and this may be blocking multicast to the router in vmware. I don't know how to continue I'm absolutely blocked, I've been trying and testing for a couple of weeks and starting over.

                            I need a rest, think so.

                            Did you turn the port to "promiscuous mode" in VMware for pfSense? That bit me in the butt once, a lesson I will not forget.

                            QinnQ BullB 2 Replies Last reply Reply Quote 0
                            • QinnQ
                              Qinn @tim.mcmanus
                              last edited by

                              @tim-mcmanus In my setup(s) I do not use VMware at the moment, so I cannot advise. In theory the switch should not play a part, when it is in the private (RFC1918) subnet(s) and pfSense is controlling these subnets. So IGMP snooping should not be needed, the IGMP proxy or PIMD should do that part.
                              Have you checked what multicast is send (wireshark)? That's how I analyzed that 239.255.255.0 was used by Sonos and that native IGMP proxy used by pfSense did not traversed it over the subnets.

                              Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                              Firmware: Latest-stable-pfSense CE (amd64)
                              Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                              1 Reply Last reply Reply Quote 0
                              • BullB
                                Bull @tim.mcmanus
                                last edited by

                                @tim-mcmanus yes, promiscuous mode is enable on vmware NIC, anyway I haven't problems with unicast, I can ping and have conectivity across vlans inside and outside of the vmware. So I don't understand were the multicast cannot be routed

                                1 Reply Last reply Reply Quote 0
                                • BullB
                                  Bull
                                  last edited by

                                  @qinn thank you, I'll try to disable IGMP on these switches later on, I let you know if it's work.

                                  1 Reply Last reply Reply Quote 0
                                  • QinnQ
                                    Qinn @Bull
                                    last edited by

                                    @bull said in Sonos speakers and applications on different subnets (VLAN's):

                                    Hi Qinn I'll try to using your guide with pim to configure a similar problem in my network with google devices and Logitech Media server, I hope that this works.

                                    Thanks.
                                    Bull

                                    Btw could you give a description of your setup?

                                    Hardeware: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz 102 GB mSATA SSD (ZFS)
                                    Firmware: Latest-stable-pfSense CE (amd64)
                                    Packages: pfBlockerNG devel-beta (beta tester) - Avahi - Notes - Ntopng - PIMD/udpbroadcastrelay - Service Watchdog - System Patches

                                    BullB 1 Reply Last reply Reply Quote 0
                                    • BullB
                                      Bull @Qinn
                                      last edited by

                                      @qinn said in Sonos speakers and applications on different subnets (VLAN's):

                                      Btw could you give a description of your setup?

                                      I have a ISP router on bridge mode conecting directly to a vmware nic (MODEM LAN 192.168.0.1/24) this interface works as PPPOE and route to modem network. (EM1)

                                      the other nic i have created to vnic both in vlan 4095, the first one EM0 is de MGMT Lan (192.168.1.1/24) and the other vnic EM2 is configured as vlan 4095 and I've been created 5 port in the following tagged Vlan (10,20,30,40 and 50) from 192.168.10 to 50.1 subnet.

                                      this nic is connected to a Netgear GPT110PT in port 6 vlan 10,20,30,40,50 as tagged an 1 untagged, I have a LAGG vlan 20 too connected to a NAS. from this switch is connected another one in port 1 vlan 10,20,30,40,50 as tagged an 1 untagged to port 8.

                                      In port 5 from this second switch, I have a Ubiquiti AP with some wifi ssid configured with vlans 30,40,50, this port also configured with vlans as 10,20,30,40,50 as tagged an 1 untagged

                                      both swicthes have IGMP Snooping enabled, configured IGMP vlan configuration for vlan 1,30,50 (testing at the moment) with querier enable and queriers enable and configured with vlan 1,30 and 50 pointing to each router ip subnet address 1,1 for vlan 1 30.1 for vlan 30...

                                      May be this is a little confuse without a diagram but I don't have any software to have a grafical view of my network.

                                      Many thanks
                                      Bull

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

                                        @bull said in Sonos speakers and applications on different subnets (VLAN's):

                                        I don't have any software to have a grafical view of my network.

                                        There is plenty of free software or even just websites that would allow you to draw your network.
                                        Here are 2 you can do it in pure ascii
                                        https://textik.com/
                                        http://asciiflow.com/

                                        Here is decent one
                                        https://www.gliffy.com/
                                        another
                                        https://creately.com/lp/network-diagram-software-online

                                        Actual download software
                                        https://www.yworks.com/products/yed
                                        http://dia-installer.de/

                                        Lets not forget the office type apps that are free, openoffice, LibreOffice that have drawing - even google draw ;)

                                        Or you take out a crayon and and a napkin and then snap a photo of it with your phone!

                                        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

                                        BullB 1 Reply Last reply Reply Quote 0
                                        • BullB
                                          Bull @johnpoz
                                          last edited by

                                          @johnpoz said in Sonos speakers and applications on different subnets (VLAN's):

                                          Or you take out a crayon and and a napkin and then snap a photo of it with your phone!

                                          Thanks for the suggestions, I tried to do the best I know.

                                          0_1550144503866_mynetwork.JPGW

                                          1 Reply Last reply Reply Quote 0
                                          • BullB
                                            Bull
                                            last edited by

                                            Disable IGMP Snooping on physical Switches didn't change anything.

                                            Is possible that the problem is that I'm using default vlan 1 as default router ip network and this vlan don't work as spected with multicasting?

                                            I think so from vmware point of view the configuration of the vnic on vlan 4095 is correct.

                                            many thanks
                                            Bull

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