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:

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:

  1. Go to ‘Services: UDP Broadcast Relay’
  2. Add one relay, enable it, set port=1900 and Broadcast-Address=239.255.255.250 and select one WireGuard interface, e.g. “wg0”
  3. Click “Save”
  4. See in the list of Relay the yellow background-color (and not green background-color)
  5. Look into /var/log/system/latest.log. Check with ps that no process /usr/local/sbin/udpbroadcastrelay is running
  6. remove the “wg0”-interface (keep two other interfaces selected) - press Save again
  7. now you see green-background (i.e. process running) and ps find 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 image

  • Running when it’s not image

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)

Most upvoted comments

There is no fix yet. Shouldn’t this issue be open?