site.conf 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. -- This is an example site configuration for Gluon v2015.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. -- ESSID used for client network.
  31. ap = {
  32. ssid = 'entenhausen.freifunk.net',
  33. -- disabled = true, (optional)
  34. },
  35. mesh = {
  36. -- Adjust these values!
  37. id = 'ffxx-mesh',
  38. mcast_rate = 12000,
  39. -- disabled = true, (optional)
  40. },
  41. },
  42. -- Wireless configuration for 5 GHz interfaces.
  43. -- This should be equal to the 2.4 GHz variant, except
  44. -- for channel.
  45. wifi5 = {
  46. channel = 44,
  47. ap = {
  48. ssid = 'entenhausen.freifunk.net',
  49. },
  50. mesh = {
  51. id = 'ffxx-mesh',
  52. mcast_rate = 12000,
  53. },
  54. },
  55. -- The next node feature allows clients to always reach the node it is
  56. -- connected to using a known IP address.
  57. next_node = {
  58. -- anycast IPs of all nodes
  59. ip4 = '10.xxx.0.xxx',
  60. ip6 = 'fdxx:xxxx:xxxx::xxxx',
  61. -- anycast MAC of all nodes
  62. mac = 'xe:xx:xx:xx:xx:xx',
  63. },
  64. -- Options specific to routing protocols (optional)
  65. -- mesh = {
  66. -- Options specific to the batman-adv routing protocol (optional)
  67. -- batman_adv = {
  68. -- Gateway selection class (optional)
  69. -- The default class 20 is based on the link quality (TQ) only,
  70. -- class 1 is calculated from both the TQ and the announced bandwidth
  71. -- gw_sel_class = 1,
  72. -- },
  73. -- },
  74. next_node = {
  75. -- Refer to http://fastd.readthedocs.org/en/latest/ to better understand
  76. -- what these options do.
  77. fastd_mesh_vpn = {
  78. -- List of crypto-methods to use.
  79. methods = {'salsa2012+umac'},
  80. -- enabled = true,
  81. -- configurable = true,
  82. mtu = 1280,
  83. groups = {
  84. backbone = {
  85. -- Limit number of connected peers to reduce bandwidth.
  86. limit = 1,
  87. -- List of peers.
  88. peers = {
  89. peer1 = {
  90. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  91. -- This is a list, so you might add multiple entries.
  92. remotes = {'ipv4 "xxx.somehost.invalid" port xxxxxx'},
  93. },
  94. peer2 = {
  95. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  96. -- You can also omit the ipv4 to allow both connection via ipv4 and ipv6
  97. remotes = {'"xxx.somehost2.invalid" port xxxxx'},
  98. },
  99. },
  100. -- Optional: nested peer groups
  101. -- groups = {
  102. -- backbone_sub = {
  103. -- ...
  104. -- },
  105. -- ...
  106. -- },
  107. },
  108. -- Optional: additional peer groups, possibly with other limits
  109. -- backbone2 = {
  110. -- ...
  111. -- },
  112. },
  113. bandwidth_limit = {
  114. -- The bandwidth limit can be enabled by default here.
  115. enabled = false,
  116. -- Default upload limit (kbit/s).
  117. egress = 200,
  118. -- Default download limit (kbit/s).
  119. ingress = 3000,
  120. },
  121. },
  122. autoupdater = {
  123. -- Default branch. Don't forget to set GLUON_BRANCH when building!
  124. branch = 'stable',
  125. -- List of branches. You may define multiple branches.
  126. branches = {
  127. stable = {
  128. name = 'stable',
  129. -- List of mirrors to fetch images from. IPv6 required!
  130. mirrors = {'http://1.updates.services.ffhl/stable/sysupgrade'},
  131. -- Number of good signatures required.
  132. -- Have multiple maintainers sign your build and only
  133. -- accept it when a sufficient number of them have
  134. -- signed it.
  135. good_signatures = 2,
  136. -- List of public keys of maintainers.
  137. pubkeys = {
  138. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Alice
  139. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Bob
  140. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Mary
  141. },
  142. },
  143. },
  144. },
  145. -- Node roles
  146. -- roles = {
  147. -- default = 'node',
  148. -- list = {
  149. -- 'node',
  150. -- 'test',
  151. -- 'backbone',
  152. -- 'service',
  153. -- },
  154. -- },
  155. -- Skip setup mode (config mode) on first boot
  156. -- setup_mode = {
  157. -- skip = true,
  158. -- },
  159. }