wiki:DeployBootstrapNode
close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "hg": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Deploy a bootstrap node

The bootstrap node needs tincd OLSRd and rsync running

You need to be root

Create the folders:

/fairvpn
/fairvpn/hosts
/fairvpn/bin
/fairvpn/lib

Copy in bin the binary files and in lib the olsrd libs for the plugins

tincd config

Use the following /fairvpn/tinc.conf

Name bootnode
Mode = switch
TunnelServer = yes

and /fairvpn/tinc-up (note: must be executable)

ip link set up dev tap0
ip a a 10.0.0.254/8 dev tap0 broadcast 10.255.255.255

Adjust the overlay IP address if needed

Create the file /fairvpn/hosts/bootnode and type in:

Address youripaddressunderlay

Make sure the file /fairvpn/hosts.py is executable

Create the file /fairvpn/host-up and type in:

echo "Address = "$REMOTEADDRESS > /fairvpn/hosts/$NODE

OLSRd bootstrap node

Here the config file /fairvpn/olsrd.conf

DebugLevel      0
IpVersion       4
MprCoverage   7
Hna4
{

}

IpcConnect
{

}

LinkQualityFishEye      0

LoadPlugin         "/fairvpn/lib/olsrd_dot_draw.so.0.3"
{
        PlParam     "accept" "0.0.0.0"
}

LoadPlugin "/fairvpn/lib/olsrd_httpinfo.so.0.1"
{
    PlParam     "Net"    "0.0.0.0 0.0.0.0"
}

LoadPlugin "/fairvpn/lib/olsrd_txtinfo.so.0.1"
{
    PlParam     "Accept"   "0.0.0.0"
}

LoadPlugin "/fairvpn/lib/olsrd_nameservice.so.0.3"
{
	PlParam "name" "bootnode"
  	PlParam "hosts-file" "/fairvpn/hosts/nodes"
  	PlParam "resolv-file" "/etc/resolv.conf"
	PlParam "interval" "10"
        PlParam "name-change-script" "python /fairvpn/hosts.py"

}

Interface "tap0"
{
LinkQualityMult default 0.989
}

Rsync on bootstrap node

Create the following /fairvpn/rsyncd.conf file

pid file = /var/run/rsyncd.pid
use chroot = yes
read only = yes

[fairvpn]
        comment = fairvpn
        path = /fairvpn/hosts
        read only = yes
        list = yes
        uid = nobody

Start the bootstrap node

Create start.sh

rm /fairvpn/hosts/nodes
touch /fairvpn/hosts/nodes
/fairvpn/bin/rsync --daemon --config=/fairvpn/rsyncd.conf
/fairvpn/bin/olsrd -f /fairvpn/olsrd.conf
/fairvpn/bin/tincd --bypass-security --config=. -K -d2 -D<<EOF


EOF
/fairvpn/bin/tincd --bypass-security --config=. -d2 -D
Last modified 7 years ago Last modified on Oct 7, 2010, 2:52:55 PM