ssh as a SOCKS proxy, Firefox uses it, Flash uses it.
about:config set network.proxy.socks_remote_dns to true.