[Solved] Sonos on VLANS

Started by nivek1612, December 28, 2019, 12:31:56 PM

Previous topic - Next topic
Good catch - just amended the post incase others read it later
OPNsense 24.7.* on Qotom i5-5250U with AAISP FTTP 900/120
OPNsense 24.7.* on Qotom i7-4500U with Orange FR FTTP 1000/400

Team Rebellion Member
One of Marjohns TESTERS :-)

I also configured my opnsense box for multicast streaming over VLANs some days ago. The goal was to make a DLNA server (minidlna) in one VLAN discoverable and available to clients in a different VLAN.

At first I tried using igmp-proxy. The problem is that it ignores site-local multicasting and therefore does not forward those packets upstream (see https://github.com/pali/igmpproxy/blob/d755b5b6327982434b87d631e089099dfd9a2ab4/src/igmp.c#L124).

After installing pimd it worked without having to configure anything. I tried to build the package myself but due to limited time ended up installing it from https://pkg.hardenedbsd.org/HardenedBSD/pkg/FreeBSD:11:amd64/All/pimd-2.3.2.txz.

Things to note:


  • pimd can be started with all interfaces disabled by default ("pimd -N")
  • interfaces can be enabled selectively by modifying /usr/local/etc/pimd.conf (I only enabled the VLAN interfaces I want to be able to participate in multicasting)

It would be great if pimd would be made available as an official plugin since igmp-proxy seems not to be working for inter-VLAN service discovery (SSDP / DLNA etc.).

Quote from: mimugmail on December 29, 2019, 06:28:02 AM
Can you post your config so I can build a plugin for it?


Bin the plugin for this one Michael - we've found something better. Works with Sonos and Sky Q.


https://github.com/sonicsnes/udp-broadcast-relay-redux


I'm going to attempt to create a plugin, might take me a while and I'll probably be asking for help.  :)
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Yes confirmed this one allows both Sonos and SkyQ to work together which PIMD didn't seem to handle
OPNsense 24.7.* on Qotom i5-5250U with AAISP FTTP 900/120
OPNsense 24.7.* on Qotom i7-4500U with Orange FR FTTP 1000/400

Team Rebellion Member
One of Marjohns TESTERS :-)

Wow, I am playing with this for the last few weeks as well. All inputs and possible plugins are very much appreciated! :)

January 07, 2020, 10:36:28 AM #20 Last Edit: January 07, 2020, 10:38:00 AM by marjohn56
It's very easy to set up. If you pull down that repo, compile it. There are instructions on how to install it and where to put the .conf and .sh files. We didn't take that path, just compiled it and dropped it into /usr/sbin, then we used Monit to fire it up and keep it going. Works very well.


If you get stuck, shout, and I'll post the way we did it.



OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Hmm. You Guys lost me now.
I am running IGMP proxy at the moment for Deutsche Telekom Magenta TV which works well. I assumed I cannot run PIMD in parallel. Not sure if udp-broadcast-relay-redux can. Would it be cable to handle all multicast relaying that the IGMP proxy currently does?

thanks!
System1: Qotom Q310G4 (died recently)
System1: Supermicro A2SDi-4C-HLN4F,  64GB RAM, ZFS mirrored boot drive
System2: APU2C4

Only one way to find out....try it.


We used it because of the TTL=1 issue. When installed Nivek1612 found he no longer needed PIMD for his Sonos.


Here's a little excerpt from the doc that's in the archive.


QuoteHowever, the udp-broadcast-relay-redux tool allows arbitrary relaying of UDP packets between interfaces, and this helps to solve the problem.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

could someone please share a binary of it? I don't have a compiler on my firewall. TIA!
System1: Qotom Q310G4 (died recently)
System1: Supermicro A2SDi-4C-HLN4F,  64GB RAM, ZFS mirrored boot drive
System2: APU2C4

January 07, 2020, 11:27:33 PM #24 Last Edit: January 21, 2020, 11:31:54 PM by marjohn56
Here you go. There's an .md file in there that explains how to install it on pfSense. As I said we installed it using Monit, either way is good.


Attachment removed as a plugin is now available for testing. PM me if you want to try it.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

@skywalker007

I can't say if this will work at the same time as IGMPproxy because I haven't tried it

But when I tried to run PIMD and IGMPProxy at the same time PIMD complained
When I tried udp-broadcast-relay-redux with PIMD it worked so my suspicion is udp-broadcast-relay-redux will work with IGMPproxy

But only one way to really know :-)
OPNsense 24.7.* on Qotom i5-5250U with AAISP FTTP 900/120
OPNsense 24.7.* on Qotom i7-4500U with Orange FR FTTP 1000/400

Team Rebellion Member
One of Marjohns TESTERS :-)

Thanks. I have to test that at the weekend. Will reply back with results.
System1: Qotom Q310G4 (died recently)
System1: Supermicro A2SDi-4C-HLN4F,  64GB RAM, ZFS mirrored boot drive
System2: APU2C4

I've re-compiled it with a more sensible name and fixed the rc.d file which was badly formatted and Opnsense hated.


I'll re-post the archive tomorrow with full instructions on how and where to install the required bits and how to keep it ticking over using Monit.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Quote from: marjohn56 on January 09, 2020, 11:14:26 PM
I've re-compiled it with a more sensible name and fixed the rc.d file which was badly formatted and Opnsense hated.


I'll re-post the archive tomorrow with full instructions on how and where to install the required bits and how to keep it ticking over using Monit.
Cool. Looking forward to it! Thanks!


Gesendet von iPad mit Tapatalk
System1: Qotom Q310G4 (died recently)
System1: Supermicro A2SDi-4C-HLN4F,  64GB RAM, ZFS mirrored boot drive
System2: APU2C4

January 10, 2020, 12:32:41 PM #29 Last Edit: January 21, 2020, 11:33:21 PM by marjohn56

OK, here we go...

The archive contains all you need and a docx file ( sorry using windoze ).

Good luck.


Archive removed. Plugin in beta. PM me if you want to test
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member