SSH tunnels are great for this sort of thing. I use them all the time at work. Plus you get encryption.
| [reply] |
POE just doesn't seem like the way to go here... Why not just do a straightforward proxy server?
POE can do a lot of stuff, but it seems like overkill for this application - just open connections to both sides (or listen on one side, then connect on the other) then use select to sysread whenever there's data on one channel, and syswrite it to the other...
You could get fancier than that, but I doubt you need to...
PS: Or you could just use Net::Proxy :)
| [reply] |
mfwd is an utility I wrote a long time ago that does exactly that. It is written in C and the code is available from the SourceForge CVS. I have not been maintaining it, but it is pretty simple, so any compile or runtime error should be easy to fix. At least, it still compiles cleanly on my Linux box.
There were also a popular Perl script that implemented a TCP proxy, but I can remember its name :-(
But anyway, my advise would be also to use something more standard like SSH tunnels if you can! | [reply] |