Der Git-Server dient dem FFH-Netz auch als Update-Server und NTP-Server
entsprechende Einträge sind Config des DNSMASQ auf den Gateways zu entnehmen.
/etc/apt/sources.list
#fastd repo
deb http://repo.universe-factory.net/debian/ sid main
#wheezy backports
deb http://ftp.de.debian.org/debian main contrib non-free
gpg --keyserver pgpkeys.mit.edu --recv-key 16EF3F64CB201D9C
gpg -a --export 16EF3F64CB201D9C | apt-key add -
apt-get update && apt-get upgrade
apt-get install git batctl batman-adv-dkms fastd bridge-utils lighthttpd
ssh-keygen
Software:Gitolite
/etc/modules
batman-adv
mkdir /etc/fastd/ffh-mesh-vpn
/etc/fastd/ffh-mesh-vpn/fastd.conf
log to syslog level debug;
interface "ffh-mesh-vpn";
method "salsa2012+gmac";
bind 0.0.0.0:10000;
hide ip addresses yes;
hide mac addresses yes;
include "secret.conf";
mtu 1426;
include peers from "backbone/net001";
on up "
ifup bat0
ip link set address 88:E6:40:20:01:02 up dev $INTERFACE
";
/etc/fastd/ffh-mesh-vpn/secret.conf
/etc/network/interfaces
- ffh interfaces
auto br-ffh
iface br-ffh inet6 static
bridge-ports none
address fdca:ffee:8::102
netmask 64
iface br-ffh inet static
address 10.2.1.2
netmask 255.255.0.0
allow-hotplug bat0
iface bat0 inet6 manual
pre-up modprobe batman-adv
pre-up batctl if add ffh-mesh-vpn
up ip link set $IFACE up
post-up brctl addif br-ffh $IFACE
post-up batctl it 10000
post-up /sbin/ip rule add from all fwmark 0x1 table 42
pre-down brctl delif br-ffh $IFACE || true
down ip link set $IFACE down
cd /etc/fastd/ffh-mesh-vpn/
git clone
git@217.14.119.158:backbone.git backbone
git clone
git@217.14.119.158:bin.git /root/bin
chmod +x *
- /5 * * * * /root/bin/autoupdate_backbone.sh > /dev/null 2>&1
- * * * * /root/bin/check_gateway > /dev/null 2>&1
bridge-Schnittstelle hochfahren
$ brctl addbr br-ffh
$ ifup br-ffh
B.A.T.M.A.N. kernel-Modul laden
$ modprobe batman-adv
fastd starten
$ service fastd start