Connect your Chromebook to your home network over SSH.

Dec 28

This week i’m testing out my new Acer A730 to see just what it can do and how far we can take it. One of the frustrations I bumped in earlier this week was that there were limited options when it came to “Phoning home”. Setting up encrypted tunnels to your home network over the internet using VPN or Proxy connections is something we should consider when using public Wifi hotspots.

With the Chromebook relying completely on some wifi connection on a (perhaps foreign) network I was disappointed to find that the only protocols that were supported were L2TP and OpenVpn. Not a bad set to choose from but not something that I had setup on my home network.

Previously I used an SSH server and the SSHuttle app to tunnel my internet, dns and even network traffic over a Socks5 proxy to my home network. I wondered if this would be possible with the Chromebook. Turns out it is ! Let’s start cooking.

To get this little piece of magic working you need 3 things. A : One SSH server (A linux machine) on your home network that has at least one port open to the internet. B : The Secure Shell app from the Chrome store. C : The Switchy-Sharp extension.

Setting it up is quite easy. Lets say we opened up port 8800 of our SSH server to the internet. Setup Secure Shell to connect to the your home SSH server with the additional option to create a port forwarding tunnel on lets say port 8800 with the option -D 8800

img_546b9a0a17c9d

Next we setup Switchy Sharp as to use the SSH connection (and port 8800) as a socks 5 proxy.
switchy

All you need to do next is Connect to your home SSH server and use the Switchy Sharp extention in your browser to use the connection. The Chromebook will tunnel all http and https requests AND the DNS queries through the tunnel. That way 95% of your Chromebooks traffic (we aren”t a 100 percent sure about what protocols any other apps you have might use) are piped through a secure tunnel. You don’t only get to connect to your home network (to open up any web-interface to any device or server you have) but also you get to do it all ‘in private’

Links.

Related Posts

Server week : Trust no-one with Owncloud.

Apr 03

Dropbox changed its terms of service so they can give you data to the Feds if they just ask for it, Ubuntu shuts down the online fileservice “Ubuntu One” : Who can you  trust these days ? The great thing with cloud solutions is that they are on a server far far away, most of them are free and you never have to maintain them. The downside is that they are on a server far far away, they are free and you cannot maintain them. We give up a certain level of control for the convenience of the cloud. It would be of course far nicer if you had a service that offered you all the luxury of the products mentioned above .. but gave you full control, absolute privacy and a completely controlled solution. (and free ! It has to be free).

oc5files

Do not fear : Owncloud is here.

Owncloud is a self hosted cloud solution that gives you the luxury of the cloud in the privacy of your own home (or on your own hosted environment). Its a cross platform webservice that gives you the ability to store files in the “cloud” and access them from anywhere, Sync those files with your desktop (like Dropbox) You can share your files with friends and access them using mobile clients on Android and IOS devices or a simple browser window.

Don’t trust the cloud with your Calendar and contacts ? Owncloud takes care of that too. Manage your contacts and calendars straight from Owncloud or sync them up with your mobile devices using open standards like .vcard and caldav. 

Tired of the tracks on Groovebox or spotify ? Would you like to stream your music (and movies) from your own hard drive at home ? Owncloud even has an answer for that. The built in media player lets you access your library from anywhere as long as you sport at least a browser (AND some underwear .. Owncloud is classy like that).

Want to tie all of your different cloud services together ? Owncloud supports connecting external storage to the service (like network and usb drives) but can also connect to Dropbox and Google Docs, offering ALL those files up in one simple interface.

So what does it take ? 

Installing Owncloud is pretty simple. All you need is a linux server and you can choose to install Owncloud either from the repositories (if you are using Ubuntu or Debian) or you can go and download version 6 straight from their website. 

Owncloud is based on a web based server so you can access everything from port 80 and add some security by choosing to go for https to do your authentication (highly recommended).  You can run it on your server at home OR on a webspace you rented somewhere (or if you are really lucking on your own hosted server in some datacenter). You don’t need a lot of power, but Owncloud does need some ram and some cpu power if it is going to manage and index thousands of files for you.

So how do I do it.

Find out more.

In all , Owncloud is a very powerful solution when it comes to hosting stuff yourself. It has come a long way since version 6 and I have been a big fan of the convenience, the cross platform compatible-ness (is that a word ?) and the sheer power of integrating multiple storage locations (usb drives, network drives, cloud storage) to ONE single web interface. Try it .. you’ll be on cloud 9.

Related Posts

kw608 : Sniffing anyones Wifi with a Pineapple.

Jul 26

sniffing-wifi
Time to raise the hairs on the neck of all Wifi-enabled laptop and mobile phone users in this interesting interview with Gerjon McVries ( @mcvries on Twitter) about “The pineapple” and its awesome (and malevolent) potential when it comes to exploiting basic flaws in Wifi enabled devices. If you were worried about the NSA sniffing your traffic in the Prism debacle, then try not to realise that a 14 year old scriptkiddie with a paypall account could buy this awesome toy and sniff every bit you transmit.

Shownotes

Related Posts


From dapper to edgy in a snap.

Nov 02

When a new linux distribution hits the scene its always a little bit like Christmas. As the beta releases taunt you like packages beneath the tree, tempting you to try them out .. The hard part is sitting on your hands untill the website screams FINAL and the fun can begin. Thus here is my little christmas carol about how I updated my good old Ubuntu Linux 6.06 version to the latest in 6.10.

No beta's please.

