site.conf 5.8 KB

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