Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

RBF into HTTP: proxy-ware the SERVER

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

RBF into HTTP: proxy-ware the SERVER

Post by Mikegio73 »

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
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: RBF into HTTP: proxy-ware the SERVER

Post by Rudi De Vos »

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.
Mikegio73
8
8
Posts: 13
Joined: 2010-12-30 10:01

Re: RBF into HTTP: proxy-ware the SERVER

Post by Mikegio73 »

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.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: RBF into HTTP: proxy-ware the SERVER

Post by Rudi De Vos »

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
Mikegio73
8
8
Posts: 13
Joined: 2010-12-30 10:01

Re: RBF into HTTP: proxy-ware the SERVER

Post by Mikegio73 »

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.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: RBF into HTTP: proxy-ware the SERVER

Post by Rudi De Vos »

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.
Mikegio73
8
8
Posts: 13
Joined: 2010-12-30 10:01

Re: RBF into HTTP: proxy-ware the SERVER

Post by Mikegio73 »

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

Post by Mikegio73 »

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.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: RBF into HTTP: proxy-ware the SERVER

Post by Rudi De Vos »

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.
Post Reply