Your office just got some new speakers, but you can’t get the Windows app to talk to it?

This serves as a dual guide, firstly on how to create and deploy firewall rules using Intune, and secondly how to make that Sonos speaker work!

Not Connected

The first annoying thing you’ll see when trying to use Sonos on Windows is this message. You’ll see this if you’ve set “Allow local policy merge” to False. This means Intune is the source of truth for firewall rules and the locally created rule by the Sonos installer is ignored.

Here are those inbound rules:

Using Intune to create Firewall rules

In Endpoint Security –> Firewall –> Create a profile with type: Windows Firewall Rules

I give my general profile a name, then I begin to create the rules within the profile:

  • Sonos Controller TCP
  • Sonos Controller UDP
  • Sonos Library Service

I worked backwards from what I could see locally set on the device, so the first two rules look identical other than the protocol numbers, 6 and 17.

Setting NameValue
EnabledEnabled
Interface TypesWireless, Lan
File PathC:\Program Files (x86)\SonosV2\Sonos.exe
Edge TraversalDisabled
Network TypesFW_PROFILE_TYPE_DOMAIN, FW_PROFILE_TYPE_PRIVATE, FW_PROFILE_TYPE_PUBLIC
DirectionThe rule applies to inbound traffic
Protocol6 (and 17 on your other rule)
Example of the settings being configured

For the Sonos Library Service rule:

Setting NameValue
EnabledEnabled
Interface TypesWAN, Lan
Network TypesFW_PROFILE_TYPE_DOMAIN, FW_PROFILE_TYPE_PRIVATE, FW_PROFILE_TYPE_PUBLIC
DirectionThe rule applies to inbound traffic
Local Port Ranges3445
Remote Address RangesLocalSubnet <– Enter in box like that
Protocol17

My rules ended up looking like this:

I applied it to my target devices and waited… and after rebooting:

You can check your Intune deployed rules on the device under Monitoring –> Firewall: