You are not logged in.

#1 2021-02-09 14:42:58

Celsiuss
Member
Registered: 2020-11-05
Posts: 16

[SOLVED] Wireguard connection error, can't connect

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

#2 2021-02-09 14:47:04

frostschutz
Member
Registered: 2013-11-15
Posts: 1,470

Re: [SOLVED] Wireguard connection error, can't connect

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

#3 2021-02-09 14:57:59

Celsiuss
Member
Registered: 2020-11-05
Posts: 16

Re: [SOLVED] Wireguard connection error, can't connect

Thanks, that seems to be my problem

Offline

Board footer

Powered by FluxBB