Is it possible to run WireGuard in jail with kernel support?
How to install a Wireguard VPN client in a FreeBSD jailIs it possible to run WireGuard in jail with kernel support?
pkg install wireguard
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
wireguard: 2,1
wireguard-kmod: 0.0.20220615
Number of packages to be installed: 2
Proceed with this action? [y/N]: y
[test1] [1/2] Installing wireguard-kmod-0.0.20220615...
[test1] [1/2] Extracting wireguard-kmod-0.0.20220615: 0%
pkg: Fail to create temporary file: /boot/modules/.pkgtemp.if_wg.ko.r4LTGiV0G9Sb:Read-only file system
[test1] [1/2] Extracting wireguard-kmod-0.0.20220615: 100%
Not sure what's the policy about answering old posts, but as I had the exact same issue and found this in a search engine, I'm going to answer it for people also finding it.
Dear Echoxxzz:You need to load the if_wg.ko kernel module on the host by adding if_wg_load="YES" to /boot/loader.conf.