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.
This means that all traffic will pass through the proxy before reaching the Internet.
This is useful for things like:
Accessing your university's proxy so that you can access things like paywalled articles and books.
Mask your IP
Simplest possible example: Set up an SSH tunnel to a proxy server
Description: create a SOCKS proxy on localhost:9999 (choose any unused port) over an SSH connection to
<remoteserver> on port
<portnum>, using username
<user>. You may be prompted for your password.
$ ssh -D 9999 -f -C -N <user>@<remoteserver> -p <portnum>
$ ssh -D 9999 -f -C -N email@example.com -p 52831
Example: Configure Firefox to use that proxy
Open Preferences > Advanced > Network
- Select Manual proxy configuration and add a SOCKS host (v5):
Example for Firefox v 57+
- Go to Settings > Preferences:
- Scroll down and click on "Settings" under "Network Proxy"
- Configure the proxy you create in the first step:
Install FoxyProxy for Chrome
Once it's installed, click the plugin icon and choose "Options":
Click "Add new Proxy" and configure it using the information from the first step:
Colors can help if you have multiple proxies.- Under "Proxy Details" add the proxy info proper:
- Under "General", give it some name and optionally some color:
- Now select the proxy from the dropdown to activate it: