Question: how does rd gateway work?
Answer: Remote Desktop Gateway (RD Gateway) grants users on public networks access to Windows desktops and applications hosted in Microsoft Azure's cloud services. The RD Gateway component uses Secure Sockets Layer (SSL) to encrypt the communications channel between clients and the server.