I installed Opemediavault image and the installed Wireguard plugin to connect to my home server

Wireguard is working well but each time there was a power cut Wireguard cleint was not able to connect to my Wireguard server (no handshake).

After many hours of research i found that it is was a problem of time. Indeed, each time there was a power cut, the time and date of the Nanopi R5S return to the time of creation of image. There was a discrepency of time between Wireguard server and client and it was not possible to connetc the VPN.

To solved this issue, I just a add this line in my Wireguard configuration file :

Code: Select all

Preup =  ntpdate ntp.ubuntu.com


Before startup of Wireguard the time is now synchronised with a NTP server