bolkedebruin / rdpgw

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

Enable logs to stdout/stderr #51

Closed mra1exei closed 2 years ago

mra1exei commented 2 years ago

Greetings. Can you tell me how to enable logs in rdpgw. Built and raised from the wizard in the docker, trying to check authentication connection via keycloak, but it gives a security error. Maybe the logs will tell me more details.

Thanks. image

update: I set up this connection, client -> https:443(public cert domain.com) -> reverse proxy -> https:9443 -> rdpgw -> . rdpgw -> keycloak in docker http://keycloak:8080/realms/test rdpgw -> rds server :3389 + internal cert (domain.local)

bolkedebruin commented 2 years ago

logs are by default enabled and log to stderr/stdout.

If you are using mstsc on a recent windows installation it is required that you trust the certificate issued by the gateway and the rds server, otherwise the client won't connect.

mra1exei commented 2 years ago

Thank you. It was my mistake, on the reverse proxy proxying was configured through http stream, and should be through tcp The error occurred when the reverse proxy was nginx, I configured haproxy in tcp mode and the connection went through.