GRE Tunnel with IPSec

Hi Guys, I have a problem with GRE Tunnel on Mikrotik Routerboard

There are 5 locations connected to the main office via GRE TUNNEL. Everything works correctly, the problem arises if I activate IPSec on these tunnels, only 1 works at a time and on the logs I read:

128.116.xx.xx parsing packet failed, possible cause: wrong password

Actually the IPsec password is identical on both tunnels .. if I remove IPsec from the tunnel everything works. What can it depend on? Thank you

RouterOS 6.47.2

Hi, are u using public address in main central office?

Hi, yes static public IP (same for all tunnels). It seems I can’t tell which tunnel the exchange IPSec key comes from. Maybe because for every GRE Tunnel with IPSEC I have to have a static IP?