-
Notifications
You must be signed in to change notification settings - Fork 2
DeployBootstrapNode
Saverio Proto edited this page Jun 25, 2012
·
2 revisions
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```
and ```/fairvpn/tinc-up``` (note: must be executable)
Adjust the overlay IP address if needed
Create the file ```/fairvpn/hosts/bootnode``` and type in:
Make sure the file ```/fairvpn/hosts.py``` is executable
Create the file ```/fairvpn/host-up``` and type in:
== OLSRd bootstrap node ==
Here the config file ```/fairvpn/olsrd.conf```
}
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
[fairvpn]
comment = fairvpn path = /fairvpn/hosts read only = yes list = yes uid = nobody
== Start the bootstrap node ==
Create ```start.sh```
EOF /fairvpn/bin/tincd --bypass-security --config=. -d2 -D ```