bolkedebruin / rdpgw

Remote Desktop Gateway in Go for deploying on Linux/BSD/Kubernetes
Apache License 2.0
698 stars 115 forks source link

keycloak:8080 failing #61

Closed fruizhms closed 1 year ago

fruizhms commented 1 year ago

Am i supposed to create a host entry on the host file for keycloak -> 127.0.0.1 ?

For some reason keycloak:8080/auth doesn't work hence localhost:9443/connect fails because it redirects me to keycloak:8080 for authentication.

If i enter localhost:8080/auth. that works fine without issues. If i enter keycloak:8080/auth, i get page not found error.

fruizhms commented 1 year ago

as a workaround for now, i added 127.0.0.1 keycloak to host file. I can authenticate, and redirection works fine when i go to localhost:9443/connect, rdp file downloads fine after the change.

however when i attempt to open the rdp file i get

EDIT: The error message below got fixed by changing the CN of the cert created from rdpgw to localhost and installing that cert to my trusted root cert folder. I'd still would like to know if all these workarounds are still necessary or were they supposed to be automatic during docker setup

image

bolkedebruin commented 1 year ago

The Windows MS require a valid DNS entry and a certificate with a CN equalling the DNS name for gateway connections. I have no way to predict if your DNS is going to point to the right server unfortunately.