VPN site to site Wireguard
[!NOTE] I will start from the VPN post remote access with Wireguard, so you may refer to this one during this article.
Key generation The first thing we will do is to install both the Wireguard package in both machines:
root@servidor1:~# sudo apt update && sudo apt install wireguard debian@servidor2:~$ sudo apt update && sudo apt install wireguard Let’s generate the pairs of keys that will be used to encrypt the connection. We will need a key for the server and a couple of additional keys for each client.