site.conf 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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 Lübeck',
  13. -- Shorthand of the community.
  14. site_code = 'ffhl',
  15. -- Prefixes used within the mesh. Both are required.
  16. prefix4 = '10.130.0.0/20',
  17. prefix6 = 'fdef:ffc0:3dd7::/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.ffhl'},
  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 = 'luebeck.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 = 'XX:XX:XX:XX:XX:XX', -- ESSID used for mesh
  40. mesh_bssid = 'XX:XX:XX:XX:XX:XX', -- BSSID used for mesh
  41. -- Bitrate used for multicast/broadcast packets.
  42. mesh_mcast_rate = 12000,
  43. -- (optional) mesh VLAN on 802.11 ad-hoc interface (1-4095)
  44. -- mesh_vlan = 14,
  45. },
  46. -- Wireless configuration for 5 GHz interfaces.
  47. -- This should be equal to the 2.4 GHz variant, except
  48. -- for channel and htmode.
  49. wifi5 = {
  50. ssid = 'luebeck.freifunk.net',
  51. channel = 44,
  52. htmode = 'HT20',
  53. mesh_ssid = 'XX:XX:XX:XX:XX:XX',
  54. mesh_bssid = 'XX:XX:XX:XX:XX:XX',
  55. mesh_mcast_rate = 12000,
  56. -- mesh_vlan = 14,
  57. },
  58. -- The next node feature allows clients to always reach the node it is
  59. -- connected to using a known IP address.
  60. next_node = {
  61. -- anycast IPs of all nodes
  62. ip4 = '10.130.0.1',
  63. ip6 = 'fdef:ffc0:3dd7::1',
  64. -- anycast MAC of all nodes
  65. mac = '16:41:95:40:f7:dc',
  66. },
  67. -- Refer to http://fastd.readthedocs.org/en/latest/ to better understand
  68. -- what these options do.
  69. fastd_mesh_vpn = {
  70. -- List of crypto-methods to use.
  71. methods = {'salsa2012+gmac'},
  72. mtu = 1426,
  73. backbone = {
  74. -- Limit number of connected peers to reduce bandwidth.
  75. limit = 2,
  76. -- List of peers.
  77. peers = {
  78. burgtor = {
  79. key = '657af03e36ff1b8bbe5a5134982a4f110c8523a9a63293870caf548916a95a03',
  80. -- This is a list, so you might add multiple entries.
  81. remotes = {'ipv4 "burgtor.mesh.ffhl.chaotikum.org" port 10000'},
  82. },
  83. holstentor = {
  84. key = '8c660f7511bf101ea1b599fe53af20e1146cd923c9e9d2a3a0d534ee75af9067',
  85. remotes = {'ipv4 "holstentor.mesh.ffhl.chaotikum.org" port 10000'},
  86. },
  87. },
  88. },
  89. },
  90. autoupdater = {
  91. -- Default branch. Don't forget to set GLUON_BRANCH when building!
  92. branch = 'stable',
  93. -- List of branches. You may define multiple branches.
  94. branches = {
  95. stable = {
  96. name = 'stable',
  97. -- List of mirrors to fetch images from. IPv6 required!
  98. mirrors = {'http://1.updates.services.ffhl/stable/sysupgrade'},
  99. -- Number of good signatures required.
  100. -- Have multiple maintainers sign your build and only
  101. -- accept it when a sufficient number of them have
  102. -- signed it.
  103. good_signatures = 2,
  104. -- List of public keys of maintainers.
  105. pubkeys = {
  106. 'daa19b44bbd7033965e02088127bad9516ba0fea8f34267a777144a23ec8900c', -- Linus
  107. 'a8dd60765b07330a4bbfdf8406102befca132881a4b65f3efda32cf2d5b362d9', -- Nils
  108. '323bd3285c4e5547a89cd6da1f2aef67f1654b0928bbd5b104efc9dab2156d0b', -- NeoRaider
  109. },
  110. },
  111. },
  112. },
  113. -- Bandwidth limiting
  114. simple_tc = {
  115. mesh_vpn = {
  116. ifname = 'mesh-vpn',
  117. -- You may enable it by default here.
  118. enabled = false,
  119. -- Default upload limit (kbit/s).
  120. limit_egress = 200,
  121. -- Default download limit (kbit/s).
  122. limit_ingress = 3000,
  123. },
  124. },
  125. -- Skip setup mode (config mode) on first boot
  126. -- setup_mode = {
  127. -- skip = true,
  128. -- },
  129. -- These strings are shown in config mode. Some HTML is permissible.
  130. --
  131. -- msg_welcome: shown at startup
  132. -- msg_pubkey: shown when VPN is enabled
  133. -- msg_reboot: shown during reboot (after finishing configuration)
  134. --
  135. -- You may use some variables, e.g.:
  136. --
  137. -- <%=hostname%> - the node's hostname
  138. -- <%=pubkey%> - the fastd public key
  139. -- <%=sysconfig.primary_mac%> - the node's primary MAC
  140. config_mode = {
  141. msg_welcome = [[
  142. Willkommen zum Einrichtungsassistenten für deinen neuen Lübecker
  143. Freifunk-Knoten. Fülle das folgende Formular deinen Vorstellungen
  144. entsprechend aus und sende es ab.
  145. ]],
  146. msg_pubkey = [[
  147. Dies ist der öffentliche Schlüssel deines Freifunk-Knotens. Erst nachdem
  148. er auf den Servern des Lübecker Freifunk-Projektes eingetragen wurde,
  149. kann sich dein Knoten mit dem Lübecker Mesh-VPN zu verbinden. Bitte
  150. schicke dazu diesen Schlüssel und den Namen deines Knotens
  151. (<em><%=hostname%></em>) an
  152. <a href="mailto:keys@luebeck.freifunk.net">keys@luebeck.freifunk.net</a>.
  153. ]],
  154. msg_reboot = [[
  155. <p>
  156. Dein Knoten startet gerade neu und wird anschließend versuchen,
  157. sich anschließend mit anderen Freifunk-Knoten in seiner Nähe zu
  158. verbinden. Weitere Informationen zur
  159. Lübecker Freifunk-Community findest du auf
  160. <a href="https://luebeck.freifunk.net/">unserer Webseite</a>.
  161. </p>
  162. <p>
  163. Viel Spaß mit deinem Knoten und der Erkundung von Freifunk!
  164. </p>
  165. ]],
  166. },
  167. }