Configure Firefox To Use SSH SOCKS Proxy Tunnel

The following instructions need to be done AFTER your ssh client (i.e. PuTTY) has been configured to open a secure tunnel. Connecting through the tunnel with Firefox (or any other program) only works while the tunnel is actively open. This means you must stay logged in for the entire time you are browsing. For instructions on downloading and configuring PuTTY, click here.

To configure Firefox to work with the proxy follow these instructions:

1. Open FireFox.
2. Click ‘Tools’ at the top to pull down the Tools Menu.
3. From the menu, select ‘Options…’ at the very bottom. This opens the Options window.
4. Click ‘Advanced’ at the top right corner of the window.
5. Click the ‘Network’ tab.
6. Where it says ‘Configure how Firefox connects to the Internet’ click the ‘Settings…’ button. This opens the Connection Settings window.
7. Select ‘Manual proxy configuration:’.
8. Where it says ‘SOCKS Host:’ enter localhost into the box.
9. 9) Where it says ‘Port:’ enter 9853 into the box.
10. Click the ‘OK’ button.
11. Click the ‘OK’ button on the previous window.
12. In the browser location bar (the place where you type web addresses), type about:config and press Enter. This opens a different set of Firefox preferences.
13. Where it says ‘Filter:’ at the top, type network.proxy.socks. The list of preferences will automatically change to show your proxy preferences.
14. Highlight ‘network.proxy.socks_remote_dns’ by clicking it only once. Then, right-click it. This opens a small pull-down menu. Select ‘Toggle’ from the menu to change its value to ‘true’. This adds privacy by preventing DNS queries from leaking. This is the reason why Firefox is recommended over other browsers for using this service.
15. Close Firefox and restart it.
16. Go to a site like to check and make sure your IP address shows up as the proxy address and not your real IP.


4 Responses to “Configure Firefox To Use SSH SOCKS Proxy Tunnel”

  1. Jimmy Vermeer Says:

    I followed the directions on this page and it broke my browser. I undid all my changes and now it’s okay again.

    The proxy server is refusing connections

    Firefox is configured to use a proxy server that is refusing connections.

    * Check the proxy settings to make sure that they are correct.

    * Contact your network administrator to make sure the proxy server is working.

  2. Sheikh Jafar Tarique Says:

    Jimmy thanks for your comments .. You are half done ..
    Now You have to create a ssh tunnel ( as our goal is to hide my own real IP instead use a fake one) .. in that case you need to make a ssh tunnel using this cmd –

    ssh -C2qTnN -D 9853

    [PS -Type the password and it wont return you any shell]

    ssh and direct connect (SOCKS5) : The following line will start the ssh client and connect to Port 9853 on localhost ( will listen for requests and send them to the remote machine. The remote machine will then send the packets out as if they originated from itself. The ssh options are in the man page of ssh, but to summarize them in order: Compression, SSH2 only, Quite, Force pseudo-tty allocation, Redirect stdin from /dev/null, and Place the ssh client into “master” mode for connection sharing.

    Now hit and see its showing the ip :))

  3. rolando Says:

    Hi, I did make each step, but don’t work, well, the SOCK Proxy, I think that “works” because if I click a Link of a .php file this try to download, but other pages, say ready and don’t show the site.

    I have to do something in the server?

    • Sheikh Jafar Tarique Says:


      You need to made a tunnel after completing those 16 steps. did you try that? Please see my response on Jimmy’s comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: