RDP Gateway
Set up RDP Gateway with Pocket ID authentication
RDPGW allows you to connect with the official Microsoft RDP clients to remote desktops over HTTPS. The following example assumes you want to deploy rdpgw behind caddy reverse proxy with pocket-id.
Pocket ID Setup
- In Pocket-ID create a new OIDC Client, name it i.e.
rdpgw. - Set a logo for this OIDC Client if you would like too.
- Set the callback URL to:
https://rd.example.com/callback, or leave blank to autofill on first login. - Copy the
Client ID, andClient Secretfor use in the next steps.
RDPGW Setup
rdpgw.yaml (adjust to your specific requirements):
Caddy config
You then need to setup your caddy proxy with caddy-security and pocket-id config following the pocket-id documentation.
[!NOTE] You should have two different oidc clients, one for caddy-security and one for rdpgw. For caddy-security the callback looks like
https://example.com/auth/oauth2/generic/authorization-code-callbackand for rdpgw its:https://rd.example.com/callbackyou need both oidc clients. For the/auth/oath2/generic/route this is the route that caddy-security is handling (not rdpgw, rdpgw is handlingrd.example.com/connect?host=and thenrd.example.com/callback).