Simbiosis

Communiques from the wilderness

Getting out to get back in

I have a server box I look after that is buried deep inside a private network, behind the most restrictive of firewalls, which normally means I have to physically visit the site to perform any maintenance. To be able to do my work all I would need is an SSH connection. I have previously read about using HTTP proxies pointed at HTTPS ports to SSH out of restricted networks, but what about back in. So I put together this little python app, after finding no other solutions to my situation.

What it does is connect out through the http proxy to my server app, which is running on port 443 (1). When the connection is created the server will create a listening socket, waiting for an ssh client to connect(2). Then my client app will create a socket connection to the local ssh server on the box inside the network (3), and the client and server apps will proxy the data between the ssh client and server.

Pretty straight forward really. I’m just a little concerned about the http proxy killing the connection. Perhaps I need to add an automatic reconnect method, and maybe some auth, but at least I can rely on ssh for the TLS.

Project page

powered by performancing firefox

February 25, 2007 Posted by Nigel | python, technology | | No Comments Yet

Sound and S3 (suspend to ram)

Following S3 (suspend to ram) finally working on my laptop a new side-effect, or hidden bug has emerged. After a prolonged suspension (>5 min) parts of the sound system stop working. The symptoms follow:

  • ALSA apps like RhythmBox and Xine -A alsa freeze (Xine always, RhythmBox always)
  • ALSA apps like aplay work
  • OSS apps like Xine -A oss work
  • Reloading alsa drivers does not help

I’m going to post this around the forums and report any successes back here.

Update: Kernel 2.6.20 seems to fix this issue. I don’t know which patch does it though.

Update: Nope, still broken!

Update: I notice that Banshee, Rythmbox and gstreamer-properties all freeze. The common component, gstreamer. hmm. Just more leads at the moment.

powered by performancing firefox

February 4, 2007 Posted by Nigel | linux | | 1 Comment