tags:

views:

524

answers:

1

Hi,

First time in Stackoverflow and I'm hoping someone can help me.

I'm looking at a proof of concept to pass RDP traffic through a TCP Proxy/tunnel which will pass through firewalls using HTTPS.

The problem has to do with deploying images to machines and so it can't be assumed that the .NET framework will be present, so C++ is being used at the deployment end of a connection.

The basic system I have at present is a program which listens for client connections on a port then passes any data to a WCF service which stores it as a byte array. A deployment machine (using GSoap and C++) polls the WCF service for messages and if it finds them then passes the data onto the target server process via sockets. I know this sounds horrible, but it works for simple test clients and server passing data to and from simple test client and server programs via this WCF/C++/C# proxy layer.

But I have to support traffic from RDP, VNC and possibly others, so I need a transparent proxy to do this and am wondering whether the above approach is worth pursuing. I've read up on SSH tunneling and that seems a possibility. My basic question is is it possible to tunnel RDP traffic over HTTPS using custom code.

Thanks John

A: 

While I have not coded a solution to this, someone else has. I use FreeCap every day to connect via RDP through an HTTP proxy.

The full source code is available (looks to be Delphi, but you can extrapolate the pertinent parts). Be aware, though, it's licensed under the GPL.

Ryan Emerle