When the passive mode is initiated in an FTP-over-TLS connection, the packets are sent encrypted. Since the Security Gateway is not a peer in the communication, it is not able to replace the server's IP address with its own because of the encryption, and so the packet is sent unchanged. The client obtains the server's real IP address, which is hidden behind the Security Gateway and is unroutable from the Internet.