Our server is still on CentOS 7 and I am trying to use Wireguard on it.
While starting it, it gives:
$ sudo wg-quick up wg0
[#] ip link add wg0 type wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wg0
Cannot find device "wg0"
$ uname -r
3.10.0-1160.105.1.vz7.214.3
But when I try to install $ sudo yum install linux-headers-$(uname -r) it says "no package linux-headers-3.10.0-1160.105.1.vz7.214.3".
Checking what is installed:
$ sudo yum list installed | grep headers
glibc-headers.x86_64 2.17-292.el7 @base
kernel-headers.x86_64 3.10.0-1062.18.1.el7 @updates
My config
[Interface]
Address = 10.5.5.1/24
ListenPort = <port>
# Use your own private key, from /etc/wireguard/privatekey
PrivateKey = <private key>
[Peer]
Workstation public key
PublicKey = <pub key>
VPN client's IP address in the VPN
AllowedIPs = 10.5.5.2/32
[Peer]
laptop public key
PublicKey = <pub key>
VPN client's IP address in the VPN
AllowedIPs = 10.5.5.3/32
How can I safely install the matching header? Is the header's version mismatch very likely the reason for this kind of error?
I am confused by the message Protocol not supported and I don't know, whether it also points to a version mismatch.