.de URL \\$2 \(laURL: \\$1 \(ra\\$3 .. .if \n[.g] .mso www.tmac .TH 1 2023-12-14 "3.9.0" "FreeRDP" .SH NAME \- A server binary allowing MITM proxying of RDP connections .SH SYNOPSIS .B [\fB-h\fP] [\fB--help\fP] [\fB--buildconfig\fP] [\fB--dump-config\fP \fB\fP] [\fB-v\fP] [\fB--version\fP] [\fB\fP] .SH DESCRIPTION .B can be used to proxy a RDP connection between a target server and connecting clients. Possible usage scenarios are: .IP Proxying Connect outdated/insecure RDP servers from behind a (more secure) proxy .IP Analysis Allow detailed protocol analysis of (many) unknown protocol features (channels) .IP Inspection MITM proxy for session inspection and recording .SH OPTIONS .IP -h,--help Display a help text explaining usage. .IP --buildconfig Print the build configuration of the proxy and exit. .IP -v,--version Print the version of the proxy and exit. .IP --dump-config \fB\fP Dump a template configuration to \fB\fP .IP \fB\fP Start the proxy with settings read from \fB\fP .SH WARNING The proxy does not support authentication out of the box but acts simply as intermediary. Only \fBRDP\fP and \fBTLS\fP security modes are supported, \fBNLA\fP will fail for connections to the proxy. To implement authentication a \fBproxy-module\fP can be implemented that can authenticate against some backend and map connecting users and credentials to target server users and credentials. .SH EXAMPLES /some/config/file --dump-config /some/config/file .SH PREPARATIONS 1. generate certificates for proxy \fBwinpr-makecert -rdp -path . proxy\fP 2. generate proxy configuration \fB --dump-config proxy.ini\fP 3. edit configurartion and: * provide (preferrably absolute) paths for \fBCertificateFile\fP and \fBPrivateKeyFile\fP generated previously * remove the \fBCertificateContents\fP and \fBPrivateKeyContents\fP * Adjust the \fB[Server]\fP settings \fBHost\fP and \fBPort\fP to bind a specific port on a network interface * Adjust the \fB[Target]\fP \fBHost\fP and \fBPort\fP settings to the \fBRDP\fP target server * Adjust (or remove if unuse) the \fBPlugins\fP settings 3. start proxy server \fB proxy.ini\fP .SH EXIT STATUS .TP .B 0 Successful program execution. .TP .B 1 Otherwise. .SH SEE ALSO wlog(7) .SH AUTHOR FreeRDP