DLNA server don't working on Linux bridge

I was experiencing recurring problems of my DLNA server disappearing from the network. The cause of it was that my network card is configured in a bridge, and the multicast snooping feature wasn’t playing well with DLNA.

To disable the multicast snooping, I’ve created the file /etc/rc.d/rc.local:

#!/bin/bash
echo 0 > /sys/devices/virtual/net/br0/bridge/multicast_snooping

Don’t forget to make it executable. Systemd will run it in every boot.

Set the wifi regulatory domain

You can configure your country’s regulatory domain, creating the file /etc/modprobe.d/cfg80211.conf with this content:

options cfg80211 ieee80211_regdom=ES

Don’t forget to change ES with your country code.