Published: Jun 4, 2020 by Midwire
Why would anyone want to mask or change their IP address? There are many possible reasons, but here are a few:
- You work remotely and your company requires a static IP address for whitelisting purposes
- Your ISP (school, company) locks down certain things so you cannot access them
- You don’t want reveal your physical location through your web traffic
It is a simple matter to build an SSH tunnel which will mask your true IP address, and subsequently your physical location.
First you need an SSH login account at a remote location. Linode offers stable Linux nodes for as little as $5/month. (NOTE: This link gives me a referral credit) You can also use Amazon Web Services or any other hosting provider or shell account provider. At a minimum you need SSH access.
Once you get your account setup, you can use SSH to build a tunnel which will look like this in concept.
Let’s see what your current IP address is by heading to IPChicken.com.
Let’s say your real IP address is abc.def.ghi
. Once you build the tunnel, all sites that you access will think your IP address is qwe.rty.uio
instead of abc.def.ghi
. And any traffic between Your Computer and the SSH Node will be encrypted.
To build the tunnel use SSH like this in your Terminal or iTerm app.
Here’s what those command-line switches mean:
It may prompt for your password. Now you can use port 8080 for any traffic you want to be masked.
Configure your browser to use an HTTP SOCKS proxy. For Firefox it looks like this:
Once you get that setup, head over to IPChicken.com again to see your brand new IP address!
Have fun!