site.conf 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. (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. },
  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 = 'entenhausen.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.xxx.0.xxx',
  63. ip6 = 'fdxx:xxxx:xxxx::xxxx',
  64. -- anycast MAC of all nodes
  65. mac = 'xe:xx:xx:xx:xx:xx',
  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+umac'},
  72. mtu = 1426,
  73. backbone = {
  74. -- Limit number of connected peers to reduce bandwidth.
  75. limit = 2,
  76. -- List of peers.
  77. peers = {
  78. peer1 = {
  79. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  80. -- This is a list, so you might add multiple entries.
  81. remotes = {'ipv4 "xxx.somehost.invalid" port xxxxxx'},
  82. },
  83. peer2 = {
  84. key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  85. -- You can also omit the ipv4 to allow both connection via ipv4 and ipv6
  86. remotes = {'"xxx.somehost2.invalid" port xxxxx'},
  87. },
  88. },
  89. },
  90. },
  91. autoupdater = {
  92. -- Default branch. Don't forget to set GLUON_BRANCH when building!
  93. branch = 'stable',
  94. -- List of branches. You may define multiple branches.
  95. branches = {
  96. stable = {
  97. name = 'stable',
  98. -- List of mirrors to fetch images from. IPv6 required!
  99. mirrors = {'http://1.updates.services.ffhl/stable/sysupgrade'},
  100. -- Number of good signatures required.
  101. -- Have multiple maintainers sign your build and only
  102. -- accept it when a sufficient number of them have
  103. -- signed it.
  104. good_signatures = 2,
  105. -- List of public keys of maintainers.
  106. pubkeys = {
  107. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Alice
  108. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Bob
  109. 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', -- Mary
  110. },
  111. },
  112. },
  113. },
  114. -- Node roles
  115. -- roles {
  116. -- default = 'node',
  117. -- list = {
  118. -- node = 'Normal Node',
  119. -- test = 'Test Node',
  120. -- backbone = 'Backbone Node',
  121. -- service = 'Service Node',
  122. -- },
  123. -- },
  124. -- Bandwidth limiting
  125. simple_tc = {
  126. mesh_vpn = {
  127. ifname = 'mesh-vpn',
  128. -- You may enable it by default here.
  129. enabled = false,
  130. -- Default upload limit (kbit/s).
  131. limit_egress = 200,
  132. -- Default download limit (kbit/s).
  133. limit_ingress = 3000,
  134. },
  135. },
  136. -- Skip setup mode (config mode) on first boot
  137. -- setup_mode = {
  138. -- skip = true,
  139. -- },
  140. }