You are not logged in.
When I try to connect with wg-quick, I get these errors:
$ sudo wg-quick up wg0
[#] ip link add wg0 type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0
Cannot find device "wg0"
Then I checked if the module is loaded
$ sudo modprobe wireguard && lsmod | grep -i wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/5.10.11-arch1-1
Shouldn't wireguard be included in the newest kernels?
Last edited by Celsiuss (2021-02-09 14:58:21)
Offline
Did you update kernel and not reboot? pacman unfortunately removes modules of the still running kernel ... leaving you unable to load any module, forcing you to reboot.
# find /lib/modules -iname "*wireguard*"
/lib/modules/5.10.13-arch1-2/kernel/drivers/net/wireguard
/lib/modules/5.10.13-arch1-2/kernel/drivers/net/wireguard/wireguard.ko.xz
# pacman -Syu
[...]
# find /lib/modules -iname "*wireguard*"
/lib/modules/5.10.14-arch1-1/kernel/drivers/net/wireguard
/lib/modules/5.10.14-arch1-1/kernel/drivers/net/wireguard/wireguard.ko.xz
# uname -a
Linux ALU 5.10.13-arch1-1 #1 SMP PREEMPT Wed, 03 Feb 2021 23:44:07 +0000 x86_64 GNU/Linux
# modprobe / insmod will fail at this point until you reboot
Last edited by frostschutz (2021-02-09 14:51:19)
Online
Thanks, that seems to be my problem
Offline