supernode_pkg_vars.yml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. fastd_instances:
  2. - name: do00
  3. bind: any:10000 interface "eth0" default ipv4
  4. interface: tap00
  5. loglevel: info
  6. mode: tap
  7. method: salsa2012+umac
  8. peer_limit: 125
  9. mtu: 1280
  10. status_socket: /tmp/fastd00.sock
  11. on_up_script: |
  12. ip link set up $INTERFACE
  13. batctl if add $INTERFACE
  14. on_verify_script: |
  15. /etc/fastd/fastd-blacklist.sh $PEER_KEY
  16. - name: do01
  17. bind: any:10001 interface "eth0" default ipv4
  18. interface: tap01
  19. loglevel: info
  20. mode: tap
  21. method: salsa2012+umac
  22. peer_limit: 125
  23. mtu: 1280
  24. status_socket: /tmp/fastd01.sock
  25. on_up_script: |
  26. ip link set up $INTERFACE
  27. batctl if add $INTERFACE
  28. on_verify_script: |
  29. /etc/fastd/fastd-blacklist.sh $PEER_KEY
  30. fastd_instances_secret:
  31. - name: do00
  32. secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
  33. - name: do01
  34. secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
  35. bird_router_id: 10.233.8.1
  36. bird_templates:
  37. - header: bgp ibgp
  38. content: |
  39. local as 65403;
  40. import all;
  41. export all;
  42. next hop self;
  43. multihop 64;
  44. bird_protocols:
  45. - header: direct
  46. content: interface "*";
  47. - header: bgp ffrg11 from ibgp
  48. content: |
  49. source address 10.0.6.6;
  50. neighbor 10.0.6.5 as 65079;
  51. default bgp_med 2;
  52. bird6_router_id: 10.233.8.1
  53. bird6_templates:
  54. - header: bgp ibgp
  55. content: |
  56. source address 2a03:2260:50:5::8;
  57. local as 65403;
  58. import all;
  59. export all;
  60. next hop self;
  61. direct;
  62. gateway direct;
  63. bird6_protocols:
  64. - header: direct
  65. content: interface "*";
  66. - header: bgp node012 from ibgp
  67. content: |
  68. neighbor 2a03:2260:50:5::24 as 65403;
  69. default bgp_med 4;
  70. supernode_interfaces:
  71. - name: eth0
  72. auto: true
  73. proto: inet
  74. type: dhcp
  75. - name: meshdummy0
  76. auto: true
  77. proto: inet
  78. type: manual
  79. config:
  80. - key: pre-up
  81. value: ip link add $IFACE type dummy
  82. - key: pre-up
  83. value: ip link set address 02:ce:ef:ca:fe:2a dev $IFACE
  84. - key: pre-up
  85. value: ip link set up dev $IFACE
  86. - key: post-down
  87. value: ip link set down dev $IFACE
  88. - key: up
  89. value: batctl if add $IFACE