Dear all,
I’m using Wireguard to allow connections of remote user with a unique central vpn hub.
I configured a wireguard interface on hub and addedd peers attached to this interface for each remote client. All run correctly.
The question is: if central hub fails and I would to replace it in wich way can I export and reassign the same key pair to the wireguard interface?
In the export procedure it extract only private key of the interface? Can I set public key manually?
What you need to do is copy the private key the hub generates.
If the private hub fails.
Then take the copy of the private key and insert that into whatever replaces it as the Server station private key.
It will then generate the same public key that all the clients are using so they dont have to change a thing.
You will also ensure you have a copy of all their public keys given to the server for the server peer settings, such that you can recreate the peers.
Ah Ok. Thanks a lot