template.conf 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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/packages/%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. key = '97bc56ae561f67cfe15364134868c3553b5f1eab06f7bd9c5b93fbf280a52b51',
  75. remotes = {
  76. '"gw01.ffho.net" port 100%ID',
  77. 'ipv6 "2001:638:502:1884::185" port 100%ID',
  78. 'ipv4 "192.26.175.185" port 100%ID',
  79. },
  80. },
  81. gw02 = {
  82. key = 'e8fa9bf402fd33dd1ba804a97f2e46c704423ff49e9c55312845a7bfb93121ad',
  83. remotes = {
  84. '"gw02.ffho.net" port 100%ID',
  85. 'ipv6 "2a03:fc0:1006:1500::211" port 100%ID',
  86. 'ipv4 "156.67.189.211" port 100%ID',
  87. },
  88. },
  89. gw03 = {
  90. key = '629b2742922f068ef49558283aea4b75c1427d8cdd3fcd2dbd7c00880547d3b3',
  91. remotes = {
  92. '"gw03.ffho.net" port 100%ID',
  93. 'ipv6 "2a00:13c8:1000:2::147" port 100%ID',
  94. 'ipv4 "185.46.137.147" port 100%ID',
  95. },
  96. },
  97. gw04 = {
  98. key = 'cf3855e5fa04e4c04a294cb6e8902f91c7ff7ef82bf031cc842a2b79b936677c',
  99. remotes = {
  100. '"gw04.ffho.net" port 100%ID',
  101. 'ipv6 "2003:0:f00:20::27" port 100%ID',
  102. 'ipv4 "217.243.19.27" port 100%ID',
  103. },
  104. },
  105. gw05 = {
  106. key = 'd0d32a2f536a0fc1f0c848e6da15bd96851d5ff4fdf9239c830bab033ddcec1a',
  107. remotes = {
  108. '"gw05.ffho.net" port 100%ID',
  109. 'ipv6 "2001:638:502:1884::ff15" port 100%ID',
  110. 'ipv4 "192.26.175.183" port 100%ID',
  111. },
  112. },
  113. },
  114. },
  115. },
  116. },
  117. },
  118. }