[omniORB] Omniorb tunnel

mdavis@rwii.com mdavis@rwii.com
Sat, 25 Nov 2000 15:35:57 -0500


Actually, I think you CAN.  You can use the ORB commandline parameters for
initial host and initial port to point to machine X port Y, then you make a
tunnel from Machine X and port Y to the REAL port.  It is quite similar to
poking a hole through a firewall to get at objects.  You make the software
behave as if it is running on the firewall machine.


On Fri, Nov 24, 2000 at 11:01:11AM +0000, Sai-Lai Lo wrote:
> >>>>> Marco Catunda writes:
> 
> > 	I am trying to use omniorb on ssh tunnel security.
> > 	Can I do it with omniorb? How?
> 
> You can't do this without modifying the source.
> 
> If you still want to have a go, look at src/lib/orbcore/tcpSocketMTfactory.cc
> 
> The function realConnect() is called when the ORB wants to open a
> connection. Here you can add a hook to your code which essentially have to:
> 
> 1. Check if the destination is one of those you want to tunnel through ssh
> 2. If 1 is yes, start ssh with the proper tunnel setup
> 3. Then connect to the local port where you have asked ssh to set up.
> 
> Of course you have to do other housekeeping, such as to keep track of the
> ssh processes you have forked and when to clean them up, etc.
> 
> 
> -- 
> Sai-Lai Lo                                   S.Lo@uk.research.att.com
> AT&T Laboratories Cambridge           WWW:   http://www.uk.research.att.com 
> 24a Trumpington Street                Tel:   +44 1223 343000
> Cambridge CB2 1QA                     Fax:   +44 1223 313542
> ENGLAND
> 

-- 
Mike Davis           Real World Interface, a division of iRobot Corp.
mdavis@rwii.com      http://www.irobot.com/
603-532-6900 x215    fax : 603-532-6901