OPNsense Forum

English Forums => General Discussion => Topic started by: Boo on April 06, 2020, 10:00:33 pm

Title: Sonos across multiple subnets
Post by: Boo on April 06, 2020, 10:00:33 pm
Hi,

I am having some issues getting Sonos working across two subnets (LAN and Media) and I'm hoping that someone will be able to help.

The Sonos app uses multicast SSDP from an ephemeral port to 239.255.255.250:1900 to discover Sonos players in the same subnet. The response from the Sonos player is then sent back to the client on the original port from a new ephemeral port (one per player). I have attached a screenshot from Wireshark to show this where 192.168.10.51 is a client on my LAN and 192.168.20.101 & .102 are Sonos players my media subnet. For info the capture is taken from the firewall interface on the media subnet.

(http://pcap.png)

Currently I am using the UDP Broadcast Relay plugin (in development on the this forum) to relay the multicast SSDP packets from LAN to Media. As each Sonos replies from an ephemeral port I cant see a good way to allow the response back to my LAN. Other threads I have read on this issue seem to suggest that the players reply from port 1901 however this doesn’t seem to be the case for me.

I feel like I am missing something obvious here and would appreciate any help you can offer.

Thanks
Title: Re: Sonos across multiple subnets
Post by: JasMan on July 31, 2020, 10:41:31 pm
I'm having the same network setup as you. You need to allow the UDP responses from the Sonos devices for ports 40000-60000.

This is my "UDP Broadcast Relay" configuration
udp_vars="--id 1 --port 1900 --dev [INTERFACE_LAN] --dev [INTERFACE_IOT] --multicast 239.255.255.250"

This is my firewall ruleset to allow the communication between the Sonos app and the devices

From Sonos app to Sonos devices
TCP/1400, 1443

From Sonos devices to Sonos app
TCP/3400, 3401, 3500
TCP/4444
UDP/40000-60000