I got it through the tunnel!
I couldn’t resist writing a little Java code to tunnel an application through a proxy, and it worked :). My class was clumsy and couldn’t handle multiple streams or sockets one after another yet, but it was enough for SSH. SSH opens a connection and keeps it open, unlike HTTP, which opens a connection for each request if we’re talking about HTTP/1.0. I’m using the past tense because once I’d written it and at least tested it with SSH, I found a project that solves the underlying problem. It’s called JSecureTunneling. It can connect to an SSH server on the internet through an HTTP proxy or a SOCKS proxy. And since SSH is no lightweight, it can use the protocol to set up further tunnels beyond the destination machine. That means I can tunnel just about anything :)…
I hope you don’t mind if I leave out a link to my source code. It might make a few people feel ill :]
Related articles
Related CZ Podcast episodes
- #217 · Ivo Lukačovič
On Windy, JavaScript and building companies. · Czech audio
- #3 · Java 6 SE, Vývoj webových aplikací
Dagi and Filemon discuss Java 6 and web application frameworks. · Czech audio
- #1 · Vývojová prostředí v Javě
The first CZ Podcast episode looks at Java development environments. · Czech audio