Advertisement
Guest User

fastd.conf

a guest
Nov 28th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. # Bind to a fixed address and port, IPv4 and IPv6 at Port 1234
  2. bind 1.2.3.4:1234 interface "eth0";
  3. # bind [EXTERNE-IPv6]:1234 interface "eth0";
  4.  
  5. # Set the user, fastd will work as
  6. user "ffein";
  7.  
  8. # Set the interface name
  9. #interface "ffein-mesh";
  10.  
  11. # Set the mode, the interface will work as
  12. mode tap;
  13.  
  14. # Set the mtu of the interface (salsa2012 with ipv6 will need 1406)
  15. mtu 1406;
  16.  
  17. # Set the methods (aes128-gcm preferred, salsa2012+umac preferred for nodes)
  18. method "salsa2012+umac";
  19.  
  20. #hide ip addresses yes;
  21. #hide mac addresses yes:
  22.  
  23. # Secret key generated by `fastd --generate-key`
  24. secret "xxx";
  25.  
  26. # Log everything to syslog
  27. log to syslog level debug;
  28.  
  29. # Include peers from our git-repos
  30. include peers from "/ffein/gateway/peers/";
  31. include peers from "/ffein/gateway/gateways/";
  32.  
  33. # Configure a shell command that is run on connection attempts by unknown peers (true means, all attempts are accepted)
  34. on verify "true";
  35. # on verify "/etc/fastd/fastd-blacklist.sh $PEER_KEY";
  36.  
  37. # Configure a shell command that is run when fastd comes up
  38. on up "
  39. ip link set dev $INTERFACE address de:42:42:42:42:01
  40. ip link set dev $INTERFACE up
  41. ifup bat0
  42. batctl if add $INTERFACE
  43. batctl gw server 54 Mbit/ 54 Mbit
  44. batctl vm server
  45. sh /etc/fastd/ffein/iptables_ffein.sh
  46. ";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement