Posts Tagged ‘ iPhone

OpenSWAN

Lately I’ve been playing with OpenSWAN and IPSec in general.

For the last few years I’ve been using OpenVPN as my home VPN server, but recently I bought a few Intel PRO/100 S Server Ethernet adaptors. From looking on the Intel site the only big difference I could see between these and regular Intel PRO/100 cards was that it has IPSec offloading, which I also remembered seeing IPSec support on my iPhone. So that got me looking into replacing OpenVPN with OpenSWAN on my home router.

In the past, I have come across IPSec quite often, but I never really looked into it. After a bit of reading, I decided to buy “Building And Integrating Virtual Private Networks With OpenSWAN“. I haven’t finished reading the book, but I can say that it is a very well written book for people looking to get started with IPSec. It has quite a nice introduction on the internet and why encryption is so important on the internet. It also explains how encryption was originally only used by the military and how governments around the world tried to stop encryption being used widely across the internet.

On Linux, there are two IPSec stacks, NETKEY and KLIPS. KLIPS is currently the more stable one, and from what I understand, the one which is easier to use. NETKEY on the other hand, is quite a new stack, but due to various reasons, KLIPS was not allowed to be included in the Linux kernel by default, where as NETKEY is.

Since my router machine is running RedHat Enterprise Linux 5, which only includes support for NETKEY, I have been using the NETKEY IPSec stack. So far, the only problem with the NETKEY stack is that creating firewall rules for encrypted packets is much more difficult than it would be using KLIPS, although I was not too disapointed by this since the KLIPS does not have IPv6 support, which, since I like IPv6 so much, is a must for me! :)

Although I had a bit of a problem with the OVH kernel, after a bit of tweaking and compiling and a lot of rebooting, I was able to create an encryted tunnel between my OVH RPS and my home router. If it had not been for all the trouble I had with the OVH kernel (it took quite a while to get the RPS to boot from the iSCSI disk using my custom kernel, rather than use netboot to fetch an OVH kernel), the tunnel would have been set up within a few minutes, which I found amazing as it takes a bit more time and effort to do with OpenVPN.

So far, I haven’t managed to figure out how to use the IPSec offloading feature of my ethernet cards, but I don’t think thats is really a problem considering my router machine is powerful enough to handle the few IPSec connections that I  have setup (Its a 2.4GHz Pentium 4 machine with 1GB ECC Reg RAM).

After a bit more reading, I decided it would be fun to try and get my iPhone connected to my IPSec Server, so over the next few days, hopefully thats what I will be doing! :)

iPhone / Linux / Mac OS X / Windows

Last week my phone contract ended, so I decided to upgrade to an iPhone 3G.

Till now, my main two phones have been the SE P910i and K800i, both of which have served me very very well for what I was using them for. There are a few reasons I decided to switch over to an iPhone. Firstly, I was originally using my K800i with a 2GB M2 memory stick as my MP3 player. As I soon noticed, 2GB isn’t really enough sometimes. I think the iPhone’s 16GB worth of space will give much more freedom. Also, I usually use my PSP to watch movies/TV shows when ever I go on the train or bus. I really like using the PSP for that purpose, the screen size is not bad, and the quality is pretty good too. BUT, then I have to carry around 2 phones and a PSP which can be quite irritating. So considering the size of the iPhone screen isn’t much smaller than the PSPs, it would be a perfect replacement to watch videos on, and have only 1 gadget to carry around. Thirdly, I often use my P910i to go on IRC or MSN from places where I can’t access a computer (Grandmothers house etc). I really liked using my P910i for this purpose, it was easy to type on and the application I use on it for MSN/Jabber/Yahoo is quite nice too (IM+). But from what I have seen, iPhone alternatives are just as good, or even better and have less bugs (afaik, IM+ for UIQ2 phones is no longer developed :( ).

In “preperation” for my iPhone getting delivered tomorrow, I decided to actually “try” out iTunes. After 3 hours of playing with it, I can say this much: I hate it :D .

The main reason for this is that I cannot make it “watch” a folder. All of my music is stored on my server, where my brothers dump music too. Quite often my brothers have put music there without me knowing, and so a “folder watch” feature would be very nice in iTunes. On Linux, I use MPD as my music player. I have a crontab script which makes MPD update its database every hour, so if there is anything new on my server, it will automatically be added to my library. After some googling I found iTunes Library Updater (http://itlu.ownz.ch/wordpress/) which works I guess but it still requires quite a bit of user interaction.

After Googling a bit more, I got the impression that even in Mac OS X I would have this problem which got me thinking: I would feel quite uncomfortable in OS X, just as I do in Windows.

I never really thought about it before but most of what I do on Linux, I do through the command line (Which is why I wanted a Mac for so long I guess). I find the command line much more efficiant than using a GUI, and imo Mac OS X is most popular due to its idiot-proof GUIs etc. Now that I think about it, when I first go on any machine, I open some sort of terminal. On Windows, I fire up Putty before anything else and on Linux Gnome Terminal is on my auto-startup apps list.

I accept that Linux does have a lot of things missing, but I think that OS X and Windows both have just as many things missing from them, and so far I think Linux is fixing these missing things faster than Apple or Microsoft are. (I guess thats mainly because most of these “issues” with OS X and Windows don’t effect the everyday user, but do effect Geeks!).

I was originally intending on listing reasons why I think I wouldn’t feel comfortable in OS X, but that will come another day (after I have actually tried out OS X).

A lot of you know I’ve wanted a Mac for AGES, but I can now say that I’m not sure if I really want to switch to OS X… of course I will try it out, who knows, I might be wrong!

Now to find an easy way to put music/videos onto the iPhone from Linux….