site.conf 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. -- This is an example site configuration for Gluon v2017.1+
  2. --
  3. -- Take a look at the documentation located at
  4. -- http://gluon.readthedocs.org/ for details.
  5. --
  6. -- This configuration will not work as is. You're required to make
  7. -- community specific changes to it!
  8. {
  9. -- Used for generated hostnames, e.g. freifunk-abcdef123456. (optional)
  10. -- hostname_prefix = 'freifunk-',
  11. -- Name of the community.
  12. site_name = 'Freifunk Alpha Centauri',
  13. -- Shorthand of the community.
  14. site_code = 'ffxx',
  15. -- 32 bytes of random data, encoded in hexacimal
  16. -- Must be the same of all nodes in one mesh domain
  17. -- Can be generated using: echo $(hexdump -v -n 32 -e '1/1 "%02x"' </dev/urandom)
  18. site_seed = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  19. -- Prefixes used within the mesh.
  20. -- prefix6 is required, prefix4 can be omitted if next_node.ip4
  21. -- is not set.
  22. prefix4 = '10.xxx.0.0/20',
  23. prefix6 = 'fdxx:xxxx:xxxx::/64',
  24. -- Timezone of your community.
  25. -- See http://wiki.openwrt.org/doc/uci/system#time_zones
  26. timezone = 'CET-1CEST,M3.5.0,M10.5.0/3',
  27. -- List of NTP servers in your community.
  28. -- Must be reachable using IPv6!
  29. ntp_servers = {'1.ntp.services.ffxx'},
  30. -- Wireless regulatory domain of your community.
  31. regdom = 'DE',
  32. -- Wireless configuration for 2.4 GHz interfaces.
  33. wifi24 = {
  34. -- Wireless channel.
  35. channel = 1,
  36. -- List of supported wifi rates (optional)
  37. -- Example removes 802.11b compatibility for better performance
  38. supported_rates = {6000, 9000, 12000, 18000, 24000, 36000, 48000, 54000},
  39. -- List of basic wifi rates (optional, required if supported_rates is set)
  40. -- Example removes 802.11b compatibility for better performance
  41. basic_rate = {6000, 9000, 18000, 36000, 54000},
  42. -- ESSID used for client network.
  43. ap = {
  44. ssid = 'alpha-centauri.freifunk.net',
  45. -- disabled = true, (optional)
  46. },
  47. mesh = {
  48. -- Adjust these values!
  49. id = 'ueH3uXjdp', -- usually you don't want users to connect to this mesh-SSID, so use a cryptic id that no one will accidentally mistake for the client WiFi
  50. mcast_rate = 12000,
  51. -- disabled = true, (optional)
  52. },
  53. },
  54. -- Wireless configuration for 5 GHz interfaces.
  55. -- This should be equal to the 2.4 GHz variant, except
  56. -- for channel.
  57. wifi5 = {
  58. channel = 44,
  59. ap = {
  60. ssid = 'alpha-centauri.freifunk.net',
  61. },
  62. mesh = {
  63. -- Adjust these values!
  64. id = 'ueH3uXjdp',
  65. mcast_rate = 12000,
  66. },
  67. },
  68. -- The next node feature allows clients to always reach the node it is
  69. -- connected to using a known IP address.
  70. next_node = {
  71. -- anycast IPs of all nodes
  72. ip4 = '10.xxx.0.xxx',
  73. ip6 = 'fdxx:xxxx:xxxx::xxxx',
  74. },
  75. -- Options specific to routing protocols (optional)
  76. -- mesh = {
  77. -- Options specific to the batman-adv routing protocol (optional)
  78. -- batman_adv = {
  79. -- Gateway selection class (optional)
  80. -- The default class 20 is based on the link quality (TQ) only,
  81. -- class 1 is calculated from both the TQ and the announced bandwidth
  82. -- gw_sel_class = 1,
  83. -- },
  84. -- },
  85. mesh_vpn = {
  86. -- enabled = true,
  87. mtu = 1312,
  88. fastd = {
  89. -- Refer to http://fastd.readthedocs.org/en/latest/ to better understand
  90. -- what these options do.
  91. -- List of crypto-methods to use.
  92. methods = {'salsa2012+umac'},
  93. -- configurable = true,
  94. -- syslog_level = 'warn',
  95. groups = {
  96. backbone = {
  97. -- Limit number of connected peers to reduce bandwidth.
  98. limit = 1,
  99. -- List of peers.
  100. peers = {
  101. peer1 = {
  102. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  103. -- This is a list, so you might add multiple entries.
  104. remotes = {'ipv4 "xxx.somehost.invalid" port xxxxxx'},
  105. },
  106. peer2 = {
  107. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  108. -- You can also omit the ipv4 to allow both connection via ipv4 and ipv6
  109. remotes = {'"xxx.somehost2.invalid" port xxxxx'},
  110. },
  111. },
  112. -- Optional: nested peer groups
  113. -- groups = {
  114. -- backbone_sub = {
  115. -- ...
  116. -- },
  117. -- ...
  118. -- },
  119. },
  120. -- Optional: additional peer groups, possibly with other limits
  121. -- backbone2 = {
  122. -- ...
  123. -- },
  124. },
  125. },
  126. bandwidth_limit = {
  127. -- The bandwidth limit can be enabled by default here.
  128. enabled = false,
  129. -- Default upload limit (kbit/s).
  130. egress = 200,
  131. -- Default download limit (kbit/s).
  132. ingress = 3000,
  133. },
  134. },
  135. autoupdater = {
  136. -- Default branch. Don't forget to set GLUON_BRANCH when building!
  137. branch = 'stable',
  138. -- List of branches. You may define multiple branches.
  139. branches = {
  140. stable = {
  141. name = 'stable',
  142. -- List of mirrors to fetch images from. IPv6 required!
  143. mirrors = {'http://1.updates.services.ffhl/stable/sysupgrade'},
  144. -- Number of good signatures required.
  145. -- Have multiple maintainers sign your build and only
  146. -- accept it when a sufficient number of them have
  147. -- signed it.
  148. good_signatures = 2,
  149. -- List of public keys of maintainers.
  150. pubkeys = {
  151. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Alice
  152. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Bob
  153. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Mary
  154. },
  155. },
  156. },
  157. },
  158. -- Node roles
  159. -- roles = {
  160. -- default = 'node',
  161. -- list = {
  162. -- 'node',
  163. -- 'test',
  164. -- 'backbone',
  165. -- 'service',
  166. -- },
  167. -- },
  168. -- Skip setup mode (config mode) on first boot
  169. -- setup_mode = {
  170. -- skip = true,
  171. -- },
  172. -- config_mode = {
  173. -- Show/hide the altitude field
  174. -- geo_location = {
  175. -- show_altitude = false,
  176. -- },
  177. -- define if the contact field is obligatory (optional)
  178. -- owner = {
  179. -- obligatory = true
  180. -- },
  181. -- },
  182. }