xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Changes between Version 19 and Version 20 of ProxyServer


Ignore:
Timestamp:
07/23/16 11:26:41 (5 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProxyServer

    v19 v20  
    1919Depending on the [/wiki/Authentication Authentication] module configured, the proxy server can expose:
    2020* all local xpra sessions after user authentication
    21 * a custom list of sessions configured through the "file-auth" mechanism
     21* a custom list of sessions configured through the "multifile" auth mechanism
    2222}}}
    2323
     
    6161== File Authentication ==
    6262
    63 When used with the proxy server, the password file (see [/wiki/Authentication#Modules Authentication Modules]) should contain one user per line using the format:
     63When used with the proxy server, the password multifile (see [/wiki/Authentication#Modules Authentication Modules]) should contain one user per line using the format:
    6464{{{
    6565USERNAME|PASSWORD|UID|GID|SESSION_URI|ENV_VARS|SESSION_OPTIONS
     
    7373tcp:HOST:PORT
    7474}}}
    75  or
    76  {{{
     75or
     76{{{
    7777ssh:HOST:DISPLAY
    7878}}}
     
    9494== Detailed Example ==
    9595
    96 * Start a proxy server on port 443 using the "{{{file}}}" authentication module (we will call this server {{{PROXYHOST}}}):
     96* Start a proxy server on port 443 using the "{{{multifile}}}" authentication module (we will call this server {{{PROXYHOST}}}):
    9797{{{
    98 xpra proxy :100 --bind-tcp=0.0.0.0:443 --auth=file --password-file=./xpra-auth
     98xpra proxy :100 --bind-tcp=0.0.0.0:443 --auth=multifile:filename=./xpra-auth
    9999}}}
    100100* Start the session we wish to access via the {{{PROXYHOST}}} (we call this {{{TARGETHOST}}} - for testing, this can be the same host as {{{PROXYHOST}}}):
     
    108108* create the password file on the client:
    109109{{{
    110 echo "secretpassword" >> password.txt
     110echo -n "secretpassword" > password.txt
    111111}}}
    112112* connect the client to the proxy server:
     
    126126* the packets should now flow through between the client and the real server
    127127}}}
     128See also [ticket:1264#comment:3] for authentication between proxy and server.