As per the diagram, each remote site will need to access the server situated in the main site.
I have configured the routers and firewall.
Please check if this configuration will work.
See attached the configurations and diagram.
I have this problem too.