The officially official Devuan Forum!

You are not logged in.

#1 2019-02-10 14:24:01

Phoen7x
Member
Registered: 2018-11-23
Posts: 14  

Wireguard (VPN) Kernel Modul

Hello everybody,
What about devuan with wireguard support?
I have implemented the following instructions and successfully installed wireguard.

# echo "deb https://ftp.fau.de/devuan/merged/ unstable main" > /etc/apt/sources.list.d/unstable.list
# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable
# apt update
# apt install wireguard

If i want to add a new interface i get

# ip link add dev wg0 type wireguard
RTNETLINK answers: Operation not supported

If I modeprobe wireguard:
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.17.0

If I want to install wireguard from source:

$ make
make[1]: *** /lib/modules/4.17.0/build: Datei oder Verzeichnis nicht gefunden.  Schluss.
Makefile:36: die Regel für Ziel „module“ scheiterte
make: *** [module] Fehler 2

Seems there is a problem with the kernelmodul?
Device is an OrangePi Zero.

Last edited by Phoen7x (2019-02-10 19:59:16)

Offline

#2 2019-02-11 13:29:34

Phoen7x
Member
Registered: 2018-11-23
Posts: 14  

Re: Wireguard (VPN) Kernel Modul

Could it be possible that there is the wrong kernel(-headers)?
uname -r:
4.17.0

But its: Linux devuan 4.17.0 armv7l GNU/Linux

I've installed:
devuan_ascii_2.0.0_armhf_sunxi.img.xz with orangepi_zero_defconfig.bin

But maybe something went wrong and it's not the right kernel??

I've installed linux-headers-4.17.0 but i think the right must be linux-headers-sun8i

Offline

#3 2019-02-11 15:41:18

golinux
Administrator
Registered: 2016-11-25
Posts: 1,575  

Re: Wireguard (VPN) Kernel Modul

The best place for this question would be #devuan-arm on freenode.  parazyd doesn't read this forum.

Offline

#4 2019-02-13 05:43:27

KatolaZ
Member
Registered: 2017-03-11
Posts: 79  

Re: Wireguard (VPN) Kernel Modul

Phoen7x wrote:

Could it be possible that there is the wrong kernel(-headers)?
uname -r:
4.17.0

But its: Linux devuan 4.17.0 armv7l GNU/Linux

I've installed:
devuan_ascii_2.0.0_armhf_sunxi.img.xz with orangepi_zero_defconfig.bin

But maybe something went wrong and it's not the right kernel??

I've installed linux-headers-4.17.0 but i think the right must be linux-headers-sun8i

You need matching kernel headers for wireguard-dkms to work.

HND

KatolaZ

Offline

#5 2019-02-16 18:52:38

Phoen7x
Member
Registered: 2018-11-23
Posts: 14  

Re: Wireguard (VPN) Kernel Modul

KatolaZ wrote:

You need matching kernel headers for wireguard-dkms to work.

And which are matching? I've installed with

# apt install linux-headers-$(uname -r)

so I think that are all that are availible?

Offline

Board footer