site.conf 5.4 KB

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