Freifunk/Gateways

Aus Wiki CCC Göttingen
Version vom 10. April 2015, 12:22 Uhr von Kjo (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<pre> root@vpn3:~# cat /etc/fastd/mesh/fastd.conf bind 5.45.97.249:12345 interface "eth0"; # Set the user, fastd will work as user "nobody"; # Set the inter…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen
root@vpn3:~# cat /etc/fastd/mesh/fastd.conf 
bind 5.45.97.249:12345 interface "eth0";

# Set the user, fastd will work as
user "nobody";

# Set the interface name
interface "mesh-vpn";

# Set the mode, the interface will work as
mode tap;

# Set the mtu of the interface (salsa2012 with ipv6 will need 1406)
# Stimmt mit der ausgerollten ueberein
mtu 1406;

# Set the methods (aes128-gcm preferred, salsa2012+umac preferred for nodes)
method "aes128-gcm";
method "salsa2012+umac";
method "salsa2012+gmac";

# Secret key generated by `fastd --generate-key`
secret "xxx";

# Log everything to syslog
log to syslog level debug;

# Include peers from our git-repos
include peers from "/etc/fastd/mesh/nodes";

# Configure a shell command that is run on connection attempts by unknown peers (true means, all attempts are accepted)
on verify "true";

# Configure a shell command that is run when fastd comes up
on up "
#  #  /etc/fastd/fastd.up
   modprobe batman-adv
   ip link set dev $INTERFACE address ca:fe:13:37:00:03
   ip link set dev $INTERFACE up
   batctl if add $INTERFACE
   batctl if add gre1
   batctl gw server 1024Mbit/1024Mbit
   batctl vm server
   ifup bat0
";