Closed randomsymbols closed 5 years ago
How are you installing wireguard? There are several methods listed on https://www.wireguard.com/install/.
If this is a issue with the system on AWS: the DEB packages for wireguard won't work, you have to compile wireguard manually. I will actually provide an easy installer that will do that for you (very soon, in the next few days). If you are impatient, see https://www.wireguard.com/install/#compiling-from-source .
NOTE: If you run my system on AWS, you don't require the kernel source packages from repository, since you are on a custom kernel directly from kernel.org. To download the source and compile the latest kernel, you can:
kernel-update.sh
To just download the source for your current kernel, you can run as root:
cd /usr/src
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-$(uname -r).tar.xz
tar xJf linux-$(uname -r).tar.xz
Then you should be able to compile anything kernel-dependent.
Finally, wireguard is now included in versions 5.1.1 and above. To be able to compile other modules, kernel headers are also included.
apt search linux-headers-$(uname -r) Sorting... Done Full Text Search... Done
Without the headers, wireguard does not install properly: ip link add wg0 type wireguard RTNETLINK answers: Operation not supported