RBF into HTTP: proxy-ware the SERVER

Here you will find help for frequently asked questions as well as for your specific question.

RBF into HTTP: proxy-ware the SERVER

Postby Mikegio73 » 2011-02-25 09:23

Hello everyone,
for my current project I'm trying to make the connection out of the uvnc, I mean the connection that start from server to the repeater, proxy-ware.
The scenario is as follows: I have to assist a user who is behind a firewall and a proxy, which allows him to go to all sites, but only through proxy itself. I have no chance to allow the server to connect to port 5500 directly to a repeater.
The idea is to pack the RBF in HTTP protocol, send it by proxy to a repeater, which will be modified to unpack the protocol that will use the port 80, in RBF and then follow the normal FLOW to the client.
Has anyone already done something? There are things to read that will face this request?

thanks
Mikegio73
8
8
 
Posts: 13
Joined: 2010-12-30 10:01

Re: RBF into HTTP: proxy-ware the SERVER

Postby Rudi De Vos » 2011-02-25 10:57

Latest server already has the -httpproxy to encapsulate the data stream over a https proxy ( using CONNECT)

Drawback is that the viewer or repeater need to run on port 443.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5713
Joined: 2004-04-23 10:21

Re: RBF into HTTP: proxy-ware the SERVER

Postby Mikegio73 » 2011-02-25 12:11

Hello Rudi, thank you for your reply.
This is the string I'm using now, on an XP machine where I put the proxy in the browser and of course i do not have internet access.

service_commandline=-autoreconnect ID:2017 -connect EXTERNALIP:443 -httpproxy

But in the log of the repeater, I do not get any request, and also I do not see in the proxy requests from the client.
Surely it is my fault that I did not clear where to configure vnc to use the proxy.
The repeater is configured properly to listen instead sulal prota 443, and when the firewall is not blocking the ports, the server can not connect properly and record the ID.

thanks
Last edited by Mikegio73 on 2011-02-25 12:11, edited 1 time in total.
Mikegio73
8
8
 
Posts: 13
Joined: 2010-12-30 10:01

Re: RBF into HTTP: proxy-ware the SERVER

Postby Rudi De Vos » 2011-02-25 12:31

does it work running as application ?
We extract the iexplorer proxy settings, but running as service the user is system. It could be that for this user no proxy exist.

I'm not sure, but possible -connect need to be the last command.
try -httproxy -connect

You can test it in non service mode ( by adding -run)
winvnc.exe -autoreconnect ID:2017 -httpproxy -connect EXTERNALIP:443 -run
This is the equivalent of service mode
service_commandline=-autoreconnect ID:2017 -httpproxy -connect EXTERNALIP:443
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5713
Joined: 2004-04-23 10:21

Re: RBF into HTTP: proxy-ware the SERVER

Postby Mikegio73 » 2011-02-25 12:48

One step ahead: now it is connecting, but with error on the REPEATER.
Here what happens:


