Okay, so for whatever reason you want to bypass your companies firewall to browse websites without being limited by what you can see.

Some companies offer “alternative” access and some are super tight (only allowing news, company and a few other selected websites).This will allow you to connect to anything!

If you are hosting services at home, this will also allow you to connect to those internally. It is almost like a VPN connection to your home environment, without setting up complicated VPN servers. Most of the time companies block VPN ports so that isn’t an option in this scenario.

Basically how this works is you are utilising port 443 (encrypted SSL for https traffic) to connect over the internet using SSH v2. All traffic will be sent over the encrypted SSH v2 tunnel through the internet, through your router and will end up on your Linux machine. From there it will pass traffic back out through your router and to the internet,…. unblocked!


  • Router (You will need to be able to log in and forward ports)
  • A static IP at home or a dynamically registered DNS record eg. DynDNS (free)
  • Linux installed on a computer (This can either be a virtual server running on ESX or if you don’t know ESX you can install VMware 2 or VMware Workstation) – Free

For this example I am going to use ESXi

  1. Download Linux, use the one you are most familar with or if you are not familar with any, use the one I am using in this example (Debian) and make it available in your virtualisation software (in this case I had to upload it to the vmware store)
  2. Create a new Linux server, leave all options as default unless you know what you are doing. (This needs to be on the same subnet as your router). I can’t go through the steps as it is very dependant on what Linux flavor and virtualisation software you are using.
  3. Power on the server, log in, configure network adapter and update all software (This example is Debian, very important to update and keep updated as it will be internet facing!)
    1. su – root
      1. Enter password for root
    2. Add a new user as you cannot connect using “root” for shelling
      1. # adduser <username>
    3. vi /etc/network/interfaces (configure network)
      1. iface eth0 inet static
      2. address <ip address you want to statically assign>
      3. netmask <subnet of network>
      4. gateway <proably your home networks router ip address>
      5. dns-nameservers <probably your routers ip address> alternatively you can use googles address
    4. Save and close interfaces configuration file
    5. ping google.com (test to ensure you can ping the world)
    6.  apt-get update (update sources)
    7.  apt-get upgrade (upgrade packages)
  4. Install SSH server on the Linux server
    1.  apt-get install openssh-server
  5. Configure SSH to listen on port 443
    1.  vi /etc/ssh/sshd_config
    2. Change “Port 22” to “Port 443” (If multiple ports are required, add another line and add “Port ##” – ## = port required
    3. Save and close out of sshd_config
  6. Reboot
    1. shutdown -r now
  7. If you do not have a static IP address (you probably don’t) then you will need to create a dynamic hostname and install the application on your linux server to update it. I am going to use DynDNS for this example. Others include easydns, dslreports, zoneedit
  8. Go to http://dyn.com/dns/ and register account and hostname
    1. Sign up for an account
    2. Create a hostname
    3. Log out of DynDNS
  9. Install DynDNS client on Linux – Debian
    1. apt-get install ddclient
    2. Select www.dyndns.com as your DNS service provider
    3. Type in your username from step 8a
    4. Type in your password from step 8a
    5. Find public IP using “checkip.dyndns.com?” Select “Yes” and press enter
    6. Select method for updated names “from list” and select “OK”
    7. Select the hostname from step 8c
  10. Test a ping from your workstation to the server (Assuming you are using Windows)
    1. Start /Run / cmd
    2. (ping ipaddress)
  11. Download Putty from here and open application
  12. Type in the ip address in the “host name” field and change the port to “443”, ensure “SSH” is selected as the connection type and click “Open”
  13. You should be prompted with a certificate warning if you are connecting for the first time, click “Yes”
  14. Login using the credentials you specified in step 3b

Configure Router

Configure your router to port forward “443” from the internet to your newly created Linux server. If you don’t know how to do this then you shouldn’t be doing this at all or at the very least you are going to struggle to get this going… There are many hundreds if not thousands of routers out there with different screens, I cannot guide you through the process. If you have a manual for the router, please read it, if you don’t then find a manual on the internet for the router. Most routers have a web interface, open up your favourite internet browser and type in http://ipaddressofrouter. There will be settings under “Firewall” or “NAT” or something along those lines.

From Office

  1. Download Putty from here and open the application
  2. Type in the static IP address or the dynamic DNS you setup in “Host Name” and change the port to “443”. Ensure “SSH” is selected as the connection type and click “Open” (same as when you connected from home).
  3. Expand “Connection” expand “SSH” and click “Tunnels” on the left hand side.
  4. Put “6667” into the “Source Port”
  5. Select “Dynamic” if not already selected
  6. Select “IPv4” if not already selected
  7. Click “Add” – You should now have an entry in “Forwarded Ports” as “4D80”
  8. Go back to “Session” on the left hand side
  9. Type in a name you would like to save your session as in “Saved Sessions” and click “Save”
  10. Double click on the saved session to establish a new connection home
  11. Click on “Yes” to accept the security certificate
  12. Log into server

Once you have a connection established you can leave it logged in to allow the traffic to be passed. What I do is run a ping on that session to say anywhere on the internet, most of the time just to google.com or alike. This ensures the session will not time out. If you just run the ping google.com command it will continually run until you hold down ctrl c to stop the connection.

Now for the easier part, configuring your browser….

Configuring the Browser

Okay so I am assuming you are using Microsoft Windows in this case as most companies have Microsoft Windows installed on their desktops.

I recommend not using Internet Explorer as you can use that browser to connect to your office intranet etc. Download Mozilla Firefox – I am going to use it in this example as at 21st June 2013 it is version 21.0

  1. Open Mozilla Firefox
  2. Click on “Tools” and Options” at the top
  3. Click on the “Advanced” tab
  4. Click on the “Network” tab
  5. Click on “Settings”
  6. Click on “Manual proxy configuration”
  7. Remove anything in the fields with “0” as the ports
  8. Add “localhost” in the “SOCKS Host” field and change the port to “6667”
  9. Change the radio button to “SOCKS v5”
  10. Make sure there is only “localhost,” in the “No Proxy For” field.
  11. Click “OK” on all dialog boxes

All done, try and browse to a website you usually wouldn’t be able to connect to from work. A good one is usually facebook.com

I cannot be held responsible for any misuse of this, this is for educational purposes only.

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.