In
File -> Preferences -> Advanced -> Network -> Settings
Manual proxy configuration:
SOCKS Proxy 127.0.0.1 Port 8080 check the box for "SOCKS v5"
Enter
about:config
in URL field and edit:
Preference Name Status Type Value network.proxy.socks_remote_dns user set boolean true
ssh -C2qTnN -D 8080 username@remote_machine.com