site.conf 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. -- Specifies the channel width in 802.11n and 802.11ac mode.
  31. -- Possible values are:
  32. -- HT20 (single 20MHz channel),
  33. -- HT40- (2x 20MHz channels, secondary below)
  34. -- HT40+ (2x 20MHz channels, secondary above)
  35. htmode = 'HT20',
  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 and htmode.
  51. wifi5 = {
  52. channel = 44,
  53. htmode = 'HT20',
  54. ap = {
  55. ssid = 'entenhausen.freifunk.net',
  56. },
  57. mesh = {
  58. id = 'ffxx-mesh',
  59. mcast_rate = 12000,
  60. },
  61. },
  62. -- The next node feature allows clients to always reach the node it is
  63. -- connected to using a known IP address.
  64. next_node = {
  65. -- anycast IPs of all nodes
  66. ip4 = '10.xxx.0.xxx',
  67. ip6 = 'fdxx:xxxx:xxxx::xxxx',
  68. -- anycast MAC of all nodes
  69. mac = 'xe:xx:xx:xx:xx:xx',
  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. next_node = {
  82. -- Refer to http://fastd.readthedocs.org/en/latest/ to better understand
  83. -- what these options do.
  84. fastd_mesh_vpn = {
  85. -- List of crypto-methods to use.
  86. methods = {'salsa2012+umac'},
  87. -- enabled = true,
  88. -- configurable = true,
  89. mtu = 1280,
  90. groups = {
  91. backbone = {
  92. -- Limit number of connected peers to reduce bandwidth.
  93. limit = 1,
  94. -- List of peers.
  95. peers = {
  96. peer1 = {
  97. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  98. -- This is a list, so you might add multiple entries.
  99. remotes = {'ipv4 "xxx.somehost.invalid" port xxxxxx'},
  100. },
  101. peer2 = {
  102. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  103. -- You can also omit the ipv4 to allow both connection via ipv4 and ipv6
  104. remotes = {'"xxx.somehost2.invalid" port xxxxx'},
  105. },
  106. },
  107. -- Optional: nested peer groups
  108. -- groups = {
  109. -- backbone_sub = {
  110. -- ...
  111. -- },
  112. -- ...
  113. -- },
  114. },
  115. -- Optional: additional peer groups, possibly with other limits
  116. -- backbone2 = {
  117. -- ...
  118. -- },
  119. },
  120. },
  121. autoupdater = {
  122. -- Default branch. Don't forget to set GLUON_BRANCH when building!
  123. branch = 'stable',
  124. -- List of branches. You may define multiple branches.
  125. branches = {
  126. stable = {
  127. name = 'stable',
  128. -- List of mirrors to fetch images from. IPv6 required!
  129. mirrors = {'http://1.updates.services.ffhl/stable/sysupgrade'},
  130. -- Number of good signatures required.
  131. -- Have multiple maintainers sign your build and only
  132. -- accept it when a sufficient number of them have
  133. -- signed it.
  134. good_signatures = 2,
  135. -- List of public keys of maintainers.
  136. pubkeys = {
  137. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Alice
  138. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Bob
  139. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Mary
  140. },
  141. },
  142. },
  143. },
  144. -- Node roles
  145. -- roles = {
  146. -- default = 'node',
  147. -- list = {
  148. -- 'node',
  149. -- 'test',
  150. -- 'backbone',
  151. -- 'service',
  152. -- },
  153. -- },
  154. -- Bandwidth limiting
  155. simple_tc = {
  156. mesh_vpn = {
  157. ifname = 'mesh-vpn',
  158. -- You may enable it by default here.
  159. enabled = false,
  160. -- Default upload limit (kbit/s).
  161. limit_egress = 200,
  162. -- Default download limit (kbit/s).
  163. limit_ingress = 3000,
  164. },
  165. },
  166. -- Skip setup mode (config mode) on first boot
  167. -- setup_mode = {
  168. -- skip = true,
  169. -- },
  170. }