site.conf 5.9 KB

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