@reboot sleep 600 && /usr/local/etc/rc.d/wireguard restart
function wireguard_configure(){ return [ 'newwanip' => ['wireguard_configure_do'], ];}function wireguard_configure_do(){ mwexec("/usr/local/sbin/configctl -dq wireguard restart");}
2023-08-28T14:11:22 Notice kernel <6>wg2: link state changed to UP 2023-08-28T14:11:19 Notice kernel <6>wg1: link state changed to UP 2023-08-28T14:11:19 Notice kernel <6>wg0: changing name to 'wg1' 2023-08-28T14:11:19 Notice kernel <6>wg2: link state changed to DOWN 2023-08-28T14:11:19 Notice kernel <6>wg1: link state changed to DOWN 2023-08-28T14:11:19 Notice opnsense /usr/local/etc/rc.newwanip: plugins_configure newwanip (execute task : wireguard_configure_do())
i monitore wireguard now via monit, works fine for me
For FQDN based endpoints there will be another fix for 23.7.8. WireGuard is plug and play like that