From: Jamis Buck Date: 2004-07-08T04:49:17+09:00 Subject: Re: Net::SSH and port forwarding Dick Davies wrote: > * Jamis Buck [0736 17:36]: > > >>Set up port forwarding on port X. When a connection is recieved, parse >>the request. If the request matches format A, forward the request to >>boxA:portA. If the request matches format B, forward the request to >>boxB:portB. Etc. All of this happens transparently to the client that >>connected to the local port. > > >>Would this be useful for anyone? > > > It would save you having to open multiple tunnels, at least in theory, > which would be very handy in a lot of circumstances. > Actually, this is something you wouldn't be able to do even with multiple tunnels, since you're still binding to a single port on the localhost. You're just forwarding from that one port to multiple different remote hosts, based on the format of the request. As I said, it sounds cool, but I wonder how useful it would be in practice. It should be in the next version of Net::SSH, regardless. :) -- Jamis Buck jgb3@email.byu.edu http://www.jamisbuck.org/jamis "I use octal until I get to 8, and then I switch to decimal."