ssh -D 8080 user@example.com
firefox &
Instruct browser to use socks proxy on localhost:8080, then go to about:config and set to true network.proxy.socks_remote_dns
localhost:8080
about:config
network.proxy.socks_remote_dns