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

Browser Setup

Your client is set up! Now for the browser. As I stated earlier, I'm using Firefox. However this technique will work with anything you wish to mask. I even use it for remote desktop connections, effectively giving you your own VPN.

In Firefox, go to Tools > Options > Advanced> Network, then click the Settings button under connections.

Firefox Network Settings

Figure 3: Firefox Network Settings

From here, select Manual Proxy Configuration, then under SOCKS Host enter an IP address of 127.0.0.1 and the port number you entered earlier in PuTTy (8080 in this example).

In the No Proxy for box, enter localhost, 127.0.0.1. I use both since some OS's have different addresses for the loopback. However, localhost is the standard name in most cases. Select the SOCKS V4 radio button. V5 might also work, but I've never tried it. Click OK.

Completed Firefox Network Connection Settings

Figure 4: Completed Firefox Network Connection Settings

Now enter about:config into Firefox. Enter network.proxy.socks_remote_dns as the filter and double click on the parameter to change the value to true. This will use your SSH connection's DNS, and not the one you're currently connected to. Even when using the tunneled connection, your browser would normally be using the local DNS server. Using the remote, tunneled DNS server removes the risk of someone looking on the DNS server to see the web pages you're viewing.

You're now done! You should be browsing the web using your SSH server. Remember you have to stay connected for this to work. If your shell connection drops, you will lose your Internet access connection in that browser.

As I stated before, this can be used for anything that lets you set a Proxy to connect to the Internet (which is almost everything these days). Most of the settings look the same as the ones above in Firefox. Just make sure to specify a SOCKS proxy.

Happy secure surfing!



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

Question about changing ISPs and the Equipment
I am changing from AT&T to Comcast so I need a new modem. Based on my reading of various fora, the Moto SB5100 seems...

Will I have to reformat to create a RAID-1 mirror?
I am using Ubuntu 8.10 + webmin for Samba file sharing server. I currently have 1x1.5tb HDD, NTFS formatted. I would like to add a...

Polycom Soundpoint IP550/IP650 Review
I thought I would post a minor correction to your otherwise excellent review of these 2 phones. It is with regards to the power consumption of...

FreeNAS NTFS Mount Problem
Using FreeNAS 0.69....setup has been all OK except for trying to mount a 300G Maxtor sata drive formatted NTFS with 250G of data already installed. Management...

Router choice: Linksys WRT110 vs D-Link DIR-655
I am quite new to these boards, so please excuse me if I'm posting a trivial or previously answered question. After having looked at the Router...

Slideshows

Linksys Media Hub LaCie 5big Network Jazinga IP PBX NETGEAR ReadyNAS Pro Western Digital ShareSpace QNAP TS-509 Pro More
Go Shopping with PriceGrabber

Get Email Updates

Enter your email address:

Delivered by FeedBurner once a day

 
 

Ldr:0.00183892250061, Rct:0.0423898696899, Sky:0.0463738441467, Tlink:0.373266935349, TopPG:0.373332977295, GQV:0.373472929001 seconds to load.