plugins: os-udpbroadcastrelay: not starting when a WireGuard-Interface is selected
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
- I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- I have searched the existing issues, open and closed, and I’m convinced that mine is new.
- The title contains the plugin to which this issue belongs
Describe the bug
Since OpnSense 23.1, UDP Broadcast Relay does not start any more when a WireGuard-interface is part of the relay.
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
To Reproduce Steps to reproduce the behavior:
- Go to ‘Services: UDP Broadcast Relay’
- Add one relay, enable it, set port=1900 and Broadcast-Address=239.255.255.250 and select one WireGuard interface, e.g. “wg0”
- Click “Save”
- See in the list of Relay the yellow background-color (and not green background-color)
- Look into
/var/log/system/latest.log. Check withpsthat no process/usr/local/sbin/udpbroadcastrelayis running - remove the “wg0”-interface (keep two other interfaces selected) - press Save again
- now you see green-background (i.e. process running) and
psfind a running/usr/local/sbin/udpbroadcastrelay
Can also try to start on console. Then you see a more precise error message:
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
Expected behavior The relay should run also with WireGuard-Interfaces
Screenshots
-
Not running when WG0 is part of the party

-
Running when it’s not

Relevant log files
<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
See also https://forum.opnsense.org/index.php?topic=32356.0
Additional context No problem with OpnSense 22.7
Environment OPNsense 23.1_6-amd64 FreeBSD 13.1-RELEASE-p5 OpenSSL 1.1.1s 1 Nov 2022
running on AMD GX-412TC SOC (4 cores, 4 threads)
Using os-wireguard (and not os-wireguard-go)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 7
- Comments: 15 (2 by maintainers)
There is no fix yet. Shouldn’t this issue be open?