Lost Password? No account yet? Sign up! Why bother?
  • Narrow screen resolution
  • Wide screen resolution
  • Auto width resolution
  • Increase font size
  • Decrease font size
  • Default font size

SmallNetBuilder - Small Network Help

  
Home arrow Security arrow Security How To arrow How To Securely Web Browse via an SSH Tunnel
How To Securely Web Browse via an SSH Tunnel Print E-mail
Brandon Hogue   
March 25, 2008

Introduction

These days, you can find a hot spot pretty much anywhere, allowing you free access to roam the Internet without much of a problem. But this isn't exactly a safe way to browse the web, securing any content you might log in with, or post on a webpage that's not the most secure. On the other hand, you might just not want people to know what you're browsing.

I've found many uses for the technique that I'll be describing; it even beats almost all of the content filters out today, providing the ability to securely access whatever you want, so long as you have a few small requirements.

Client / Server Setup

You'll first need an SSH daemon. You can find these anywhere and most webpage hosts give you a login for one when you purchase hosting. You can also use a Linux box of some sort on your home network (This is my method of choice.) This will run remotely, you just need to be able to log into it using an SSH client.

Next, you need an SSH client that supports SSH Tunneling. I've used PuTTy for years, so it's my client of choice.

Finally, you need a network that you don't trust, or that you would just like to cover your tracks on.

I use Firefox for my secure browsing so that I don't have to worry about constantly reconfiguring my browser. I just log into PuTTY, and then open Firefox. This method leaves my Internet Explorer untouched.

I'm assuming the SSH server is already set up. You just have to be able to remotely log in using an SSH client. The majority of Linux distros support this right after the OS is installed (assuming you didn't install a firewall).

I'm using Ubuntu 7.10 server for my SSH daemon. It does everything from webpage hosting, to e-mail, and even backups. This will not affect anything running on that server, so for the most part, it's completely safe.

Now we need to configure PuTTy to connect using Tunnels. Open PuTTy, scroll down the left side to SSH, then Tunnels. In Source port, enter a number that you won't normally use, I chose 8080. Leave the Destination blank, set the first option to Dynamic, and the second to Auto. Click the Add button.

Setting the source port

Figure 1: Setting the source port

You should now see D<port> In my case, I have D8080 (Figure 2).

After setting the source port

Figure 2: After setting the source port

From here, click Session at the top, enter the SSH server's PUBLIC IP address. You can either use an IP address or a host name. If you have a dynamic IP address, you can use a Dynamic DNS service to make things a lot easier when trying to connect to your home network. Make sure you've selected SSH (default most of the time) and don't worry about changing the port from 22 unless you changed the default SSH port on the box you plan to use.

Type a name in the Save Session so you don't have to go through all of this again. I'm original, so I use Test. Click Save. The name should now appear in the box under Default Settings. If you double-click on the saved name, PuTTY will connect with all of the settings you just entered. You can also hit Load which will load the settings into the client before hand, allowing you to edit them as needed.



Tags: How To, Proxy, SSH,

Related Articles:

How To Back Up Offsite for Free with rsync
A DIY SSL VPN with SSL-Explorer - Part 1
How To: Fixing DNS problems
A DIY SSL VPN with SSL-Explorer - Part 2
How To Securely Browse from Anywhere using Hamachi and Squid
 

Most Read

 
 

Over At The Forums

New firmware 2.1.0
see also http://forum.qnap.com/viewtopic.php?f=142&t=10052 i had already the beta's running with also iscsi. Many more features are there.

Your thoughts about QNAP TS-109 II
I'm at the point where DVD backups for my photos,mp3 is taken too much of my time. I'm thinking of using the TS-109 II to...

OpenWRT not working as wireless repeater bridge on Netgear WGR614L
Hi , I have flashed my wgr614l with openwrt firmware . I have tested it for wireless client bridge mode and it is working fine but I...

OpenWRT working as wireless client bridge on Netgear WGR614L
Hi everybody , I have flashed my Netgear WGR614L with openwrt firmware and have tested it for client bridge mode . It is working grt .......

DIY or buy used?
Hi everybody, I am looking for a new NAS solution for my office. 1. SITUATION I use with video files and animations a lot. The big video...

Slideshows

NETGEAR ReadyNAS Pro Western Digital ShareSpace QNAP TS-509 Pro D-Link DNS-343 4-Bay Network Storage Enclosure Thecus N3200 RAID 5 NAS D-Link DIR-628 RangeBooster N Dual Band Router More

Win This!

Enter to Win!

You could win a Trendnet TEW-633GR Wireless N Gigabit Router and two TEW-621PC 300Mbps Wireless N-Draft PC Cards

Learn How!

 

Ldr:0.00170302391052, Rct:0.00585985183716, Sky:0.0076048374176, Tlink:0.0853979587555, TopPG:0.0854918956757, GQV:0.0856409072876 seconds to load.