Hello, a while ago I think I read something, but now that I have time I can not find it, it turns out that I have a mikrotikA under CGNAT, this connects you via Wireguard to another mikrotikB that has a public ip, but when this public ip changes, the mikrotikA stays dizzy, I understand that the problem is because it does not verify the ip that is set in Endpoint, where is the domain name that gives me mikrotik in the mikrotikB that has changed the public ip.
I am not sure how to set a script in the mikrotikA to check the public ip of the mikrotikB and if it has changed it will disable and enable the peer to lift the VPN.
I have thought of creating a netwach, with the ip of the other side of the VPN where in Down put a script that disables the peer and re-enables it, normally with that it connects again.
Then in the Test tab put a script that verifies the status of the netwatch if it is Down then try again to lift the VPN disabling and then enabling the peer.
I have the ideas but I don't know how to do it, if someone could guide me.
Thanks