Wireguard on CentOS 8 not working.
As title.
When I try to use wireguard on CentOS 8 I get those errors.
[root@netstar ~]# modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.18.0-80.11.2.el8_0.x86_64
[root@netstar ~]# ip link add dev wg0-server type wireguard
RTNETLINK answers: Operation not supported
Using grub2 kernel on my linode.
Any Idea?
1 Reply
Hi there,
I was able to find a post on Reddit regarding this exact issue. It looks like Wireguard has an issue with that particular kernel of CentOS 8. Here are some steps to take to try an resolve the issue:
1.dnf-install wireguard-tools and wireguard-dkms (the -dkms rpm install will fail silently, by not producing the desired wireguard module)
2.Cut and paste the following:
cd /usr/src/wireguard-0.0.20200121/
patch -p0 < /path/to/patch.file
- Tell the dkms to try again:
dkms build -m wireguard -v 0.0.20200121
dkms install -m wireguard -v 0.0.20200121
- Try using Wireguard again
Hereis a link to the post should you need more reference. I hope this was helpful!