Every new release of a linux distribution (in this case the new Ubuntu) puts the blender in the rumor pot.  What is new , what is going to change, this and that cool stuff is going to be new, are they gonna drop this and that. The only way to divide fact from fiction is downloading and installing the public beta versions that are released. Now I have never been one for beta's. And that is for two reasons. First of all because a beta never gives you a clear picture of what is going to be the final product. Sure, you might get a glimpse in the general direction, but the difference between the beta and the final release may be as dramatic as the difference between cookie dough and the finished brownie. Secondly : Beta's are mostly far from stable. Unless you are a developer or some genius programmer who can find and fix bugs in this PRE-released version of  a final distro, its not gonna do you much good. Forget using a public beta as a stable system. You are riding an unfinished car to the finish line. If you are masochistic and love to hog unpredictable kernels I would suggest turning to any version of Windows before its service pack one. 

Thus I bide my time till the final comes. And when my curiosity gets the best of my I'll just download the fucker and run it in a virtual machine.  

Why should we care to upgrade ?

Erm.. Good question. In the case of Ubuntu 6.06 it was out of sheer curiosity.

I (finally) got my current version to play nice with my home network, had it all eye-candied out so it looked smooth and more importantly, gotten used to the look-feel and possibilities of this worthy windows-replacing operating system.  Since it was a "decimal" upgrade (from 6.06 to 6.1) there was no rush. (When however they moved from 5. to 6. I was all over the place with joy). The other thing is, Linux distributions evolve differently from windows distributions. In mickey-software they whack in all  the cool toys and worry about security POST RELEASE. In Ubuntu they make sure the system is steam liner-stable and "Fort Knox secure" before they release it. All the "fancy smancies" are developed later by the community. So a Ubuntu distro can be considered "ripe for use" about two weeks after release when the command-line-geeks have had enough of caffeine driven all nighters and coded the crap out of themselves to prep the add-ons. 

But upgrade we shall ! (reinstall / upgrade)

Now, If I had absolutely nothing to do with my life, and installed/reinstalled my system every time there was a kernel fart, a re-installation was something to consider. Wiping ones hard drive clean and installing an OS from scratch is like wearing clean underwear or sleeping in fresh sheets.  But since I had my 6.06 running so smoothly the thought of upgrading crossed my mind. With windows I would never EVER Consider this , and even on my mac i like it better when i can erase/reinstall rather then upgrade. But I decided it was time to test the agility and maturity of Linux by going for the upgrade.. (and just maybe I'm a lazy fuck who did not want to wipe his porn ?) If you have the time go for a clean reinstall , If you don't want to wipe a working system, try the upgrade. You can always reinstall when it goes wrong.

Upgrading a working system.

I could tattoo the following advice into peoples forehead yet they would not listen to me until one day .. they loose everything. " BACKUP BACKUP BACKUP" what ever you do to a working system, make sure you backup everything before you begin. Don''t even try to come over and wine about all the crap you lost. I'll laugh in your face , step on your toe and write "I TOLD YOU SO' on your belly with pink lipstick. Afterwards you can run around naked in shame for all I care. I have no compassion for persistent stupidity. Next up : Be prepared for failure. Don't try elaborate shit like this if you need to get a paper out by next morning. Be prepared for total system fucky-uppie and start working on emergency response scenario's should your "kernel based acrobatics" fail.

The magic command line code

So lets get started. We have  " one cup of Ubuntu 6.06, with the important data and settings skimmed' Next up I found this great website that teaches you how to upgrade using just one line of code. Just pop open your command line window and type :

gksu "update-manager -c"

 

update

 

Next up enter your administrator password. The message will come up a new update is available and you need to click the 'update" button to do so. So what should you do ? … Hit it you twit !. The upgrade process will take quite some time so be prepared to actually spend time with your family and do what "normal' people do. Don't bite your nails awaiting the completion of this process.. Why  ? cause its not nice ! 

After about an hour the whole thing will be done, Reboot your system and say a prayer to "Sint Rita" who is the holy chaperone for lost causes. If Rita can't help you .. you are officially screwed.  

The magic word : Automatix !

If all went well you'll have a completely upgraded system. Otherwise enjoy your horrible " KERNEL PANIC" message heralding the end of your operating system as you have know it thus far. But you backed up all important data anyway .. didn't you ..  So now the trick is to make this fancy new version of Ubuntu into a working operating system. This means, being able to play *wmv files, play dvd's, be able to run Google earth and what have you . In short : All the good stuff. To do this there is the magical script of AUTOMATIX that will help you accomplish what takes geeks months, in mere minutes.  

If you had automatix installed on your old 6.06 system , lets remove it first shall we ? : Open a command line an type :

sudo apt-get remove automatix

enter your admin password and be gone with the old automatix.

Then we prepare to install AUTOMATIX2. So in our command line window we type : sudo gedit /etc/apt/sources.list

this will let you add the following line to the end your sources list ( where your linux gets his good stuff)

deb http://www.getautomatix.com/apt edgy main If you see any simular lines with a # in front of them, remove the # and save the file.

Now we enter some geeky lines in order to make automatix work. (hit ENTER after every line)

wget http://www.getautomatix.com/apt/key.gpg.asc
gpg –import key.gpg.asc
gpg –export –armor 521A9C7C | sudo apt-key add –

sudo apt-get update
sudo apt-get install automatix2 

If all went well you will now have a little AUTOMATIX icon in your
gnome menu ( APPLICATIONS / SYSTEM TOOLS / AUTOMATIX

And then some.

Now the good stuff can start. As you see , in automatix you can choose what good stuff to install , if I where you I would check every little tickbox and then get some more quality time with the family. The installation of programs like , skype , google earth , picasa and more might take some time. But when you are done all the stuff works fine and you are the proud owner of a fully working Ubuntu 6.10. Have fun.

Sources :

Automatix2 

Cup of Tech 

 

Related Posts