xpra icon
Bug tracker and wiki

Changes between Version 32 and Version 33 of ProxyServer


Ignore:
Timestamp:
05/08/18 16:52:18 (2 weeks ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ProxyServer

    v32 v33  
    5353xpra proxy :20 --auth=allow --bind-tcp=0.0.0.0:14501
    5454}}}
    55 * if only one session is accessible for this user, you can connect via the proxy with:
     55* if only one session exists for this user, you can connect via the proxy with:
    5656{{{
    5757xpra attach tcp://:foo@PROXYHOST:14501/
     
    107107== Detailed Example ==
    108108
    109 * Start a proxy server on port 8443 using the "{{{multifile}}}" authentication module (we will call this server {{{PROXYHOST}}}):
     109* Start a proxy server on port 14501 using the "{{{multifile}}}" authentication module (we will call this server {{{PROXYHOST}}}):
    110110{{{
    111 xpra proxy :100 --bind-tcp=0.0.0.0:8443 --auth=multifile:filename=./xpra-auth
     111xpra proxy :100 --bind-tcp=0.0.0.0:14501 --auth=multifile:filename=./xpra-auth
    112112}}}
    113113* Start the session we wish to access via the {{{PROXYHOST}}} (we call this {{{TARGETHOST}}} - for testing, this can be the same host as {{{PROXYHOST}}}):
     
    119119echo "foo|secretpassword|1000|1000|tcp:192.168.1.200:10000|EXAMPLE_ENV=VALUE|compression=0" >> ./xpra-auth
    120120}}}
    121 * create the password file on the client:
     121* connect the client through the proxy server:
     122xpra attach tcp://foo:secretpassword@$PROXYHOST:14501/
     123
     124To hide the password from command line history and process list, use a password file:
    122125{{{
    123126echo -n "secretpassword" > password.txt
    124 }}}
    125 * connect the client to the proxy server:
    126 {{{
    127 xpra attach --username=myusername --password-file=./password.txt $PROXYHOST:8443
     127xpra attach --password-file=./password.txt tcp://foo@$PROXYHOST:14501/
    128128}}}
    129129