Why Aren’t You Using an SSH Tunnel?

Browsing the web can be a very insecure activity. You passwords, credit cards, and personal information can be stolen without you even knowing. I know saying that may sound repetitive at this point, but these are real threats. To steal someone’s information on a network you don’t have to put your balls on the line, versus physically breaking and entering into their house.

Spoofing a network is entirely too easy with the available software out now, so be careful in places with public wifi. Treat every network like it’s an insecure one, especially if you are doing online banking. Looking for the https:// in a website when logging in is good practice, but a sniffer with SSLstrip can tear through that. It cannot however, break through an SSH tunnel.

What is SSH?

Secure Shell (SSH) is a protocol used for secure data communication. It essentially tunnels through a network to the end host. SSH is commonly used to administrate Linux servers, so it is designed with security in mind. The encryption SSH uses provides confidentiality and integrity of the data over an insecure network. If you are on a laptop, it is imperative you at least use an SSH tunnel when you connect to other networks.

ssh-tunnel-diagram

Comparison of Before and After SSH

This is you logging in without SSH (or SSL, but remember, that can be spoofed easily):

unsecure-wireshark-sniffing

Note: This login credential is not real and is used for example only.

The following is the same login through an SSH tunnel. All of the traffic is encrypted. You should begin to see how big of a difference this is making.

ssh-wireshark-sniffing

So How Do I Get Started?

The only way to do this for free is if you have an old computer sitting in your basement. You can throw freeSSHd (for Windows) on there or load up a distro of Linux, forward the port on your router, and give it a hostname. (SSH’ing into that computer while you are still in your home would be moot.)

There are services that you can pay for that will give you an address already setup and you just point your client to it. These are generally more expensive per month ($10-$15) and have strict limits. Examples include Tunnlr and Hide My Ass!.

What I personally recommend and what I currently use is a virtual private server (VPS). A VPS is hosted in a datacenter somewhere and is a little bit more advanced because you have to manage it yourself. They are really cheap ($4 – $10) because they are virtualized, but they offer customizeable hardware options and great bandwidth options. You can also host other services on there such as websites, an FTP server (you better use SFTP after reading this), and any other use you can think of.

LowEndBox posts current deals for VPS’s and they usually have coupons as well.

I wanted my SSH tunnel to go to another country, so I purchased one in the United Kingdom from DotVPS.

Setting Up

My laptop is running Windows 7, so the following is my setup for tunneling a connection.

Putty is a common program for connecting to..well…anything. But it doesn’t have all of the features I wanted. So I went with . This program can connect on startup, automatically reconnect, minimize to tray, and open SFTP and Xterm windows when needed. Coccinellida is a good OS X alternative.

bitvise-ssh-tunnel-setup

This is the setting you need to configure to forward your traffic. Set the listen port to whatever you want (>1024 to be safe).

For Linux, just run:
ssh -

or for auto reconnect:
autossh -

Now change your connection settings in your browser. This is in Firefox:

firefox-ssh-tunnel-setup

And that’s it. You are now tunneling your traffic through an SSH tunnel. You should be able to browse and login to your accounts with a lot less paranoia now.

I use an addon for Firefox called , which let’s me easily switch between using my SSH tunnel or my regular connection.

Note: Getting a virtual private network (VPN) is just the same, if not better than SSH, because it encrypts all traffic over every protocol. However VPN’s are more expensive and harder to maintain.

Posted in Technology | Tagged Bitvise, Coccinellida, DotVPS, encryption, Firefox, freeSSHd, FTP, Hide My Ass!, identity theft, , LowEndBox, , OS X, Putty, QuickProxy, Secure Shell, SFTP, SSH, SSL, SSLstrip, Tunnlr, VPN, VPS, web security, , Windows 7, Xterm | 1 Reply

Gaming on Linux is Far Overdue

Somewhere along your computer career you have probably been introduced to a distribution of Linux. You probably tried a LiveCD, or even dual booted. The problem was that every time you wanted to play your favorite game, you had to reboot back into Windows. Eventually, you ended up just sticking with your Windows partition and leaving Linux behind.

The big question is: Why?

Why haven’t popular mainstream games like World of Warcraft, Battlefield 3, and Half-Life 2 been developed for Linux? What’s holding developers back from porting their games over to the Linux OS?

Many developers say the problem is that digital rights management does not play well with Linux. Digital rights management (DRM) is what developers include in their software to keep people from pirating it. There are many recent articles, including here and here, about how DRM is not the right direction we should be moving towards. People are going to pirate games anyway. They want to see their money go right to the programs, rather than big corporations (see: Humble Bundle).

Another reason going around for why games are not ported over is that there are so many different Linux distros that it would be too much to port to each distro. Well, this is true, but not every distro needs to be accounted for. Three of the top five used Linux distros are based on Debian.

It’s about time that mainstream games made their way onto the Linux OS. It will increase the user base of Linux greatly. For most people using Linux, the only thing keeping their Windows partition intact are the games.

For this reason, porting games to Linux could lower the Windows user base by a lot. Microsoft will be forced to provide a real benefit to justify paying for their operating system. And it’s not just the end-customer, OEM’s will start to think, “Hey, Linux is free, has a familiar look and feel, can run alternative open source applications, and can run games now. Oh, and now I can distribute computers way cheaper than I could with Windows.” Microsoft will be in trouble, especially when people stop paying for their precious Office suite and move over to LibreOffice or OpenOffice.org.

A company that has recently been talking seriously about working with Linux is Valve. Valve is known for developing games such as Portal, Counter-Strike, and the Half-Life series. Valve also created a client for buying and downloading games on your computer called Steam. Steam is one of the major distributors of PC games and also hosts a very large community for PC gamers.

Many games are released through Steam, so just moving Steam and the 2,500 games available could be a driving force to make gaming on Linux more mainstream. Valve did it for Mac, and it worked with great success. They ported over the Half-Life 2 engine games, and that was enough to get a decent user base.

The Steam for Linux closed beta has just started. The reason for the Steam for Linux beta could be attributed to Gabe Newell, the founder of Valve, calling Windows 8 “a catastrophe”, and stating that he is jumping ship to Linux.

“The big problem that is holding back Linux is games. People don’t realize how critical games are in driving consumer purchasing behavior. We want to make it as easy as possible for the 2,500 games on Steam to run on Linux as well. It’s a hedging strategy. I think Windows 8 is a catastrophe for everyone in the PC space. I think we’ll lose some of the top-tier PC/OEMs, who will exit the market. I think margins will be destroyed for a bunch of people. If that’s true, then it will be good to have alternatives to hedge against that eventuality.” – Gabe Newell (founder of Valve)

If Steam were to move to Linux, the first thing I would do is format my Windows hard drive to make room for more episodes of The Walking Dead. Now if only Netflix would switch over to Linux…

Note: There are ways to run some games on Linux, but their compatibility is limited. Wine does a decent job, and PlayOnLinux tweaks Wine a little better. Running games inside of a virtual machine is kind of moot. But we shouldn’t have to rig games to work in our operating system.

Posted in Gaming, Technology | Tagged Battlefield 3, Counter-Strike, Debian, digital rights management, dual boot, Gabe Newell, gaming, Half-Life, Half-Life 2, Humble Bundle, LibreOffice, , LiveCD, , , OEM, OpenOffice.org, operating systems, partition, , PlayOnLinux, Portal, Steam, Steam for Linux beta, The Walking Dead, Valve, , virtual machine, , Windows 8, Wine, World of Warcraft | 1 Reply