Wireguard on CentOS 8 not working.
When I try to use wireguard on CentOS 8 I get those errors.
[[email protected] ~]# modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.18.0-80.11.2.el8_0.x86_64
[[email protected] ~]# ip link add dev wg0-server type wireguard
RTNETLINK answers: Operation not supported
Using grub2 kernel on my linode.
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:
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!