Hi,
After an update to the most recent version from Opnsense ( OPNsense 20.1.7-amd64), my wireguard install suddenly ceased working. I am running Wireguard plugin 1.1. The only thing I see in the logs is this:
2020-06-14T19:21:49 kernel: wg0: link state changed to DOWN
2020-06-14T19:21:49 kernel: tun0: changing name to 'wg0'
2020-06-14T19:21:49 kernel: tun0: link state changed to UP
Now, there's probably more to this error than the logs show in the GUI, but I don't know where to look or how to troubleshoot this. Can someone point me in the right direction?
Post output of /usr/local/etc/rc.d/wireguard restart
Thanks, didn't know where to look. I think I've found the issue (obfuscated the key a bit):
root@OPNsense:~ # /usr/local/etc/rc.d/wireguard restart
wg-quick: `wg0' is not a WireGuard interface
[#] wireguard-go wg0
INFO: (wg0) 2020/06/15 09:35:05 Starting wireguard-go version 0.0.20200320
[#] wg setconf wg0 /tmp/tmp.v90Z9IPh/sh-np.zTQZji
Key is not the correct length or format: `**********hLQ0vXOb0DxHAtnAvK38ZJYduidtVX**='
Configuration parsing error
[#] rm -f /var/run/wireguard/wg0.sock
Looks like I made a copy-paste error. After re-entering the correct key (and saving it), everything started working again.
Thanks!