xpra icon
Bug tracker and wiki

Opened 3 years ago

Closed 3 years ago

#474 closed task (fixed)

multiplexing a web server through the same port as the xpra server

Reported by: Antoine Martin Owned by: Smo
Priority: minor Milestone: 0.11
Component: server Version:
Keywords: Cc:

Description

Similar to #426, but this will allow us to only intercept xpra packets, regular packets can be forwarded to a web server which can respond to regular HTTP packets.


immediate benefits:

  • a scan will show the port as belonging to the web server and xpra remains hidden
  • we can server an html5 client page (#473) through the same server port

Attachments (1)

multiplex-web.patch (10.0 KB) - added by Antoine Martin 3 years ago.
PoC patch which does the multiplexing for http get requests only in "ServerBase?"

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by Antoine Martin

Attachment: multiplex-web.patch added

PoC patch which does the multiplexing for http get requests only in "ServerBase?"

comment:1 Changed 3 years ago by Antoine Martin

Owner: changed from Antoine Martin to Smo

r4948 implements this and will allow us to do #473 much more easily.

Here's how to test:

  • start a web server on port 8000:
    thttpd -p 8000
    
  • verify you can browse to it:
    xdg-open http://SERVERIP:8000/
    
  • start an xpra server with the tcp proxy option pointing to this web server we have just started:
    xpra start :10 --bind-tcp=10000 --start-child=xterm --tcp-proxy=127.0.0.1:8000
    
  • verify you can attach to this server:
    xpra attach tcp:SERVERIP:10000
    
  • verify you can hit the web server on this same port, ie: open your browser at:
    http://SERVERIP:10000/
    

comment:2 Changed 3 years ago by Smo

Resolution: fixed
Status: newclosed

Tested on Fedora 19 and Fedora 20 x86_64 with no issues.

Note: See TracTickets for help on using tickets.