I am developing a network application which should be accessed by nodes in a local network. Devices from other networks must not be able to access this application except from their network. Again, the local server will have to be connected to a cloud database but then provide the needed data for the local network which its serving. Is this possible, and if yes, how please?