How to Setup a Proxy for Firefox over an SSH Tunnel on Ubuntu

Last updated:

WIP ALERT This is a work in progress

If you need to have your browser access the internet with another IP and you have SSH access a remote server, you can tunnel your connection through that server.

It looks like this:

$ ssh -D 9999 -f -C -N <user>@<remoteserver> -p 22

Configure Firefox to use that proxy

  • Open Preferences > Advanced > Network

  • Click Settings:

settings Click Settings, in the Network tab

  • Select Manual proxy configuration and add a SOCKS host (v5):

firefox-connection-settins Add a SOCKS host "localhost" and port 9999 (for a tunnel created as per the previous point)

References

Dialogue & Discussion