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

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

General pfSense Questions
55
250
134.0k
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.
  • Q
    Qinn @denix
    last edited by Mar 20, 2019, 6:54 PM

    @denix I will try to look into it this weekend, btw the tagging should not matter, tagging is only there in the trunk and when it leaves the subnet, so LAN or VLAN should not matter.
    I don't know why you used "enable" in the config file, as by default all interfaces are enabled and as you can see in my config I disabled all but the subnet that holds the Sonos speakers and the other subnet that holds the Sonos applications.

    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
    • D
      denix
      last edited by Mar 29, 2019, 12:18 AM

      @Qinn how do you have your Sonos speakers connected to the network? Do you use Bridge or Boost? Do you connect them Wirelessly or with Ethernet cable?

      Q 1 Reply Last reply Mar 29, 2019, 9:39 AM Reply Quote 0
      • Q
        Qinn @denix
        last edited by Qinn Mar 29, 2019, 12:29 PM Mar 29, 2019, 9:39 AM

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

        @Qinn how do you have your Sonos speakers connected to the network? Do you use Bridge or Boost? Do you connect them Wirelessly or with Ethernet cable?

        Neither all Sonos devices connect to a AP, so by WiFi and there is no bridge or boost from Sonos. In total there are 3 Sonos Play:1, 1 Play:3 and a Sonos Connect:AMP. On this AP there are 5 SSIDs's each with it's own VLAN ID (so isolation) IP's are (as it is a AP) assigned by the DHCP server from pfSense.

        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
        • D
          denix
          last edited by Mar 31, 2019, 4:41 AM

          @Qinn did you have to re-pair Sonos and the controller once you got your network and pfSense setup?

          Nothing seems to work on my end. Unfortunately I don't have WiFi that can do VLAN, so isolation is done on a switch. WiFi connects to one of the ports that gets tagged, so everything wireless goes to that VLAN. I had most of my Sonos speakers wired, so once I isolated their ports to another VLAN, they dutifully got new IPs from pfSense's DHCP server for that segment. Running PIMD between those VLAN segments and the controller doesn't see the speakers.

          I even ended up resetting the controller, and one of the spare Sonos:1 speakers. I paired them up, but the speaker got onto the the WiFi SSID and the same VLAN as the controller. That works, but the speaker now sits on the WiFi VLAN and refuses to connect with a cable to go into own dedicated VLAN... Tried pairing a Bridge, but since it's wired, it can never get detected by the controller, since they are in separate VLANs. PIMD doesn't seem to help a bit.

          Can't get it to work, no matter what I try. Any help would be greatly appreciated! Thanks.

          Q R 2 Replies Last reply Mar 31, 2019, 3:10 PM Reply Quote 0
          • Q
            Qinn @denix
            last edited by Mar 31, 2019, 3:10 PM

            @denix Could you draw the setup of your network?

            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
            • R
              Rai80 @denix
              last edited by Apr 1, 2019, 7:59 PM

              @denix Did you enable the "Allow packets with IP options to pass. Otherwise they are blocked by default. This is usually only seen with multicast traffic" rule in the advanced options in your Firewall rules?

              1 Reply Last reply Reply Quote 3
              • D
                denix
                last edited by Apr 1, 2019, 10:57 PM

                @Rai80 bingo!

                That was it. Once I enabled that option in Firewall Rules for each VLAN segment configured in PIMD, I started seeing a lot more traffic in PIMD debug.

                One more thing - all the above works with existing setup. Creating new Sonos network or adding new speakers doesn't work, as I read somewhere that pressing Play/Pause and Volume+ buttons doesn't get propagated between segments over multicast.

                Since I already reset the controller, I needed one more step: I brought up a temporary WiFi SSID on the same VLAN as Sonos speakers, connect my Android phone to that WiFi and setup the Controller. After that, moving it back to the main WiFi SSID works and it still sees and controls speakers on a separate VLAN with PIMD running.

                Now I'm happy. Thanks everyone for all the help!

                PS. Would be nice to figure out how to setup new Sonos speakers w/o using the temporary SSID...

                1 Reply Last reply Reply Quote 1
                • Q
                  Qinn
                  last edited by Qinn May 10, 2019, 4:04 PM Apr 2, 2019, 10:11 AM

                  Nice that it works, but then I have to adapt the how to, as I explicitly mentioned that "allow IP options" was not needed and I can confirm that here I don't need to allow it, but my Sonos applications are not running on Andriod. Well, personally I don't understand why this is needed be that as it may, but the proof is in the pudding.

                  I added a second note to file.

                  Note 2: below is reported that on Android devices "Allow IP options" in the Advanced Options of the firewall rules is needed to enable to make it work, so if you don't have success, please try to enable it.

                  @denix now that it is working, can you confirm that when you quit PIMD, you can still connect to the Sonos speakers?

                  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
                  • D
                    denix
                    last edited by Apr 3, 2019, 9:27 PM

                    @Qinn yes, seems to be still working w/o PIMD running.

                    I also need to lock down the firewall between VLANs - currently I have those completely open to each other. Need to close and punch holes according to this list:
                    https://support.sonos.com/s/article/688

                    TCP/IP:
                    80 (Internet Radio, updates and registration)
                    443 (Rhapsody, Napster, and SiriusXM)
                    445 (CIFS)
                    3400 (incoming UPnP events - Sonos Controller App for Mac or PC)
                    3401 (Sonos Controller App for iOS)
                    3445 (OS X / Windows File Sharing)
                    3500 (Sonos Controller App for Android)
                    4070 (Spotify incoming events)
                    4444 (Sonos update process)

                    UDP:
                    136-139 (NetBIOS)
                    1900 (UPnP events and device detection)
                    1901 (UPnP responses)
                    2869, 10243, 10280-10284 (Windows Media Player NSS)
                    5353 (Spotify Control)
                    6969 (Initial configuration)

                    Q 1 Reply Last reply Apr 4, 2019, 1:02 PM Reply Quote 0
                    • Q
                      Qinn @denix
                      last edited by Qinn Apr 4, 2019, 4:24 PM Apr 4, 2019, 1:02 PM

                      @denix That was my conclusion also, thanks you have tested it, it seems that the applications save the addresses of the Sonos speaker for unicast, it's been 3 months that PIMD has been running and I can still access the speakers.

                      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
                      • P
                        pr3dict
                        last edited by Apr 5, 2019, 9:48 PM

                        I'm at a loss... I think my issue is related to the TTL being set as 1 coming from the device sending the SSPD multicast. PIMD is setup exactly how you have it above and I'm still not seeing the traffic get through.

                        Does anyone know if there is a way to change the TTL for this type of traffic?

                        Q JKnottJ 2 Replies Last reply Apr 6, 2019, 8:04 AM Reply Quote 0
                        • Q
                          Qinn @pr3dict
                          last edited by Apr 6, 2019, 8:04 AM

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

                          I'm at a loss... I think my issue is related to the TTL being set as 1 coming from the device sending the SSPD multicast. PIMD is setup exactly how you have it above and I'm still not seeing the traffic get through.

                          Does anyone know if there is a way to change the TTL for this type of traffic?

                          Why do think this and what does a debug or log show?

                          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
                          • C
                            chewsie
                            last edited by Apr 21, 2019, 12:59 PM

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • A
                              alexbond93
                              last edited by May 10, 2019, 8:52 AM

                              I tried to follow your guide (which is very clear and detailed), but I can't get it to work (not seeing any traffic).

                              Do you think it could be related to this https://forum.netgate.com/topic/140596/multicast-routing (TL;DR No IPv4 MROUTING kernel support.)?

                              Q 1 Reply Last reply May 10, 2019, 3:53 PM Reply Quote 0
                              • Q
                                Qinn @alexbond93
                                last edited by Qinn May 10, 2019, 4:07 PM May 10, 2019, 3:53 PM

                                @alexbond93 can you see pimd is running and config it so that, the interfaces carreing the vlan's containing speakers and the one containing Sonos software, are not disabled? Btw did you take a look at the remark @denix Apr 2, 2019, 12:57 AM I personally not needed it, but it seems to help him?

                                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
                                • S
                                  spaceboy
                                  last edited by Jun 9, 2019, 1:54 PM

                                  unfortunately i couldn't get this to work. from my pfsense i have a wired vlan to a wireless AP to which all IOT including Sonos speakers are attached. main LAN VLAN goes to a unifi edgeswitch and then onto all other devices either wired or through another wireless AP.

                                  i got pimd installed and configured it just to disable the WAN interface. i could see pimd in top but couldnt ever get the Sonos speakers to show up in the Sonos app on a pc on LAN.

                                  i didn't set anything related to ip settings on the firewall rules as suggested. my guess is its something in the edge switch blocking it but i've given up for now. hopefully Sonos fix this in a future update

                                  1 Reply Last reply Reply Quote 0
                                  • JKnottJ
                                    JKnott @pr3dict
                                    last edited by Jun 9, 2019, 2:36 PM

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

                                    m at a loss... I think my issue is related to the TTL being set as 1 coming from the device sending the SSPD multicast. PIMD is setup exactly how you have it above and I'm still not seeing the traffic get through.

                                    If TTL is set to 1 it's because the packet is not intended to be routed. This is often the case with multicast. So, when that packet tries to go through a router, the TTL will decrement to 0 and the packet discarded.

                                    PfSense running on Qotom mini PC
                                    i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                    UniFi AC-Lite access point

                                    I haven't lost my mind. It's around here...somewhere...

                                    1 Reply Last reply Reply Quote 0
                                    • chpalmerC
                                      chpalmer
                                      last edited by Jul 12, 2019, 5:45 PM

                                      Thanks for the work here everyone!

                                      I have a couple of cases where I need to traverse multiple routers with multicast. There might be a way to use pfsense for this after all. Right now its Cisco.

                                      Think simulcast audio. https://www.gatesair.com/products/transport/public-safety-govt-communications

                                      There are at least a couple other systems in the radio world that utilize multicast across subnets to distribute ROIP.

                                      Q chpalmerC 2 Replies Last reply Jul 13, 2019, 9:07 AM Reply Quote 0
                                      • Q
                                        Qinn @chpalmer
                                        last edited by Qinn Jul 13, 2019, 12:06 PM Jul 13, 2019, 9:07 AM

                                        @chpalmer Nice that you appreciate this thread, I hope it helps many, but I don't understand what's your question. The main thing here is, that I have seen, using Wireshark that the default IGMP proxy pfSense uses, does not traverse Multicast 239.255.255.250 (SSPD) across subnets and PIMD does, so it is a more reliable when you want to "spread" local multicast over subnets/VLAN's, when it's multicast that comes from internet I think the IGMP proxy, that's by default present in pfSense it will suffice.

                                        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

                                        chpalmerC 1 Reply Last reply Jul 13, 2019, 4:43 PM Reply Quote 0
                                        • chpalmerC
                                          chpalmer @chpalmer
                                          last edited by Jul 13, 2019, 4:42 PM

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