random($foo)

New Code: autotunnel #

random($foo) is the personal site of Leonard Lin, where I collect shiny things and publish original writing and code. more »

It’s been years since I wrote my original post on using SSH tunnels for SOCKS proxying, but since I’ve been meaning to dig into launchd more, I figured it was time for an upgrade.

Way too many hours later, I present autotunnel. It’s a couple configs/scripts that work together to automatically (re)create your SSH tunnels when you’re set to a Network Location that requests a SOCKS proxy. It’s now a one step process (change your Network Location in the Apple menu) to get secure.

(I also found an app that’s quite similar, sheepsafe. It’s a Ruby-based daemon that does automatic location switching based on “trusted” networks. It switches post-network connection (WatchPaths on SystemConfiguration) but I don’t know if that’s a practical concern or not.)

  • http://www.facebook.com/jon.aslund Jon Åslund

    Instead of using ssh tunnels and socks proxy, have you tried sshuttle? http://apenwarr.ca/log/?m=2011…

  • http://randomfoo.net/ lhl

    Nope, haven't tried it. Looks pretty neat, but sort of invasive. How well does it deal w/ spotty connections?

    There's also Sidestep: http://chetansurpur.com/projec…