template.conf 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {
  2. domain_names = {
  3. %SC = '%SN',
  4. },
  5. -- hide domain
  6. hide_domain = %HIDE,
  7. -- 32 bytes of random data, encoded in hexadecimal, used to seed other
  8. -- random values specific to the mesh domain. It must be the same for all
  9. -- nodes of one mesh, but should be different for firmwares that are not
  10. -- supposed to mesh with each other.
  11. -- TODO: Must be set individual by any domain
  12. domain_seed = '%DS',
  13. -- v4 and v6 prefixes in which nodes+clients might get an IP
  14. prefix4 = '%V4',
  15. prefix6 = '2a03:2260:2342:%V6::/64',
  16. -- OpenWRT Package Repository (IPv6 capable)
  17. opkg = {
  18. openwrt = 'http://firmware.srv.in.ffho.net/openwrt/packages-%v/%A',
  19. extra = {
  20. gluon = 'http://firmware.srv.in.ffho.net/%GR/modules/%S',
  21. },
  22. },
  23. mesh = {
  24. -- for now, we don't use vxlan on the mesh
  25. vxlan = false,
  26. batman_adv = {
  27. routing_algo = 'BATMAN_IV',
  28. },
  29. },
  30. -- wifi settings (2.4 GHz and 5 GHz)
  31. -- ap.ssid = 'hochstift.freifunk.net/${kürzel}',
  32. -- mesh.id = 'ffho-mesh-${group-name}',
  33. wifi24 = {
  34. channel = 1,
  35. ap = {
  36. ssid = '%SS',
  37. },
  38. mesh = {
  39. id = 'ffho-mesh-%GN',
  40. },
  41. },
  42. wifi5 = {
  43. channel = 44,
  44. ap = {
  45. ssid = '%SS',
  46. },
  47. mesh = {
  48. id = 'ffho-mesh-%GN',
  49. },
  50. },
  51. -- IP address of each router
  52. -- At this IP a client can always connect to its
  53. -- currently connected node. Both v4 and v6 addr.
  54. -- must lie in the above prefix4 and prefix6.
  55. next_node = {
  56. ip4 = '%N4',
  57. ip6 = '2a03:2260:2342:%V6::1',
  58. name = { 'node.ffho.net' },
  59. -- mac address, must be unique in the client network
  60. -- (usually, you don't need to change this)
  61. mac = 'f2:ff:ff:%ID:ff:ff',
  62. },
  63. mesh_vpn = {
  64. -- fastd (vpn) settings
  65. fastd = {
  66. groups = {
  67. backbone = {
  68. -- specifies how many servers are contacted
  69. -- by a client simultanously
  70. limit = 1,
  71. -- list all available vpn servers
  72. peers = {
  73. gw01 = {
  74. -- public fastd key of the vpn server
  75. key = '97bc56ae561f67cfe15364134868c3553b5f1eab06f7bd9c5b93fbf280a52b51',
  76. -- remotes is an array of ways on how to reach the VPN server
  77. -- Use public addresses here, these addresses are used when the mesh might not be connected yet.
  78. -- format: '[|ipv4|ipv6] "hostname-or-ip-address" port 10000'
  79. remotes = {
  80. '"gw01.ffho.net" port 100%ID',
  81. 'ipv6 "2001:638:502:1884::185" port 100%ID',
  82. 'ipv4 "192.26.175.185" port 100%ID',
  83. },
  84. },
  85. gw02 = {
  86. key = 'e8fa9bf402fd33dd1ba804a97f2e46c704423ff49e9c55312845a7bfb93121ad',
  87. remotes = {
  88. '"gw02.ffho.net" port 100%ID',
  89. 'ipv6 "2a03:fc0:1006:1500::211" port 100%ID',
  90. 'ipv4 "156.67.189.211" port 100%ID',
  91. },
  92. },
  93. gw03 = {
  94. key = '629b2742922f068ef49558283aea4b75c1427d8cdd3fcd2dbd7c00880547d3b3',
  95. remotes = {
  96. '"gw03.ffho.net" port 100%ID',
  97. 'ipv6 "2a00:13c8:1000:2::165" port 100%ID',
  98. 'ipv4 "185.46.137.165" port 100%ID',
  99. },
  100. },
  101. gw04 = {
  102. key = 'cf3855e5fa04e4c04a294cb6e8902f91c7ff7ef82bf031cc842a2b79b936677c',
  103. remotes = {
  104. '"gw04.ffho.net" port 100%ID',
  105. 'ipv6 "2a02:450:1::22" port 100%ID',
  106. 'ipv4 "80.70.181.63" port 100%ID',
  107. },
  108. },
  109. gw05 = {
  110. key = 'd0d32a2f536a0fc1f0c848e6da15bd96851d5ff4fdf9239c830bab033ddcec1a',
  111. remotes = {
  112. '"gw05.ffho.net" port 100%ID',
  113. 'ipv6 "2001:638:502:1884::ff15" port 100%ID',
  114. 'ipv4 "192.26.175.183" port 100%ID',
  115. },
  116. },
  117. gw06 = {
  118. key = '88b570c4cc811259b7c4106943098c9bee1126d692ddacedd23cd48efc28b0bf',
  119. remotes = {
  120. '"gw06.ffho.net" port 100%ID',
  121. 'ipv6 "2a02:cbf4:102::22" port 100%ID',
  122. 'ipv4 "213.131.234.22" port 100%ID',
  123. },
  124. },
  125. },
  126. },
  127. },
  128. },
  129. },
  130. }