WireGuard VPN not reconnection after public IP change

Namaskaram,

I’ve a CCR1009 as a WireGuard server which is located in India, which is on Dynamic Public IP.

I’ve setup a client router in Dubai. but the problem is that when ever the Public IP changes on the WireGuard Server the client router is unable to connect automatically, we need to restart the client peer

Please help me

Normal behavior when your DNS resolution does not follow the dynamic IP change.
And possibly you do not use Persistent Keepalive ?

There are some scripts floating around which can be put as part of netwatch to circumvent this DNS resolving problem.
Normally using keepalive on both ends (25s is mostly used) should also help since it should automatically accommodate for the new IP address but I am not 100% sure about that.

Please read… https://forum.mikrotik.com/viewtopic.php?t=182340
Specifically Para 6