Maybe I try to configure it with ifconfig to see if the kernel module is used.
I looked in /boot/kernel and /boot/modules and could not find it. In TN CORE 12 ...
You could also try
kldload if_wg
on the host, just to make sure. If that works you can activate the module with tuneables from the UI.
If I am not mistaken, it is not yet rewritten.
It is. The mess that was produced by Kip Macy sponsored by Netgate was binned and a complete rewrite done partly by Jason Donenfeld. After the "Netgate incident" the core team decided not to pull the new module into the kernel tree at that short notice, but relegate it to ports instead. But it definitely is the new code.
You don't even need FreeBSD 13 to run it. Works for me on 12 and 13 all the same.
Yes, the tuneables in that document activate only the userland side. If the module is present, the
wg/wg-quick
binaries will pull it in, otherwise fall back to wireguard-go.
HTH,
Patrick
P.S. The issue with jails is - let's pretend the module is there - the tooling automatically activates the module if found. But you cannot load kernel modules inside a jail - that's the point. So if the module is delivered with TN CORE 13.x you will have to
load the module on the host (tuneable), then
configure and start the tools in the jail. Simple as that.