Posts

My Journey with the Cisco C881-K9 Router and IPSec VPN Tunnel Configuration

Image
Setting the Stage: The Cisco C881-K9 Router I wanted to document my experience configuring a Cisco C881-K9 router to set up an IPSec VPN tunnel—not just for myself but also for anyone who might be venturing down this path. Whether you're tackling this for the first time or just need a refresher, I hope this helps. 1. Product Code: C881-K9 2. PoE: 2 port integrated PoE 3. RAM: 256 (default) / 768 MB (Max) 4. Flash Memory: 128 MB 5. Dimensions: 32.5 cm x 24.9 cm x 4.4 cm 6. LAN Interface: 4 x 10Base-T/100Base-TX - RJ-45 7. Management Interface: 1 x console - RJ-45 8. WAN Interface: 1 x 10Base-T/100Base-TX - RJ-45 9. USB: 1 x 4 PIN USB Type A 1. Primary WAN port—FE 2. USB port 3. 4-port 10/100 Ethernet switch 4. Serial port—Console or auxiliary 5. On/Off switch 6. Reset button 7. Power connector 8. Earth ground connection 9. Kensington security slot Why the Cisco C881-K9? I’ll admit, I didn’t plan to splurge on high-end networking gear for my tests. So, when I found a used Cisco C881-...

Exploring Gammu - An open source mobile phone communication library

Image
A few weeks back, while working on Twinstrata project (as a shadow resource), I had some spare time and I wondered if I could provide an SMS notification (in addition to email notification) whenever Nagios detected that the services on the production cluster are down. Hence, I started searching different communication libraries and found Gammu, an open source mobile phone communication library. Below are the steps I took to install Gammu on Linux (CentOS 7) and generate SMS notifications to the development team through it.  First, I had to find a spare mobile phone that could be used for this purpose and a SIM card. I had one Samsung GT-S3653W mobile phone which I wasn't using anymore ever since I bought the smartphone. One of the reasons why I chose Gammu instead of any other library (e.g Gnokki) was their database that indicated that GT-S3653 ( http://wammu.eu/phones/samsung/5152/ ) was compatible with this library. For installation, I downloaded Gammu (version 1.34.0) t...

Google Code Jam 2014

Image
Update (13th April, 2014) 11:00 AM : I saw my final results today. The large input file of problem 2 and 3 were rejected, while the large input file of problem 4 was accepted. I lost 35 points because of that, and my final score is 55 :( . I do qualify for the next round though. My overall rank dropped to 7920/25462, while Pakistan rank dropped to 42/265. Below is the screenshot now. Hoping to do well in the next round as well which is on 26 April 2014. 12 April, 2014... 6:00 AM: Just woke up and received an email from from Google Code Jam that the contest has been started. Will start competing after breakfast..      6:42 AM: Working on the first problem "Magic Trick". It has only one small input file and is worth 6 points. According to the contest analysis, 88% people who attempted this question got it right.  7:31 AM: Just submitted solution file and source code of the "Magic Trick" problem. The response of the online judge is "Correct...