I'm trying to use wireguard, but when I try to use it with wg-quick up I get the error.
wg-quick up test
Warning: `/etc/wireguard/test.conf' is world accessible
[#] ip link add test type wireguard
[#] wg setconf test /dev/fd/63
[#] ip -4 address add 172.16.0.29/32 dev test
[#] ip -6 address add fd::29/128 dev test
[#] ip link set mtu 1395 up dev test
[#] resolvconf -a tun.test -m 0 -x
Failed to resolve interface "tun": No such device
[#] ip link delete dev test
As I checked other's questions I found out that I don't have 'tun.ko.gz' (`find /lib/modules/ -iname 'tun.ko.gz'` returns nothing), so I can't load the 'tun'.
$ uname -r
> 5.11.0-40-generic
I'm using Ubuntu 20.04