site.conf 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. -- This is an example site configuration for Gluon v2014.4
  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.
  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 configuratoin for 2.4 GHz interfaces.
  27. wifi24 = {
  28. -- Wireless channel.
  29. channel = 1,
  30. -- ESSID used for client network.
  31. ssid = 'entenhausen.freifunk.net',
  32. -- Specifies the channel width in 802.11n and 802.11ac mode.
  33. -- Possible values are:
  34. -- HT20 (single 20MHz channel),
  35. -- HT40- (2x 20MHz channels, secondary below)
  36. -- HT40+ (2x 20MHz channels, secondary above)
  37. htmode = 'HT20',
  38. -- Adjust these values!
  39. mesh_ssid = 'xe:xx:xx:xx:xx:xx', -- ESSID used for mesh
  40. mesh_bssid = 'xe:xx:xx:xx:xx:xx', -- BSSID used for mesh
  41. -- Bitrate used for multicast/broadcast packets.
  42. mesh_mcast_rate = 12000,
  43. },
  44. -- Wireless configuration for 5 GHz interfaces.
  45. -- This should be equal to the 2.4 GHz variant, except
  46. -- for channel and htmode.
  47. wifi5 = {
  48. ssid = 'entenhausen.freifunk.net',
  49. channel = 44,
  50. htmode = 'HT20',
  51. mesh_ssid = 'xx:xx:xx:xx:xx:xx',
  52. mesh_bssid = 'xx:xx:xx:xx:xx:xx',
  53. mesh_mcast_rate = 12000,
  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. -- Refer to http://fastd.readthedocs.org/en/latest/ to better understand
  65. -- what these options do.
  66. fastd_mesh_vpn = {
  67. -- List of crypto-methods to use.
  68. methods = {'salsa2012+umac'},
  69. mtu = 1426,
  70. backbone = {
  71. -- Limit number of connected peers to reduce bandwidth.
  72. limit = 2,
  73. -- List of peers.
  74. peers = {
  75. peer1 = {
  76. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  77. -- This is a list, so you might add multiple entries.
  78. remotes = {'ipv4 "xxx.somehost.invalid" port xxxxxx'},
  79. },
  80. peer2 = {
  81. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  82. -- You can also omit the ipv4 to allow both connection via ipv4 and ipv6
  83. remotes = {'"xxx.somehost2.invalid" port xxxxx'},
  84. },
  85. },
  86. },
  87. },
  88. autoupdater = {
  89. -- Default branch. Don't forget to set GLUON_BRANCH when building!
  90. branch = 'stable',
  91. -- List of branches. You may define multiple branches.
  92. branches = {
  93. stable = {
  94. name = 'stable',
  95. -- List of mirrors to fetch images from. IPv6 required!
  96. mirrors = {'http://1.updates.services.ffhl/stable/sysupgrade'},
  97. -- Number of good signatures required.
  98. -- Have multiple maintainers sign your build and only
  99. -- accept it when a sufficient number of them have
  100. -- signed it.
  101. good_signatures = 2,
  102. -- List of public keys of maintainers.
  103. pubkeys = {
  104. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Alice
  105. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Bob
  106. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Mary
  107. },
  108. },
  109. },
  110. },
  111. -- Bandwidth limiting
  112. simple_tc = {
  113. mesh_vpn = {
  114. ifname = 'mesh-vpn',
  115. -- You may enable it by default here.
  116. enabled = false,
  117. -- Default upload limit (kbit/s).
  118. limit_egress = 200,
  119. -- Default download limit (kbit/s).
  120. limit_ingress = 3000,
  121. },
  122. },
  123. -- These strings are shown in config mode. Some HTML is permissible.
  124. --
  125. -- msg_welcome: shown at startup
  126. -- msg_pubkey: shown when VPN is enabled
  127. -- msg_reboot: shown during reboot (after finishing configuration)
  128. --
  129. -- You may use some variables, e.g.:
  130. --
  131. -- <%=hostname%> - the node's hostname
  132. -- <%=pubkey%> - the fastd public key
  133. -- <%=sysconfig.primary_mac%> - the node's primary MAC
  134. config_mode = {
  135. msg_welcome = [[
  136. Willkommen zum Einrichtungsassistenten für deinen neuen Entenhausener
  137. Freifunk-Knoten. Fülle das folgende Formular deinen Vorstellungen
  138. entsprechend aus und sende es ab.
  139. ]],
  140. msg_pubkey = [[
  141. Dies ist der öffentliche Schlüssel deines Freifunk-Knotens. Erst nachdem
  142. er auf den Servern des Entenhausener Freifunk-Projektes eingetragen wurde,
  143. kann sich dein Knoten mit dem Entenhausener Mesh-VPN verbinden. Bitte
  144. schicke dazu diesen Schlüssel und den Namen deines Knotens
  145. (<em><%=hostname%></em>) an
  146. <a href="mailto:keys@entenhausen.freifunk.net">keys@entenhausen.freifunk.net</a>.
  147. ]],
  148. msg_reboot = [[
  149. <p>
  150. Dein Knoten startet gerade neu und wird anschließend versuchen,
  151. sich mit anderen Freifunk-Knoten in seiner Nähe zu verbinden.
  152. Weitere Informationen zur Entenhausener Freifunk-Community
  153. findest du auf <a href="https://entenhausen.freifunk.net/">unserer Webseite</a>.
  154. </p>
  155. <p>
  156. Viel Spaß mit deinem Knoten und der Erkundung von Freifunk!
  157. </p>
  158. ]],
  159. },
  160. }