echo "module wireguard +p" | sudo tee /sys/kernel/debug/dynamic_debug/control
dmesg -wT
2024-04-04T15:36:27 Notice wireguard wireguard instance RemoteAccess (wg2) started 2024-04-04T15:36:27 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: ROUTING: keeping inet default route to xx.yyy.zz.www 2024-04-04T15:36:27 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: ROUTING: configuring inet default gateway on wan 2024-04-04T15:36:27 Notice wireguard /usr/local/opnsense/scripts/Wireguard/wg-service-control.php: ROUTING: entering configure using 'opt2' 2024-04-04T15:36:27 Notice wireguard wireguard instance RemoteAccess (wg2) can not reconfigure without stopping it first.
wg
root@debian:~# wginterface: wg0
wg-quick down wg0
ifup wg0