Currently i use OpenWRT to establish a Wireguard Site-to-Site VPN to use my devices in my home network.
Unfortunately, sometimes the connections drops, and the Wireguard connection is not being restored, even if internet works.
Remote site is working, but OpenWRT shows something like "last handshake 1h ago".
So the VPN connection is not being restored automatically.
To resolve this issue, i have to restart my OpenWRT device (VPN Client).
How can i tell Wireguard to auto-reconnect, or restart the interface if this happens?
EDIT: The problem is the following.
The IP address of the remote network changes 2 times per day, and after that, the Wireguard connection can't be reestablished by the client.
How can i solve this problem on clientside (OpenWRT) to reconnect when the ip address of the peer changes?