UDP Broadcast Relay not starting when a WireGuard-Interface is selected

Started by oli, February 06, 2023, 10:05:53 PM

Previous topic - Next topic
Hi together.

With OpnSense 22.7 running "UDP Broadcast Relay" worked well to 'join' three of my networks for Sonos' Speakers discovery:
- igb0
- ath0_wlan1
- wg0

With OpnSense 23.1, the relay does not start any more with this error in /var/log/system/latest.log:
<13>1 2023-02-06T22:01:18+01:00 OPNsense.box root 41059 - [meta sequenceId="5"] /usr/local/etc/rc.d/os-udpbroadcastrelay: WARNING: failed to start osudpbroadcastrelay

Digging into deep: Command-line is
/usr/local/sbin/udpbroadcastrelay --id 1 --dev igb0 --dev wg0 --dev ath0_wlan1 --port 1900 --multicast 239.255.255.250 -f

Trying to start manually from shell with debug enabled gives better hint to the problem:
root@OPNsense:~ # /usr/local/sbin/udpbroadcastrelay --id 1 --dev igb0 --dev wg0 --dev ath0_wlan1 --port 1900 --multicast 239.255.255.250 -d
ID set to 1
Port set to 1900
ID: 1 (DSCP: 1, ToS: 0x04), Port 1900
igb0: 1 / 192.168.1.1 / 192.168.1.255
ioctl(SIOCGIFBRDADDR): Invalid argument


Problem "ioctl(SIOCGIFBRDADDR): Invalid argument" disappears when "wg0" is no more in the list of to-be-connected interfaces (i.e connecting only igb0 and ath0_wlan1 works fine)

Can someone confirm this problem - and any hints?
Thx in advance.

I can confirm this, first I was confused, what was triggering it, but your hint regarding wireguard answered it for me. But I need some WG interfaces to be part of it as well, as I had before the update; so I guess this requires an issue for a bugfix on github then?
Running OPNsense on 4 core Intel Xeon E5506, 20GB RAM, 2x Broadcom NetXtreme II BCM5709, 4x Intel 82580
Ubench Single CPU: 307897 (0.39s)