Updating/Compiling OpenDiameter and Basic EAP-MD5 Test

Blog tags: 

Recently, I was asked to review, maintain, update and document existing work from the Concordia University in Montreal. In an effort to continue the past OpenDiameter work - here is the current work for 1.0.7i(ish) and documentation.

OpenDiameter 1.0.8 will be available SOON!

Compiling OpenDiameter 1.0.7-j and running the EAP-MD5 test

The code can be built using the following process:

sudo apt-get install libbz2-dev build-essential python python-dev

ACE SSL Errors

Blog tags: 

I had to compile a really old version of ACE for my advisor and SSL was being a pain - here is what I did to remove it from the equation without hacking the vanilla ACE wrapper 5.7.5 code

../configure --with-openssl=/usr/local/ssl/--with-openssl-include=/usr/local/ssl/include/ --with-openssl-libdir=/usr/local/ssl/lib/ LDFLAGS=-L/usr/local/ssl/lib/ CFLAGS=-I/usr/local/ssl/include CXXFLAGS="-I/usr/local/ssl/include -L/usr/local/ssl/lib" LIBS=-L/usr/local/ssl/lib --disable-ace-examples --disable-ace-tests

Writing An Ebtables Match Module Tutorial

Blog tags: 

One of the biggest problems I have had when working with Linux and other open-source projects is the lack of up-to-date documentation. Some projects go to great lengths to modernize documentation and others don't at all which results in the project being forgotten. Netfilter Xtables modules while in use on almost every system, seem to not get the polish they deserve for tutorials, examples and updated documentation.

Bridge Silently Drops LLDP Traffic Despite Ebtables Rule

Blog tags: 

I recently discovered that LLDP traffic is silently blocked/dropped via a mask in br_input.c and will not forward LLDP despite having a rule with the correct protocol value in ebtables. In ebtables, the packet count will not increment and no messages are generated in the kernel logs.

To fix the netmask value to allow LLDP, patch net/bridge/br_private.h or use my patch:

Explaining Sockets and Terrifying You With C

Blog tags: 

One of the things any aspiring security professional or network admin should know is - what is exactly a socket and what do they do?. This is tutorial is a different approach that I have been toying with on how to best explain to beginning IT or security students who are just beginning, but have no experience using "low-level" languages like C. One of my esteemed professor's once said: "God intended us to program in C" and I believe that today's programmers should begin with a language which will teach them responsibility.

Bash Scripting - Recursive MD5sum On Files In Directory

Blog tags: 

Recently, I wanted to get the MD5sums of all of the files with a specific extension in the current directory and create a hash sum file for each. This was achieved using the following Bash script.


# Get a list of files in a directory without the .md5 extension
# Note the ticks
LIST=`find . -name "*.txt" -a ! -name '.md5'`

HP-Envy 14 Power Tweaks - Updated

Blog tags: 

Battery life on my HP-envy is down right horrible in Linux - Fedora 16 by default results in only about two hours of operation before it shuts down (and is about 60c) when compared to the almost 5 hours of running time in Windows 7. Here are some tweaks to improve it to 5+ hrs with minor use and minimal wifi:

Prerequisite packages:

Install the following:

sudo yum install pm-utils tuned
sudo chkconfig tuned on

Install Jupiter and get it configured


Subscribe to RSS - Linux