supernode_pkg_vars.yml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. supernode_mesh_mac: C7:D9:55:60:1C:7B
  2. supernode_mesh_ipv4: 10.42.0.1
  3. supernode_mesh_netmask_ipv4: 255.255.0.0
  4. supernode_bat_macaddress: 39:C5:49:BE:00:78
  5. supernode_mesh_net_cidr: 10.42.0.0/16
  6. supernode_mesh_ipv6: fdfe:7808:502a:4eb7::1/64
  7. supernode_mesh_net_ipv6: fdfe:7808:502a:4eb7::/64
  8. fastd_instances:
  9. - name: do00
  10. bind: any:10000 interface "eth0" default ipv4
  11. interface: tap00
  12. loglevel: info
  13. mode: tap
  14. method: salsa2012+umac
  15. peer_limit: 125
  16. mtu: 1280
  17. status_socket: /tmp/fastd00.sock
  18. on_up_script: |
  19. ip link set up $INTERFACE
  20. batctl if add $INTERFACE
  21. on_verify_script: |
  22. /etc/fastd/fastd-blacklist.sh $PEER_KEY
  23. - name: do01
  24. bind: any:10001 interface "eth0" default ipv4
  25. interface: tap01
  26. loglevel: info
  27. mode: tap
  28. method: salsa2012+umac
  29. peer_limit: 125
  30. mtu: 1280
  31. status_socket: /tmp/fastd01.sock
  32. on_up_script: |
  33. ip link set up $INTERFACE
  34. batctl if add $INTERFACE
  35. on_verify_script: |
  36. /etc/fastd/fastd-blacklist.sh $PEER_KEY
  37. fastd_instances_secret:
  38. - name: do00
  39. secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
  40. - name: do01
  41. secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
  42. bird_router_id: "{{supernode_mesh_ipv4}}"
  43. bird_templates:
  44. - header: bgp ibgp
  45. content: |
  46. local as 65403;
  47. import all;
  48. export all;
  49. next hop self;
  50. multihop 64;
  51. bird_protocols:
  52. - header: kernel
  53. content: |
  54. device routes;
  55. import all;
  56. export all;
  57. kernel table 42;
  58. - header: device
  59. content: scan time 8;
  60. - header: direct
  61. content: interface "*";
  62. - header: bgp ffrg11 from ibgp
  63. content: |
  64. source address 10.0.6.6;
  65. neighbor 10.0.6.5 as 65079;
  66. default bgp_med 2;
  67. - header: protocol bgp ffrg25 from ibgp
  68. content: |
  69. source address 10.0.6.2;
  70. neighbor 10.0.6.1 as 65079;
  71. default bgp_med 1;
  72. - header: bgp node012 from ibgp
  73. content: |
  74. source address 10.233.8.1;
  75. neighbor 10.233.24.1 as 65403;
  76. default bgp_med 4;
  77. - header: bgp node021 from ibgp
  78. content: |
  79. source address 10.233.8.1;
  80. neighbor 10.233.16.1 as 65403;
  81. default bgp_med 3;
  82. - header: bgp node022 from ibgp
  83. content: |
  84. source address 10.233.8.1;
  85. neighbor 10.233.32.1 as 65403;
  86. default bgp_med 4;
  87. - header: bgp map from ibgp
  88. content: |
  89. source address 10.233.8.1;
  90. neighbor 10.233.0.1 as 65403;
  91. default bgp_med 4;
  92. bird6_router_id: "{{supernode_mesh_ipv4}}"
  93. bird6_templates:
  94. - header: bgp ibgp
  95. content: |
  96. source address 2a03:2260:50:5::8;
  97. local as 65403;
  98. import all;
  99. export all;
  100. next hop self;
  101. direct;
  102. gateway direct;
  103. - header: bgp uplink
  104. content: |
  105. local as 65403;
  106. import all;
  107. export all;
  108. next hop self;
  109. direct;
  110. multihop 64;
  111. bird6_protocols:
  112. - header: static uplink_hostroute
  113. content: |
  114. import all;
  115. export all;
  116. - header: direct
  117. content: interface "*";
  118. - header: kernel
  119. content: |
  120. persist;
  121. device routes;
  122. scan time 20;
  123. import all;
  124. export all;
  125. kernel table 42;
  126. - header: device
  127. content: scan time 10;
  128. - header: bgp ffrg11 from uplink
  129. content: |
  130. neighbor 2a03:2260:50:5b::1 as 65079;
  131. default bgp_med 2;
  132. - header: bgp ffrg25 from uplink
  133. content: |
  134. neighbor 2a03:2260:50:5a::1 as 65079;
  135. default bgp_med 1;
  136. - header: bgp node012 from ibgp
  137. content: |
  138. neighbor 2a03:2260:50:5::24 as 65403;
  139. default bgp_med 4;
  140. - header: bgp node021 from ibgp
  141. content: |
  142. neighbor 2a03:2260:50:5::16 as 65403;
  143. default bgp_med 3;
  144. - header: bgp node022 from ibgp
  145. content: |
  146. neighbor 2a03:2260:50:5::32 as 65403;
  147. default bgp_med 4;
  148. - header: bgp map from ibgp
  149. content: |
  150. neighbor 2a03:2260:50:5::1 as 65403;
  151. default bgp_med 4;
  152. supernode_interfaces:
  153. - name: eth0
  154. auto: true
  155. proto: inet
  156. type: dhcp