You are not logged in.

#1 2020-05-20 15:43:55

art
Member
Registered: 2019-08-12
Posts: 32

Wireguard. "Error: Unknown device type"

Hi, why wireguard does not work and fails with this? I installed "wireguard-tools" and linux kernel is 5.6.4-arch1-1. Network Manager is installed but it also does not work with this.

[I] ➜ sudo wg-quick up MYCONFIG
[#] ip link add MYCONFIG type wireguard
Error: Unknown device type.
Unable to access interface: Protocol not supported
[#] ip link delete dev MYCONFIG
Cannot find device "MYCONFIG"

For network manager:

Error: Connection activation failed: MYCONFIG failed to create resources: Failed to create WireGuard interface 'MYCONFIG' for 'MYCONFIG:  [Here it writes in other language, "unsupported operation"]

In MYCONFIG (lines removed):

[Interface]
Address = **** /32
DNS = ***
PrivateKey = ***

[Peer]
PublicKey = ****
AllowedIPs = 0.0.0.0/0,::/0
Endpoint = ***:51820

Offline

#2 2020-05-20 18:13:03

cmm11
Member
Registered: 2018-02-18
Posts: 5

Re: Wireguard. "Error: Unknown device type"

*update - sorry Slithery is correct, it should already be compiled in the kernel.

Last edited by cmm11 (2020-05-22 05:08:16)

Offline

#3 2020-05-20 18:50:37

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 3,934

Re: Wireguard. "Error: Unknown device type"

cmm11 wrote:

Check you have package "wireguard-dkms" installed and also "linux-headers".

Why? It's been built into the kernel since 5.6...


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2020-07-14 11:19:46

CoreCat
Member
Registered: 2017-02-05
Posts: 15

Re: Wireguard. "Error: Unknown device type"

I have the same issue.
Kernel is 5.7.7-arch1-1, so according to the wiki there's no need to install the wireguard-dkms package.
But

modprobe wireguard

gives no output.
I have the linux-headers package installed.

Offline

Board footer

Powered by FluxBB