Big Red Button to Enable SSH Tunneling?
September 8, 2008 2:35 PM
Subscribe
I'm on a mac. I want to set a single configuration option somewhere to enable/disable using SSH tunneling for a bunch of different protocols/applications. Is this possible? How?
I have a mac laptop (OS X 10.5.4). I run a SSH server/DDNS client on my home router so that I can connect from the road and tunnel traffic through. Right now I run a shell script to open the tunnels and then manually reconfigure my apps to use the local endpoints. This is pretty easy for apps like IRC clients where I have the option of saying "okay, just connect to localhost:6667" when I launch the app. It's more of a pain for browsers and IM clients, where the setting is buried under several layers of Preferences. All the same, I'd like to expand my use of tunnels to protect my HTTP, IM traffic, etc.
What I'd like to do is find/write a script that opens the tunnels and updates a bunch of preferences at once, so my HTTP, DNS, IM traffic, etc are all tunneled with one action. Does anyone know of an app that does this? Is this even possible? (I imagine I'd have to restart most apps unless I can use Applescript to update the config while they're running)..
Bonus points for a solution that includes the option to "switch off" certain protocols if, say, I'm at a location with a big fat pipe and want to download something not-security-critical at full speed without running it through the tunnel (and my slower home connection).
For the record, the apps I'm curious about include Firefox/Safari, Adium, Colloquy, Mail.app.. there are others, but that's a minimum.
I suppose for the apps that accept a target server/proxy server as a command-line argument I could write shell scripts that specify the local tunnel endpoint and launch them through this script, but not all apps have this behavior and I'd prefer a cleaner solution if possible.
posted by Alterscape to computers & internet (9 comments total)
3 users marked this as a favorite
posted by iamabot at 2:48 PM on September 8, 2008