UltraVnc Fri Feb 25 13:43:48 2011 > addViewerList(): Viewer added to list: code = 2017, index = 0
UltraVnc Fri Feb 25 13:43:48 2011 > findServerList(): server not found (code = 2017)
UltraVnc Fri Feb 25 13:43:48 2011 > acceptConnection(): respective server has not connected yet
UltraVnc Fri Feb 25 13:44:44 2011 > routeConnections(): new server connecting, accepting...
UltraVnc Fri Feb 25 13:44:44 2011 > acceptConnection(): connection accepted ok from ip: 93.x.x.x
UltraVnc Fri Feb 25 13:44:44 2011 > nonBlockingRead(): start
UltraVnc Fri Feb 25 13:44:49 2011 > nonBlockingRead(): returning 12 bytes
UltraVnc Fri Feb 25 13:44:49 2011 > checkIdCode(): RFB 003.008
Ø¿ is not IdCode string
UltraVnc Fri Feb 25 13:44:49 2011 > parseHostAndPort() start: id = RFB 003.008
Ø¿
UltraVnc Fri Feb 25 13:44:49 2011 > parseHostAndPort() end: host = RFB 003.008
Ø¿, port = 5900
UltraVnc Fri Feb 25 13:44:49 2011 > acceptConnection(): Mode 1 connections only allowed from viewers, closing connection
UltraVnc Fri Feb 25 13:44:51 2011 > routeConnections(): new server connecting, accepting...
UltraVnc Fri Feb 25 13:44:51 2011 > acceptConnection(): connection accepted ok from ip: 93.x.x.x
UltraVnc Fri Feb 25 13:44:51 2011 > nonBlockingRead(): start
UltraVnc Fri Feb 25 13:44:56 2011 > nonBlockingRead(): returning 12 bytes
UltraVnc Fri Feb 25 13:44:56 2011 > checkIdCode(): RFB 003.008
Ø¿ is not IdCode string
UltraVnc Fri Feb 25 13:44:56 2011 > parseHostAndPort() start: id = RFB 003.008
Ø¿
UltraVnc Fri Feb 25 13:44:56 2011 > parseHostAndPort() end: host = RFB 003.008
Ø¿, port = 5900
UltraVnc Fri Feb 25 13:44:56 2011 > acceptConnection(): Mode 1 connections only allowed from viewers, closing connection
UltraVnc Fri Feb 25 13:45:06 2011 > routeConnections(): new server connecting, accepting...
UltraVnc Fri Feb 25 13:45:06 2011 > acceptConnection(): connection accepted ok from ip: 93.x.x.x
UltraVnc Fri Feb 25 13:45:06 2011 > nonBlockingRead(): start
UltraVnc Fri Feb 25 13:45:11 2011 > nonBlockingRead(): returning 12 bytes
UltraVnc Fri Feb 25 13:45:11 2011 > checkIdCode(): RFB 003.008
Ø¿ is not IdCode string
UltraVnc Fri Feb 25 13:45:11 2011 > parseHostAndPort() start: id = RFB 003.008
Ø¿
UltraVnc Fri Feb 25 13:45:11 2011 > parseHostAndPort() end: host = RFB 003.008
Ø¿, port = 5900
UltraVnc Fri Feb 25 13:45:11 2011 > acceptConnection(): Mode 1 connections only allowed from viewers, closing connection
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

And the viewer cannot connect.
Mikegio73
8
8
 
Posts: 13
Joined: 2010-12-30 10:01

Re: RBF into HTTP: proxy-ware the SERVER

Postby Rudi De Vos » 2011-02-25 15:18

Are you using 1095 or 10951.

1095 only have partial support for this options.
(server->proxy->viewer)

If you test with 1095 try with 10951 first.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5713
Joined: 2004-04-23 10:21

Re: RBF into HTTP: proxy-ware the SERVER

Postby Mikegio73 » 2011-02-25 15:27

My winvnc.exe about says:

win32 server 1.0.9.5
Build nov 27 2010

Ok, i will try 1.0.9.5.1 and let you know.


Thanks a lot.
Last edited by Mikegio73 on 2011-02-25 15:38, edited 2 times in total.
Mikegio73
8
8
 
Posts: 13
Joined: 2010-12-30 10:01

Re: RBF into HTTP: proxy-ware the SERVER

Postby Mikegio73 » 2011-02-25 16:43

Well, with 1.0.9.5.1 it works, it is not so responsive like the direct connection, but it is working.

Now i will look for a solution in order to run it in service mode, reading proxy parameter to use in other way.

Any suggestions are welcome!!!


Thanks to Rudi.
Mikegio73
8
8
 
Posts: 13
Joined: 2010-12-30 10:01

Re: RBF into HTTP: proxy-ware the SERVER

Postby Rudi De Vos » 2011-02-25 21:46

If it is for supporting your own systems you can define the proxy at
system level ( global proxy for all users).

For a unknown system it's hard to predict how the registry is set.
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5713
Joined: 2004-04-23 10:21


Return to General help

Who is online

Users browsing this forum: No registered users and 2 guests