Connect Nextcloud External with Nextcloud internet

Hello all,

I have two Nextcloud servers one internal (private not access to internet )and other extrnal (access to internet), now i want to connect the both server but with some rules, the both servers connect with the same ldap active directory, i want user from internel can send file to external and other sence not that mean use can share from internal to exteranl to client and can not share from external to internal.

thank you