Wednesday, January 28, 2009

Installing the Firewalk security tool

Unfortunately for all, the firewalk tool is not found in any of the Ubuntu repositories nor is there a .deb file that you can download and install. You will need to download the source code and compile the program yourself.

To get the firewalk source, go to URL Download the source file from the site called "firewalk.tar.gz". You then need to untar the file by typing in a terminal shell:

tar -xvvzf firewalk.tar.gz

This will untar all the files and create their respective directories. You will then need to install the relavent supporting libraries and their development tools with the command:

sudo apt-get install build-essential libpcap-dev libnet1-dev libdnet-dev libdumbnet-dev

Since this tool (firewalk) was developed a few years ago, two of the libraries it uses have changed their names, we will need to link the old name to the new object name with the following sequence of commands:

cd /usr/lib
sudo ln -s
cd /usr/include
sudo ln -s dumbnet.h dnet.h

Before you can compile firewalk, there is one change you will need to make to the source. Gutsy (and newer Ubuntu distros) install gcc 4.0 by default, which doesn't like switch statements with no instructions in the "default" case. To fix this, just insert the "break;" command on line 193 of src/firewalk.c:

==== old =====

/* empty */

==== new =====

/* empty */

Now, you are ready to compile everything, issue the following commands in the Firewalk directory:

sudo make install

To install the man pages, type in the following:

sudo mkdir /usr/local/man/man8
sudo cp man/firewalk.8 /usr/local/man/man8

You are now ready to use the firewalk utility command. :)

Note: This was done on a Ubuntu 8.10 distro.


  1. There are two problems that I am facing as follows:

    1) I got 2 totally different versions of Firewalk when I searched google one is 5.0 and the other is 0.99.1. When I try to install version 5.0 I get the following error message when I type ./configure in the firewalk directory "bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory"

    2) When I try to install version 0.99.1 I get the error message given in the link

    Am trying to install Firewalk on BT4 pre final.
    Also the firewalk.c file in version 0.99.1 contains only 141 lines

    Plz help

  2. Yep, I'm using BT4 (Ubuntu Intrepid) and these instructions did nothing. Still get the error:

    checking for libnet_build_ip in -lnet... no
    configure: error: No libnet? No firewalk.

    Libnet is install and apparently the softlink here does help. Go figure...