Secure Web Browsing With An SSH SOCKS Proxy

The cool thing about this method is that it doesn't require any special software or services to be installed or configured. As long as you have an ssh client and server to connect to, you can securely browse the web.

The Important Bits

  1. Use your ssh client to setup “dynamic” application-level port forwarding. For Windows users, dynamic port forwarding was added to putty starting with 0.54. In linux:
  2. ssh -C -D 9999 -N -X YourUserID@Your.SSH.host.tld
  3. In Firefox, under Edit → Preferences → Advanced → Network → Settings choose Manual proxy configuration and set SOCKS Host: to localhost and Port: to 9999
  4. In Firefox, under the about:config configuration editor, set network.proxy.socks_remote_dns = true

References