site.conf 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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 hexadecimal
  16. -- Must be the same for all nodes in one mesh domain
  17. -- Can be generated using: echo $(hexdump -v -n 32 -e '1/1 "%02x"' </dev/urandom)
  18. domain_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. -- name = { 'nextnode.location.community.example.org', 'nextnode', 'nn' },
  73. ip4 = '10.xxx.0.xxx',
  74. ip6 = 'fdxx:xxxx:xxxx::xxxx',
  75. },
  76. -- Options specific to routing protocols (optional)
  77. -- mesh = {
  78. -- Options specific to the batman-adv routing protocol (optional)
  79. -- batman_adv = {
  80. -- Gateway selection class (optional)
  81. -- The default class 20 is based on the link quality (TQ) only,
  82. -- class 1 is calculated from both the TQ and the announced bandwidth
  83. -- gw_sel_class = 1,
  84. -- },
  85. -- },
  86. mesh_vpn = {
  87. -- enabled = true,
  88. mtu = 1312,
  89. fastd = {
  90. -- Refer to http://fastd.readthedocs.org/en/latest/ to better understand
  91. -- what these options do.
  92. -- List of crypto-methods to use.
  93. methods = {'salsa2012+umac'},
  94. -- configurable = true,
  95. -- syslog_level = 'warn',
  96. groups = {
  97. backbone = {
  98. -- Limit number of connected peers to reduce bandwidth.
  99. limit = 1,
  100. -- List of peers.
  101. peers = {
  102. peer1 = {
  103. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  104. -- This is a list, so you might add multiple entries.
  105. remotes = {'ipv4 "xxx.somehost.invalid" port xxxxxx'},
  106. },
  107. peer2 = {
  108. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  109. -- You can also omit the ipv4 to allow both connection via ipv4 and ipv6
  110. remotes = {'"xxx.somehost2.invalid" port xxxxx'},
  111. },
  112. },
  113. -- Optional: nested peer groups
  114. -- groups = {
  115. -- backbone_sub = {
  116. -- ...
  117. -- },
  118. -- ...
  119. -- },
  120. },
  121. -- Optional: additional peer groups, possibly with other limits
  122. -- backbone2 = {
  123. -- ...
  124. -- },
  125. },
  126. },
  127. bandwidth_limit = {
  128. -- The bandwidth limit can be enabled by default here.
  129. enabled = false,
  130. -- Default upload limit (kbit/s).
  131. egress = 200,
  132. -- Default download limit (kbit/s).
  133. ingress = 3000,
  134. },
  135. },
  136. autoupdater = {
  137. -- Default branch. Don't forget to set GLUON_BRANCH when building!
  138. branch = 'stable',
  139. -- List of branches. You may define multiple branches.
  140. branches = {
  141. stable = {
  142. name = 'stable',
  143. -- List of mirrors to fetch images from. IPv6 required!
  144. mirrors = {'http://1.updates.services.ffhl/stable/sysupgrade'},
  145. -- Number of good signatures required.
  146. -- Have multiple maintainers sign your build and only
  147. -- accept it when a sufficient number of them have
  148. -- signed it.
  149. good_signatures = 2,
  150. -- List of public keys of maintainers.
  151. pubkeys = {
  152. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Alice
  153. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Bob
  154. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Mary
  155. },
  156. },
  157. },
  158. },
  159. -- Node roles
  160. -- roles = {
  161. -- default = 'node',
  162. -- list = {
  163. -- 'node',
  164. -- 'test',
  165. -- 'backbone',
  166. -- 'service',
  167. -- },
  168. -- },
  169. -- Skip setup mode (config mode) on first boot
  170. -- setup_mode = {
  171. -- skip = true,
  172. -- },
  173. -- config_mode = {
  174. -- Show/hide the altitude field
  175. -- geo_location = {
  176. -- show_altitude = false,
  177. -- },
  178. -- define if the contact field is obligatory (optional)
  179. -- owner = {
  180. -- obligatory = true,
  181. -- },
  182. -- Show/hide the password login
  183. -- remote_login = {
  184. -- show_password_form = true,
  185. -- min_password_length = 12,
  186. -- },
  187. -- },
  188. }