$ wg showconf wg0Unable to access interface: Device not configured$ /usr/local/etc/rc.d/wireguard statusUnable to access interface: Device not configured$
2022-03-03T21:47:48 Error opnsense /usr/local/etc/rc.bootup: Unable to configure non-existent interface opt4 (wg0) 2022-03-03T21:47:48 Error opnsense /usr/local/etc/rc.bootup: Executed inline creation of non-existent interface opt4 (wg0) 2022-03-03T21:47:48 Notice opnsense plugins_configure openvpn_prepare (execute task : openvpn_prepare(,wg0)) 2022-03-03T21:47:48 Notice opnsense plugins_configure openvpn_prepare (,wg0) 2022-03-03T15:49:14 kernel wg0: link state changed to DOWN 2022-03-03T15:49:13 kernel tun0: changing name to 'wg0' 2022-03-03T15:17:24 kernel wg0: link state changed to DOWN 2022-03-03T15:17:24 kernel tun0: changing name to 'wg0' 2022-03-03T15:16:04 opnsense[34308] /usr/local/etc/rc.bootup: The command '/sbin/ifconfig 'wg0' -staticarp' returned exit code '1', the output was 'ifconfig: interface wg0 does not exist' 2022-03-03T15:16:04 opnsense[34308] /usr/local/etc/rc.bootup: The command '/sbin/ifconfig 'wg0' inet6 -accept_rtadv' returned exit code '1', the output was 'ifconfig: interface wg0 does not exist' 2022-03-03T15:16:04 opnsense[34308] plugins_configure openvpn_prepare (execute task : openvpn_prepare(,wg0)) 2022-03-03T15:16:04 opnsense[34308] plugins_configure openvpn_prepare (,wg0) 2022-03-03T13:44:01 kernel wg0: link state changed to DOWN 2022-03-03T13:44:01 kernel tun0: changing name to 'wg0' 2022-03-03T13:43:51 kernel wg0: link state changed to DOWN 2022-03-03T13:43:51 kernel tun0: changing name to 'wg0' 2022-03-03T13:41:06 opnsense[33410] /interfaces.php: The command '/usr/sbin/arp -d -i 'wg0' -a > /dev/null 2>&1' returned exit code '1', the output was '' 2022-03-03T13:41:06 opnsense[33410] /interfaces.php: The command '/sbin/ifconfig 'wg0' -staticarp' returned exit code '1', the output was 'ifconfig: interface wg0 does not exist' 2022-03-03T13:41:04 opnsense[33410] /interfaces.php: The command '/sbin/ifconfig 'wg0' inet6 -accept_rtadv' returned exit code '1', the output was 'ifconfig: interface wg0 does not exist' 2022-03-03T13:41:04 opnsense[33410] plugins_configure openvpn_prepare (execute task : openvpn_prepare(,wg0))
root@muminpappa:~ # /usr/local/etc/rc.d/wireguard restartwg-quick: `wg0' is not a WireGuard interface[#] ifconfig wg create name wg0[!] Missing WireGuard kernel support (ifconfig: SIOCIFCREATE2: Invalid argument). Falling back to slow userspace implementation.[#] wireguard-go wg0┌──────────────────────────────────────────────────────┐│ ││ Running wireguard-go is not required because this ││ kernel has first class support for WireGuard. For ││ information on installing the kernel module, ││ please visit: ││ https://www.wireguard.com/install/ ││ │└──────────────────────────────────────────────────────┘[#] wg setconf wg0 /dev/stdin[#] ifconfig wg0 inet 192.168.19.16/28 alias[#] ifconfig wg0 mtu 1420[#] ifconfig wg0 up[#] route -q -n add -inet 192.168.10.0/24 -interface wg0[#] rm -f /var/run/wireguard/wg0.sockroot@muminpappa:~ #
FreeBSD is a bit more of a diva