Router restart ends up with wireguard connection issue
Introduction
I have multiple ER605 running. All of them are connected to a wireguard vpn server, which is hosted on an ubuntu server in the cloud. The ER605 are all behind a CG-NAT and so they are actively connecting to the cloud server.
Setup
Site A holds the controller and connects to a wireguard server in the cloud
Site B connects to the wireguard server in the cloud
Site B uses the controller at Site A
Problem
If the ER605 restarts, for example because of losing power or someone at the site think it is a good idea to reset the router, it connects to whatever WAN setup is made. From PPPoE over DHCP, everything is working. The only thing, which is not connecting is the wireguard connection. The router does not connect until I turn off and on the wireguard setup on the ER605 at the specific site OR (and this is really interesting) I restart the wireguard service on the wireguard server in the cloud.
I except that the ER605 connects to the wireguard server after the restart and I don't want to disable and enable the service on the ER605 and I also don't want to restart the wireguard service on the server.
In this specific setup I only can restart the wireguard service at the wireguard server, because the ER605 needs the connection to get updates from the controller.
There is also a non ER605 router in this setup and this device (pfSense) connects to the wireguard server after a restart. Only the ER605 router does not connect after a restart.
Question
Is anyone having the same problem, that the wireguard service from the ER605 does not connect automatically after reboot?
greets, Odin