site.conf 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. 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. -- (optional) mesh VLAN on 802.11 ad-hoc interface (1-4095)
  44. -- mesh_vlan = 14,
  45. -- client_disabled = true,
  46. -- mesh_disabled = false,
  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. ssid = 'entenhausen.freifunk.net',
  53. channel = 44,
  54. htmode = 'HT20',
  55. mesh_ssid = 'xx:xx:xx:xx:xx:xx',
  56. mesh_bssid = 'xx:xx:xx:xx:xx:xx',
  57. mesh_mcast_rate = 12000,
  58. -- mesh_vlan = 14,
  59. -- client_disabled = true,
  60. -- mesh_disabled = false,
  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. -- Refer to http://fastd.readthedocs.org/en/latest/ to better understand
  72. -- what these options do.
  73. fastd_mesh_vpn = {
  74. -- List of crypto-methods to use.
  75. methods = {'salsa2012+umac'},
  76. -- enabled = true,
  77. -- configurable = true,
  78. mtu = 1426,
  79. groups = {
  80. backbone = {
  81. -- Limit number of connected peers to reduce bandwidth.
  82. limit = 2,
  83. -- List of peers.
  84. peers = {
  85. peer1 = {
  86. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  87. -- This is a list, so you might add multiple entries.
  88. remotes = {'ipv4 "xxx.somehost.invalid" port xxxxxx'},
  89. },
  90. peer2 = {
  91. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  92. -- You can also omit the ipv4 to allow both connection via ipv4 and ipv6
  93. remotes = {'"xxx.somehost2.invalid" port xxxxx'},
  94. },
  95. },
  96. -- Optional: nested peer groups
  97. -- groups = {
  98. -- backbone_sub = {
  99. -- ...
  100. -- },
  101. -- ...
  102. -- },
  103. },
  104. -- Optional: additional peer groups, possibly with other limits
  105. -- backbone2 = {
  106. -- ...
  107. -- },
  108. },
  109. },
  110. autoupdater = {
  111. -- Default branch. Don't forget to set GLUON_BRANCH when building!
  112. branch = 'stable',
  113. -- List of branches. You may define multiple branches.
  114. branches = {
  115. stable = {
  116. name = 'stable',
  117. -- List of mirrors to fetch images from. IPv6 required!
  118. mirrors = {'http://1.updates.services.ffhl/stable/sysupgrade'},
  119. -- Number of good signatures required.
  120. -- Have multiple maintainers sign your build and only
  121. -- accept it when a sufficient number of them have
  122. -- signed it.
  123. good_signatures = 2,
  124. -- List of public keys of maintainers.
  125. pubkeys = {
  126. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Alice
  127. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Bob
  128. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Mary
  129. },
  130. },
  131. },
  132. },
  133. -- Node roles
  134. -- roles = {
  135. -- default = 'node',
  136. -- list = {
  137. -- 'node',
  138. -- 'test',
  139. -- 'backbone',
  140. -- 'service',
  141. -- },
  142. -- },
  143. -- Bandwidth limiting
  144. simple_tc = {
  145. mesh_vpn = {
  146. ifname = 'mesh-vpn',
  147. -- You may enable it by default here.
  148. enabled = false,
  149. -- Default upload limit (kbit/s).
  150. limit_egress = 200,
  151. -- Default download limit (kbit/s).
  152. limit_ingress = 3000,
  153. },
  154. },
  155. -- Skip setup mode (config mode) on first boot
  156. -- setup_mode = {
  157. -- skip = true,
  158. -- },
  159. }