forked from rubo77/freifunk-gluon-site
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsite.conf
354 lines (328 loc) · 13.8 KB
/
site.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
{
hostname_prefix = 'Gib mir einen Namen ',
site_name = 'Freifunk Kiel',
site_code = 'ffki',
-- Must be the same of all nodes in one mesh domain
domain_seed = 'd6c58c17e655c52c12e9d8ad1b546a264124dd33dd8a00a39ee528778c2b1c47',
opkg = {
openwrt = 'http://opkg.services.ffki/openwrt/snapshots/packages/%A',
extra = {
gluon = 'http://opkg.services.ffki/modules/gluon-%GS-%GR/%S',
},
},
prefix4 = '10.116.128.0/17',
prefix6 = 'fda1:384a:74de:4242::/64',
-- for alt-esc example and ebtables-source-filter
-- extra_prefixes6 = {
-- '2a07:59c6:ec02::/48'
-- },
timezone = 'CET-1CEST,M3.5.0,M10.5.0/3', -- Europe/Berlin
ntp_servers = {'1.ntp.services.ffki'},
-- Wireless regulatory domain of your community.
regdom = 'DE',
config_mode = {
hostname = {
optional = false,
},
-- Show/hide the altitude field
geo_location = {
show_altitude = true,
-- for gluon-config-mode-geo-location-osm
osm = {
center = {
lat = 54.326,
lon = 10.130,
},
zoom = 12,
-- the default is https://cdn.rawgit.com/openlayers/openlayers.github.io/master/en/v5.2.0
-- openlayers_url = 'https://mirror in kiel?',
},
},
-- define if the contact field is obligatory (optional)
-- disabled in 2017.1.8
-- owner = {
-- optional = true
-- },
remote_login = {
show_password_form = false,
-- min_password_length = 12,
},
},
ddhcpd = {
enabled = true,
range = "10.116.160.0/19",
},
-- Wireless configuration for 2.4 GHz interfaces.
wifi24 = {
channel = 11,
-- ESSID used for client network.
ap = {
ssid = 'http://kiel.freifunk.net/',
-- disabled = true, (optional)
},
mesh = {
id = '16:ca:ff:ee:ba:be',
mcast_rate = 12000,
disabled = false,
},
},
-- Wireless configuration for 5 GHz interfaces.
-- This should be equal to the 2.4 GHz variant, except
-- for channel.
wifi5 = {
channel = 44,
ap = {
ssid = 'http://kiel.freifunk.net/',
},
mesh = {
id = '16:ca:ff:ee:ba:be',
mcast_rate = 12000,
disabled = false,
},
},
dns = {
cacheentries = 5000,
servers = {
'fda1:384a:74de:4242::ff00',
'fda1:384a:74de:4242::ff01',
'fda1:384a:74de:4242::ff02',
'fda1:384a:74de:4242::ff03',
'fda1:384a:74de:4242::ff04',
'fda1:384a:74de:4242::ff05',
'fda1:384a:74de:4242::ff06',
'fda1:384a:74de:4242::ff07',
'fda1:384a:74de:4242::ff08',
},
},
-- The next node feature allows clients to always reach the node it is
-- connected to using a known IP address.
next_node = {
name = {
'node.ffki',
'nextnode.ffki',
'knoten.ffki',
'nextnode',
'nn',
},
-- anycast IPs of all nodes
ip4 = '10.116.254.254',
ip6 = 'fda1:384a:74de:4242::ffff',
-- anycast MAC of all nodes
mac = '36:f4:54:fc:e5:11'
},
-- Options specific to routing protocols (optional)
mesh = {
vxlan = false,
filter_membership_reports = true,
-- Options specific to the batman-adv routing protocol (optional)
batman_adv = {
-- Gateway selection class (optional)
-- The default class 20 is based on the link quality (TQ) only,
-- class 1 is calculated from both the TQ and the announced bandwidth
gw_sel_class = 1,
routing_algo = 'BATMAN_IV',
},
},
-- optional; Enables the mesh on the WAN port (true or false).
-- mesh_on_wan = true,
--optional; Enables the mesh on the LAN port (true or false).
-- mesh_on_lan = true,
mesh_vpn = {
enabled = true,
mtu = 1312,
fastd = {
methods = {'salsa2012+umac'},
-- configurable = true,
-- syslog_level = 'warn',
groups = {
backbone = {
-- Limit number of connected peers to reduce bandwidth.
limit = 1,
peers = {
ffki_vpn0 = {
key = 'c844b69dc73c0eeabf12417e4b5206da6e0173b4680d9aae3b1a42c28912188e',
remotes = {
'ipv6 "vpn0.freifunk.in-kiel.de" port 11237',
'ipv4 "vpn0.freifunk.in-kiel.de" port 11237'
},
},
ffki_vpn1 = {
key = '6bd39c65c4ac60d0064b293ef383539d67bb748512e9a53f0713ba78de759eaf',
remotes = {
'ipv6 "vpn1.freifunk.in-kiel.de" port 11237',
'ipv4 "vpn1.freifunk.in-kiel.de" port 11237'
},
},
ffki_vpn2 = {
key = '2057c27f6eac9fc5b0163e725a83a7baf8eed85040554620b17c4f8568dc51b0',
remotes = {
'ipv6 "vpn2.freifunk.in-kiel.de" port 11237',
'ipv4 "vpn2.freifunk.in-kiel.de" port 11237'
},
},
ffki_vpn3 = {
key = 'ffb3dad22c0b52c02ccb6862a0942c1cf94bad798992a22519ee56e386f94f27',
remotes = {
'ipv6 "vpn3.freifunk.in-kiel.de" port 11237',
'ipv4 "vpn3.freifunk.in-kiel.de" port 11237'
},
},
ffki_vpn4 = {
key = 'f4a636b2791e53c5def0012c5fa39c0dc1081f8396a4c5bd01367bb2e30ac4a1',
remotes = {
'ipv6 "vpn4.freifunk.in-kiel.de" port 11237',
'ipv4 "vpn4.freifunk.in-kiel.de" port 11237'
},
},
ffki_vpn5 = {
key = '0c1a007e87ceb7ebb20e9944d78761d8bbfcf007c65e31fdc37e8d62469ed53a',
remotes = {
'ipv6 "vpn5.freifunk.in-kiel.de" port 11237',
'ipv4 "vpn5.freifunk.in-kiel.de" port 11237'
},
},
ffki_vpn6 = {
key = '975106f67b84a945e3638c20d95dcb6e199268e924b59b46530a54df3f3541d2',
remotes = {
'ipv6 "vpn6.freifunk.in-kiel.de" port 11237',
'ipv4 "vpn6.freifunk.in-kiel.de" port 11237'
},
},
ffki_vpn7 = {
key = '3bd48ce6e15ea69452dd6dd6b55702d0bfde5fb9d0068af5493780f83f7b4012',
remotes = {
'ipv6 "vpn7.freifunk.toppoint.de" port 11237',
'ipv4 "vpn7.freifunk.toppoint.de" port 11237'
},
},
},
},
},
},
bandwidth_limit = {
enabled = false,
egress = 2000,
ingress = 4000,
},
},
autoupdater = {
-- Default branch. Don't forget to set GLUON_BRANCH when building!
branch = 'stable',
branches = {
-- stable releases are only rolled out selectively after a lot of testing in the rc branch
stable = {
name = 'stable',
mirrors = {
-- List of mirrors to fetch images from. IPv6 required!
'http://[fda1:384a:74de:4242::fd00]/firmware/stable/sysupgrade',
'http://[fda1:384a:74de:4242::ff00]/firmware/stable/sysupgrade',
'http://[fda1:384a:74de:4242::ff01]/firmware/stable/sysupgrade',
'http://[fda1:384a:74de:4242::ff02]/firmware/stable/sysupgrade',
'http://[fda1:384a:74de:4242::ff03]/firmware/stable/sysupgrade',
'http://0.updates.services.ffki/firmware/stable/sysupgrade',
'http://1.updates.services.ffki/firmware/stable/sysupgrade',
},
good_signatures = 3,
pubkeys = {
'bbb814470889439c04667748c30aabf25fb800621e67544bee803fd1b342ace3', -- sargon
'8d16e1b88bcac28b493d6eadbce97bd223a65b3282a533c1f15f4b616b0d732a', -- BenBE
'589695821488c9acd2efc26c2fdde259b25615cbfdbb6a434e95e33fa6932023', -- Tarnatos
'9885f836464abf3633f92701e4febeefec54f481d8b6cd39085e6ad24162ff82', -- rubo77
'359ec3619184f1bdfe26515cf5ba2b016ba23489db2a371cbf5c3cee9d061110', -- Sven (FL)
'622e6eccd148c4d4a53ee367dd1d73740da6795fe8dc2df1ff022bf1b4344714', -- eNBeWe
'a15a8f462b5d11982e2b5d36c1788ec48e328d54a736c217aa820b61faa0ad55', -- tSYS
},
},
-- nightly builds are rolled out automatically whenever a commit is pushed into the nightly branch
nightly = {
name = 'nightly',
mirrors = {
'http://[fda1:384a:74de:4242::fd00]/firmware/nightly/sysupgrade',
'http://[fda1:384a:74de:4242::ff00]/firmware/nightly/sysupgrade',
'http://[fda1:384a:74de:4242::ff01]/firmware/nightly/sysupgrade',
'http://[fda1:384a:74de:4242::ff02]/firmware/nightly/sysupgrade',
'http://[fda1:384a:74de:4242::ff03]/firmware/nightly/sysupgrade',
'http://0.updates.services.ffki/firmware/nightly/sysupgrade',
'http://1.updates.services.ffki/firmware/nightly/sysupgrade',
},
good_signatures = 1,
pubkeys = {
'bbb814470889439c04667748c30aabf25fb800621e67544bee803fd1b342ace3', -- sargon
'8d16e1b88bcac28b493d6eadbce97bd223a65b3282a533c1f15f4b616b0d732a', -- BenBE
'589695821488c9acd2efc26c2fdde259b25615cbfdbb6a434e95e33fa6932023', -- Tarnatos
'9885f836464abf3633f92701e4febeefec54f481d8b6cd39085e6ad24162ff82', -- rubo77
'359ec3619184f1bdfe26515cf5ba2b016ba23489db2a371cbf5c3cee9d061110', -- Sven (FL)
'622e6eccd148c4d4a53ee367dd1d73740da6795fe8dc2df1ff022bf1b4344714', -- eNBeWe
'a15a8f462b5d11982e2b5d36c1788ec48e328d54a736c217aa820b61faa0ad55', -- tSYS
'1c24d4b41680f16cda0c19ad53de84ef1be3a86870e6fec6454833a6a46f7122', -- Buildbot Um, AutoDeploy
'cb0141d79e131854eb05d6c9ce5cc237baa462e288b7fcb0eadbd92da8f34b3f', -- Buildbot Dois, AutoDeploy
},
},
-- next builds are rolled out automatically whenever a commit is pushed into the next branch
next = {
name = 'next',
mirrors = {
'http://[fda1:384a:74de:4242::fd00]/firmware/next/sysupgrade',
'http://[fda1:384a:74de:4242::ff00]/firmware/next/sysupgrade',
'http://[fda1:384a:74de:4242::ff01]/firmware/next/sysupgrade',
'http://[fda1:384a:74de:4242::ff02]/firmware/next/sysupgrade',
'http://[fda1:384a:74de:4242::ff03]/firmware/next/sysupgrade',
'http://0.updates.services.ffki/firmware/next/sysupgrade',
'http://1.updates.services.ffki/firmware/next/sysupgrade',
},
good_signatures = 1,
pubkeys = {
'bbb814470889439c04667748c30aabf25fb800621e67544bee803fd1b342ace3', -- sargon
'8d16e1b88bcac28b493d6eadbce97bd223a65b3282a533c1f15f4b616b0d732a', -- BenBE
'589695821488c9acd2efc26c2fdde259b25615cbfdbb6a434e95e33fa6932023', -- Tarnatos
'9885f836464abf3633f92701e4febeefec54f481d8b6cd39085e6ad24162ff82', -- rubo77
'359ec3619184f1bdfe26515cf5ba2b016ba23489db2a371cbf5c3cee9d061110', -- Sven (FL)
'622e6eccd148c4d4a53ee367dd1d73740da6795fe8dc2df1ff022bf1b4344714', -- eNBeWe
'a15a8f462b5d11982e2b5d36c1788ec48e328d54a736c217aa820b61faa0ad55', -- tSYS
'1c24d4b41680f16cda0c19ad53de84ef1be3a86870e6fec6454833a6a46f7122', -- Buildbot Um, AutoDeploy
'cb0141d79e131854eb05d6c9ce5cc237baa462e288b7fcb0eadbd92da8f34b3f', -- Buildbot Dois, AutoDeploy
},
},
-- release candidate for the next stable
-- this contains only tested versions and is not rolled out automatically
rc = {
name = 'stable',
mirrors = {
'http://[fda1:384a:74de:4242::fd00]/firmware/release-candidate/sysupgrade',
'http://[fda1:384a:74de:4242::ff00]/firmware/release-candidate/sysupgrade',
'http://[fda1:384a:74de:4242::ff01]/firmware/release-candidate/sysupgrade',
'http://[fda1:384a:74de:4242::ff02]/firmware/release-candidate/sysupgrade',
'http://[fda1:384a:74de:4242::ff03]/firmware/release-candidate/sysupgrade',
'http://0.updates.services.ffki/firmware/release-candidate/sysupgrade',
'http://1.updates.services.ffki/firmware/release-candidate/sysupgrade',
},
good_signatures = 2,
pubkeys = {
'bbb814470889439c04667748c30aabf25fb800621e67544bee803fd1b342ace3', -- sargon
'8d16e1b88bcac28b493d6eadbce97bd223a65b3282a533c1f15f4b616b0d732a', -- BenBE
'589695821488c9acd2efc26c2fdde259b25615cbfdbb6a434e95e33fa6932023', -- Tarnatos
'9885f836464abf3633f92701e4febeefec54f481d8b6cd39085e6ad24162ff82', -- rubo77
'359ec3619184f1bdfe26515cf5ba2b016ba23489db2a371cbf5c3cee9d061110', -- Sven (FL)
'622e6eccd148c4d4a53ee367dd1d73740da6795fe8dc2df1ff022bf1b4344714', -- eNBeWe
'a15a8f462b5d11982e2b5d36c1788ec48e328d54a736c217aa820b61faa0ad55', -- tSYS
'1c24d4b41680f16cda0c19ad53de84ef1be3a86870e6fec6454833a6a46f7122', -- Buildbot Um, AutoDeploy
'cb0141d79e131854eb05d6c9ce5cc237baa462e288b7fcb0eadbd92da8f34b3f', -- Buildbot Dois, AutoDeploy
},
},
},
},
ssid_changer = {
enabled = true,
switch_timeframe = 60, -- only once every timeframe (in minutes) the SSID will change to OFFLINE
-- set to 1440 to change once a day
-- set to 1 minute to change every time the router gets offline
first = 5, -- the first few minutes directly after reboot within which an Offline-SSID always may be activated
prefix = 'FF_Offline_', -- use something short to leave space for the nodename (no '~' allowed!)
suffix = 'nodename', -- generate the SSID with either 'nodename', 'mac' or to use only the prefix: 'none'
tq_limit_enabled = false, -- if false, the offline SSID will only be set if there is no gateway reacheable
-- upper and lower limit to turn the offline_ssid on and off
-- in-between these two values the SSID will never be changed to prevent it from toggeling every minute.
tq_limit_max = 45, -- upper limit, above that the online SSID will be used
tq_limit_min = 35 -- lower limit, below that the offline SSID will be used
},
}