Skip to content

RD Gateway

Remote Desktop Gateway authorizes every connection through NPS (Network Policy Server). Point NPS at OkYouIn as a remote RADIUS server and every RDP connection through the gateway waits for the user to approve a push before it is let through. Nothing is installed on the target computers, and the RDP clients need no change beyond using the gateway.

The step-by-step setup, verified on Windows Server 2022, is in the RD Gateway device guide.

mstsc ──► RD Gateway ──► local NPS ──RADIUS──► OkYouIn ──► push to the user's phone
▲ │ │
└──────────┴──── connection allowed ◄── Access-Accept
  1. The user starts an RDP connection through the gateway; RD Gateway checks the Windows password itself.
  2. RD Gateway asks NPS — by default the NPS installed with the role, on the same server — to authorize the connection.
  3. NPS’s connection request policy TS GATEWAY AUTHORIZATION POLICY forwards the request to the remote RADIUS server group OkYouIn.
  4. OkYouIn applies the policy and sends a push; the request waits until the user approves, denies, or the wait runs out.
  5. On Access-Accept, RD Gateway lets the connection through, still subject to its resource authorization policy (RD RAP — which computers).

Once NPS forwards to OkYouIn, it no longer evaluates the RD CAP: OkYouIn’s policy decides who may connect.

First factorFixed to MFA only: RD Gateway checks the password and sends none to OkYouIn.
Second factorPush-style only, because RDP cannot show a prompt: Telegram, Web Push (no number matching), or the e-mail Approve link (needs the public base URL). TOTP and e-mailed codes cannot work.
WaitThe user has Max request time (Access ▸ Settings ▸ RADIUS, default 60 s) minus 5 seconds to approve. NPS must wait at least as long — its default is 3 seconds.
ErrorsOn a deny or a timeout, mstsc shows only its generic “Remote Desktop can’t connect to the remote computer” — never OkYouIn’s message. The RADIUS log has the reason.
Client addressRD Gateway sends no Calling-Station-Id: OkYouIn never sees the client’s address, so network and country conditions in rules do not apply to this application.
IdentificationRD Gateway sends no NAS-Identifier; the application is identified by the gateway’s (or the central NPS’s) address.
BlastRADIUSNPS with requiremsgauth enabled sends Message-Authenticator in every request, so Strict is safe and recommended.
RD Gateway via NPSWindows logon agent
Installed onThe gateway onlyEvery protected host
ProtectsRDP connections through the gatewayConsole, RDP and unlock on each host, however they connect
MethodsPush-style onlyAll methods, including TOTP and codes, on the logon tile
Client address in rulesNot availableReported by the agent
When OkYouIn is unreachableNPS gets no answer: connections failOffline grace, break-glass codes, exclusions
Messages to the userGeneric mstsc errorOkYouIn’s text on the tile

Protect one of the two for the same users: behind a gateway that OkYouIn protects, an agent on the hosts would ask for a second MFA.

If RD Gateway uses a central NPS server (RD CAP store “Central server running NPS”), configure the forwarding there instead, add the RD Gateway as a RADIUS client of that NPS (with Message-Authenticator), and use the NPS server’s address as the application’s source in OkYouIn. The NPS-to-OkYouIn part of this variant is verified in our lab; the RD Gateway side of it is not.