[omniORB] Omniorb tunnel
Haarek Ryeng
Haarek.Ryeng@datarespons.no
Sat, 25 Nov 2000 03:01:28 +0100
I don't know much about ssh, but what if you could trust the "sys-op" to manually establish all ssh connections and just let the orb go about its business as usual (no
modification of the source)? Or do you need special a socket API for ssh? This is pretty much how I use for instance CVS with ssh, but then again, I don't know about the
interia in CVS.
-HR
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
--
Haarek Ryeng
Senior Software Development Engineer
Data Respons AS, 1/50 Wolfe St,2300 Newcastle, NSW, Australia
Phone: +61 2 49261137 / +61 4 17421966 (work/mobile)