I found out this recently. SSH can be used as a socks proxy!

ssh -f -N -D 0.0.0.0:1080 yourhost.com

I'm using it with my webfaction account.
It's nice, especially when you're in China and behind the fuc**** gfw!