I'm trying to set up my vpn (mullvad) using Wireguard. I have (I assume) a valid config file in /etc/wireguard. I have installed wireguard-dkms and wireguard-tools.
When I run
wg-quick up mullvad-au1
I get:
[#] ip link add mullvad-au1 type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev mullvad-au1
Cannot find device "mullvad-au1"
When I run
modprobe wireguard
I get:
modprobe: FATAL: Module wireguard not found in directory /lib/modules/5.5.2-artix1-1
It seems that this should not be the case.
I have already tried getting it to work with wireguard-arch instead of wireguard-dkms but this did not help.
Should use wireguard-dkms and make sure you have the kernel headers installed. If using standard linux kernel, install linux-headers, if linux-lts, install linux-lts-headers and so on.
Hello I found this troubleshooting and I hope this helps someone:
As
@ndowens mentioned the issue is with the headers and there is one for each distribution, got the same issue with an AWS server and other one with another distribution. After I added the headers for each one the error was solved
Thanks again
@ndowens