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.
How it works
Section titled “How it works”mstsc ──► RD Gateway ──► local NPS ──RADIUS──► OkYouIn ──► push to the user's phone ▲ │ │ └──────────┴──── connection allowed ◄── Access-Accept- The user starts an RDP connection through the gateway; RD Gateway checks the Windows password itself.
- RD Gateway asks NPS — by default the NPS installed with the role, on the same server — to authorize the connection.
- NPS’s connection request policy TS GATEWAY AUTHORIZATION POLICY forwards the request to the remote RADIUS server group OkYouIn.
- OkYouIn applies the policy and sends a push; the request waits until the user approves, denies, or the wait runs out.
- 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.
What to expect
Section titled “What to expect”| First factor | Fixed to MFA only: RD Gateway checks the password and sends none to OkYouIn. |
| Second factor | Push-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. |
| Wait | The 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. |
| Errors | On 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 address | RD 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. |
| Identification | RD Gateway sends no NAS-Identifier; the application is identified by the gateway’s (or the central NPS’s) address. |
| BlastRADIUS | NPS with requiremsgauth enabled sends Message-Authenticator in every request, so Strict is safe and recommended. |
RD Gateway or the Windows agent?
Section titled “RD Gateway or the Windows agent?”| RD Gateway via NPS | Windows logon agent | |
|---|---|---|
| Installed on | The gateway only | Every protected host |
| Protects | RDP connections through the gateway | Console, RDP and unlock on each host, however they connect |
| Methods | Push-style only | All methods, including TOTP and codes, on the logon tile |
| Client address in rules | Not available | Reported by the agent |
| When OkYouIn is unreachable | NPS gets no answer: connections fail | Offline grace, break-glass codes, exclusions |
| Messages to the user | Generic mstsc error | OkYouIn’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.
Central NPS
Section titled “Central NPS”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.