Firewalls can provide a secure connection between two networks. This is called "tunnellng". The data may be encrypted. It is decrypted at the other end. Since the firewalls are doing this, the rest of the network is unaware of it. An alternative is to provide a secure access (to the corporate network).