[root@archlinux ~]# mkdir /etc/wireguard/keys
[root@archlinux ~]# umask 077
...
[root@archlinux keys]# wg genkey | tee privatekey | wg pubkey > publickey
you missed "cd /etc/wireguard/keys"
In "Starting WireGuard service on server", when i type on Ubuntu "wg-quick up wg0" I had the error "RTNETLINK answers: Operation not supported".
If it helps, the solution found on StackOverflow is "apt-get install wireguard-dkms wireguard-tools linux-headers-$(uname -r)"
Great article. Some suggestions :
In "Generating client keys", you wrote:
[root@archlinux ~]# mkdir /etc/wireguard/keys
[root@archlinux ~]# umask 077
...
[root@archlinux keys]# wg genkey | tee privatekey | wg pubkey > publickey
you missed "cd /etc/wireguard/keys"
In "Starting WireGuard service on server", when i type on Ubuntu "wg-quick up wg0" I had the error "RTNETLINK answers: Operation not supported".
If it helps, the solution found on StackOverflow is "apt-get install wireguard-dkms wireguard-tools linux-headers-$(uname -r)"
The post has the corrections and error solution now. Thanks!