October 10, 2014

Running tunneldigger client on Linux

After installing tunneldigger next step is to connect via tunneldigger to the rest of the network.

You need to have created new node via Nodewatcher and grab it's configuration file.

Open zip file with configuration files and look for file called tunneldigger in /etc/config/ directory. Mine looks like this:

config broker
          list address          '46.54.226.43:8942'
          list address          '46.54.226.43:53'
          list address          '46.54.226.43:123'
          option uuid             '66xxc400-aaaa-430c-cccc-7e351207dddd'
          option interface        'digger0'

config broker
        list address          '92.53.140.74:8942'
        list address          '92.53.140.74:53'
        list address          '92.53.140.74:123'
        option uuid             '6625aaaa-8db0-bbbb-cccc-7e351207dddd'
        option interface        'digger1'

Preparing network interface:

Edit /etc/network/interfaces and add new interface, but use you own IP address:

iface digger0 inet static
        address 10.254.xxx.xxx
        netmask 255.255.0.0

Start tunneldigger

To start tunneldigger from command line use this syntax:

./l2tp_client -b 46.54.226.43:8942 -i digger0 -u '66xxc400-aaaa-430c-cccc-7e351207dddd

You must use your own UUID from config file you got by generating new wifi node.

If you get an error that l2tp kernel module isn't loaded then load it manually:
modprobe l2tp_eth

And that is it.

Next step is to configure olsr routing daemon.

OLSR routing:

aptitude install olsrd
cp /etc/olsrd/olsrd.conf /etc/olsrd/olsrd.conf.orig
echo "" > /etc/olsrd/olsrd.conf
nano /etc/olsrd/olsrd.conf

and olsrd.conf should look like this:

Hna4
{
  10.254.xxx.xxx  255.255.255.240
}

MainIp 10.254.xxx.xxx
SrcIpRoutes yes
RtTable 20

Interface "wlan0" "br-clients" "digger0" "digger1" 
{
  IPv4Multicast 255.255.255.255
}

Now start olsrd daemon:
/etc/init.d/olsrd start