Compare commits
375 Commits
backport-2
...
master
Author | SHA1 | Date | |
---|---|---|---|
716daff077 | |||
f8806d672c | |||
1e187f21ef | |||
d5f9f5dd46 | |||
|
979dd354fa | ||
|
f0246b65e2 | ||
|
079f449d9d | ||
|
b840afe95f | ||
|
02878ee083 | ||
|
44a891807c | ||
|
6771803de3 | ||
|
cc452904b5 | ||
|
677d56aea6 | ||
|
70da43fa35 | ||
|
ed36f1456f | ||
|
41b2f002f3 | ||
|
22781dac06 | ||
|
5328f17b09 | ||
|
eca926abc7 | ||
|
76ad25f826 | ||
|
91b26c65aa | ||
|
2f463c0353 | ||
|
8b5a282c4a | ||
|
4018db1823 | ||
|
899dd916d0 | ||
|
e06e555ac2 | ||
|
3e3a7987b6 | ||
|
918e3ce784 | ||
|
f7298d70f3 | ||
|
2a3a0e32d5 | ||
|
10e52bec3a | ||
|
75c62fd2aa | ||
|
19f3c9d396 | ||
|
b774f6f434 | ||
|
abd6d6415d | ||
|
e7da501442 | ||
|
a31a802e85 | ||
|
1e21dbcfad | ||
|
7805ff700e | ||
|
276cd0ee37 | ||
|
e4d05e6ba9 | ||
|
759a3436e0 | ||
|
5ed8508a09 | ||
|
d91b11ec3d | ||
|
051d10a59f | ||
|
03b9ffdb24 | ||
|
d46c5f89c5 | ||
|
f0b2e632d0 | ||
|
7cd4a189e0 | ||
|
d1b215aeec | ||
|
7ca4cb3698 | ||
|
cc854594b0 | ||
|
31d1429ad2 | ||
|
297cd5bc3f | ||
|
4faa6f3d61 | ||
|
c620ae789e | ||
|
a834298b4e | ||
|
e40ed5810d | ||
|
f21e3e129a | ||
|
48b017b1a4 | ||
|
4badb2702e | ||
|
e8e956fe57 | ||
|
157a74c5ab | ||
|
c81e9c287b | ||
|
10e0bd1fe0 | ||
|
4a00b8aebb | ||
|
b70b9d2a05 | ||
|
f3b25c1e7d | ||
|
7b2e04e8dc | ||
|
068e8fbdce | ||
|
b8d47e6c4b | ||
|
95e5d382ec | ||
|
006396620a | ||
|
a2056d97a9 | ||
|
3a0b0b061a | ||
|
1c6405a756 | ||
|
44e79fc5c9 | ||
|
63a3921acd | ||
|
6dc5a4735b | ||
|
cab47e73e4 | ||
|
6504a4dd6e | ||
|
1a489c5216 | ||
|
d81897a467 | ||
|
f80bef8405 | ||
|
337f2f119e | ||
|
9a4395d048 | ||
|
fe79b50473 | ||
|
2c221bac79 | ||
|
02d363eadc | ||
|
2f9d59cdb8 | ||
|
bf153bc943 | ||
|
ec57f6c666 | ||
|
53b84e3424 | ||
|
989a16d103 | ||
|
f3c7f340b8 | ||
|
ac14244b79 | ||
|
25eb6763cd | ||
|
82723f3a45 | ||
|
ccca92cf92 | ||
|
94537db4df | ||
|
23145c58a0 | ||
|
7e8c9f41a6 | ||
|
43faa4f0d9 | ||
|
1d50bedce8 | ||
|
002ace202f | ||
|
44844262cd | ||
|
a0f8d2ca52 | ||
|
4e68059bc8 | ||
|
193fe036b0 | ||
|
22c47df242 | ||
|
f71e31a211 | ||
|
d97673f715 | ||
|
0cdaeaa0c9 | ||
|
b28f58dbd4 | ||
|
be672eda35 | ||
|
536c771f3f | ||
|
670da836c7 | ||
|
37b88cf790 | ||
|
b9ffb7dcca | ||
|
3354c37f47 | ||
|
6398670b57 | ||
|
b8c68307c5 | ||
|
1780bafafc | ||
|
57a0e44458 | ||
|
2a1873b3c3 | ||
|
ee36d5a611 | ||
|
a18510c09a | ||
|
9ac048dbdf | ||
|
953a227ab0 | ||
|
826e6541bc | ||
|
83809093e0 | ||
|
0a2eac6e5d | ||
|
ad8cfe02c2 | ||
|
1f451d4021 | ||
|
4fb43ab020 | ||
|
154a245fc2 | ||
|
3597a8ba98 | ||
|
03fe3d4a1d | ||
|
f5a41dd3bc | ||
|
11b2636ded | ||
|
7b25412541 | ||
|
1df9fbeb54 | ||
|
703313e2e0 | ||
|
d65cbdf32a | ||
|
5baa8e07f1 | ||
|
ad378ce60f | ||
|
052e08e771 | ||
|
760cf8e87f | ||
|
4c544d4b79 | ||
|
13da5ece33 | ||
|
95b48893ac | ||
|
e0256f40bd | ||
|
8e5c4b1edf | ||
|
355f9f7bae | ||
|
474b26ae5b | ||
|
d65ce73762 | ||
|
86502c46ba | ||
|
acfd3f1744 | ||
|
f1bff05c7b | ||
|
b2397ebf30 | ||
|
17f94663a2 | ||
|
edc1260743 | ||
|
f2d137b17a | ||
|
48b70a9ea5 | ||
|
c93eb80bbe | ||
|
0e5a5d31f5 | ||
|
8c345910e7 | ||
|
c3be7a78b7 | ||
|
caeae3b3d9 | ||
|
5f6bf492f7 | ||
|
0699362083 | ||
|
a5825a840a | ||
|
309922e5c9 | ||
|
6c4a0ae373 | ||
|
ab89bacb55 | ||
|
896dae59f6 | ||
|
9c023fba57 | ||
|
10613b9e52 | ||
|
051c74b987 | ||
|
e797ad4c2f | ||
|
36f407877b | ||
|
ac7de8414e | ||
|
27d52b5ee5 | ||
|
44c12e87ec | ||
|
e43d4290a1 | ||
|
6ff3217903 | ||
|
d7f869ad6d | ||
|
cdcd1452a2 | ||
|
133ddf19cf | ||
|
00e61ae968 | ||
|
7cabc593c7 | ||
|
c0d27c1106 | ||
|
be7e22ddc2 | ||
|
d374d6dfcf | ||
|
df869585cf | ||
|
bc4349eb75 | ||
|
1b110283c7 | ||
|
7059d3c093 | ||
|
38fd6bc96e | ||
|
df56dc18f6 | ||
|
79873e51d6 | ||
|
7b2b2d13fa | ||
|
4a9d2bdb67 | ||
|
c60ada47fe | ||
|
9ce4837617 | ||
|
1e90e904cc | ||
|
8f6eae9a8b | ||
|
b3a9221b07 | ||
|
9eee9e9bdb | ||
|
6703d45d61 | ||
|
70c1963cc0 | ||
|
7bf8de457a | ||
|
b3a7b6ee9e | ||
|
cd38de1bda | ||
|
b03496ae5c | ||
|
4083f150c0 | ||
|
8067a77f59 | ||
|
40cf3bc905 | ||
|
8096277fe2 | ||
|
524044c552 | ||
|
961ca53c54 | ||
|
cf0c007829 | ||
|
ce054e1c45 | ||
|
34ba8b3047 | ||
|
28f3eb741a | ||
|
0ec3207830 | ||
|
389314f58a | ||
|
348e938957 | ||
|
6c0f224456 | ||
|
4738610d5d | ||
|
34dcf4c978 | ||
|
c05abb4179 | ||
|
5ccbaed6f5 | ||
|
2aa3527fdc | ||
|
886f6387b7 | ||
|
5f371a3cd4 | ||
|
cad694a22a | ||
|
c03c92bca2 | ||
|
c22956ca55 | ||
|
55096d55f0 | ||
|
7d9d8cb61c | ||
|
2b4d3c1b73 | ||
|
5d10d327c5 | ||
|
21bf0fbf54 | ||
|
4c94588908 | ||
|
84a76af866 | ||
|
b6e98169fd | ||
|
a58de638c7 | ||
|
b41f805316 | ||
|
3c0f8596f0 | ||
|
46d6bf8304 | ||
|
6992a3d1ac | ||
|
6ed243fb2b | ||
|
32853d6e5a | ||
|
04b9935b9f | ||
|
047f4fb016 | ||
|
36e9a85e22 | ||
|
8ad1d7a2b4 | ||
|
a02ff964d5 | ||
|
1f87d15912 | ||
|
85f3e40a14 | ||
|
41b8ecd617 | ||
|
a0db0a46b3 | ||
|
535cc3f468 | ||
|
d225befe93 | ||
|
4d70f1d950 | ||
|
096f739477 | ||
|
161a87eab8 | ||
|
4b535b9383 | ||
|
08684e90bb | ||
|
408ef92215 | ||
|
896c7c6d78 | ||
|
30a6b76520 | ||
|
4d61bc1bfa | ||
|
a8dc234550 | ||
|
e53308b61e | ||
|
ba80cbbab8 | ||
|
ffe8cab516 | ||
|
b9d6a64eee | ||
|
016b34be23 | ||
|
b4f174a41d | ||
|
3283abbb93 | ||
|
c535047274 | ||
|
92c80ed4a8 | ||
|
a3091f3c59 | ||
|
1005f9d233 | ||
|
32fe29a4a1 | ||
|
68bec1f0ec | ||
|
aa6853dddd | ||
|
d39557aadc | ||
|
4f0c7447b4 | ||
|
5a6517425b | ||
|
8ce7dd15a3 | ||
|
3a93405a99 | ||
|
7a49faec4a | ||
|
91329b5230 | ||
|
150f91a480 | ||
|
07e83438c1 | ||
|
53e9997a4a | ||
|
4ef9504c4e | ||
|
bc09b7ecbb | ||
|
d8a2bc6a18 | ||
|
6f534fb6b0 | ||
|
da8eee86cf | ||
|
a072a71213 | ||
|
200e302a56 | ||
|
b11d983bbc | ||
|
acc89e403a | ||
|
b686020209 | ||
|
56fddc608f | ||
|
91bfa4f9c5 | ||
|
4936b416b8 | ||
|
9c2ee67009 | ||
|
db6b9deca6 | ||
|
1a7acd4699 | ||
|
e828ff190f | ||
|
36ab60ff45 | ||
|
2f318afd2e | ||
|
cea79e9e63 | ||
|
5888a50cba | ||
|
e4ec16d9cd | ||
|
8f5636a713 | ||
|
0c66dc86d2 | ||
|
e049e0bd4b | ||
|
8528a85089 | ||
|
aa35559f13 | ||
|
267124b520 | ||
|
33fa77a760 | ||
|
1077984193 | ||
|
301443da02 | ||
|
95385f6de7 | ||
|
c5e297e9c8 | ||
|
935e0534ac | ||
|
b8bb950e62 | ||
|
3e0919d6a4 | ||
|
416d75d48a | ||
|
d3a220d10b | ||
|
33adfb1aeb | ||
|
ece6a62637 | ||
|
ad481c9f4f | ||
|
e4c7b7d29e | ||
|
3f880e4678 | ||
|
ebe3ca9d33 | ||
|
32e7cf941a | ||
|
29b26c467d | ||
|
8f11053e30 | ||
|
433de1591e | ||
|
91df13c8b1 | ||
|
115aad0931 | ||
|
1417467bd4 | ||
|
6dfd6ee834 | ||
|
e272db6370 | ||
|
d972a9df2c | ||
|
3ab8007a1e | ||
|
dd30a6e658 | ||
|
6ecf0a994c | ||
|
94249bfa6a | ||
|
e42adda8ad | ||
|
55621d9fd1 | ||
|
b3e9bcd615 | ||
|
cf939adfa4 | ||
|
5fc0c5afdc | ||
|
d780247750 | ||
|
c55ee3b7d1 | ||
|
f6f0e38d4e | ||
|
622e925fea | ||
|
19b54dd56f | ||
|
375fc23d1f | ||
|
0530b06557 | ||
|
4e6b7cf607 | ||
|
8ed040fb32 | ||
|
33779ccd96 | ||
|
341ed3b311 | ||
|
6b6a091634 | ||
|
9c197daf78 |
@ -7,18 +7,43 @@ insert_final_newline = true
|
|||||||
indent_style = tab
|
indent_style = tab
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
|
|
||||||
|
[Dockerfile]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
[/patches/**]
|
[/patches/**]
|
||||||
indent_style = unset
|
indent_style = unset
|
||||||
indent_size = unset
|
indent_size = unset
|
||||||
|
|
||||||
|
[*.c]
|
||||||
|
|
||||||
|
[*.css]
|
||||||
|
|
||||||
|
[*.dia]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.h]
|
||||||
|
|
||||||
|
[*.html]
|
||||||
|
|
||||||
|
[*.js]
|
||||||
|
|
||||||
[*{.json,.ecrc}]
|
[*{.json,.ecrc}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.lua]
|
||||||
|
|
||||||
|
[{Makefile,*.mk}]
|
||||||
|
indent_style = unset
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.pl]
|
||||||
|
|
||||||
[*.py]
|
[*.py]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
@ -27,6 +52,8 @@ indent_size = 4
|
|||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.sh]
|
||||||
|
|
||||||
[*.yml]
|
[*.yml]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
@ -34,3 +61,7 @@ indent_size = 2
|
|||||||
[CMakeLists.txt]
|
[CMakeLists.txt]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[{docs,contrib/ci}/*site*/**/*.conf]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
2
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -6,7 +6,7 @@ label: bug
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
Please carefully fill out the questionaire below to help improve the
|
Please carefully fill out the questionnaire below to help improve the
|
||||||
timely triaging of issues. Walk through the questions below and use
|
timely triaging of issues. Walk through the questions below and use
|
||||||
them as an inspiration for what information you can provide.
|
them as an inspiration for what information you can provide.
|
||||||
|
|
||||||
|
2
.github/dependabot.yml
vendored
2
.github/dependabot.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
# Docs: <https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/customizing-dependency-updates>
|
# Docs: <https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/customizing-dependency-updates>
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
|
19
.github/filters.yml
vendored
19
.github/filters.yml
vendored
@ -56,6 +56,16 @@
|
|||||||
"targets/generic",
|
"targets/generic",
|
||||||
"targets/targets.mk"
|
"targets/targets.mk"
|
||||||
],
|
],
|
||||||
|
"ipq40xx-mikrotik": [
|
||||||
|
"targets/ipq40xx-mikrotik",
|
||||||
|
"modules",
|
||||||
|
"Makefile",
|
||||||
|
"patches/**",
|
||||||
|
"scripts/**",
|
||||||
|
"targets/generic",
|
||||||
|
"targets/targets.mk",
|
||||||
|
"targets/mikrotik.inc"
|
||||||
|
],
|
||||||
"ipq806x-generic": [
|
"ipq806x-generic": [
|
||||||
"targets/ipq806x-generic",
|
"targets/ipq806x-generic",
|
||||||
"modules",
|
"modules",
|
||||||
@ -137,6 +147,15 @@
|
|||||||
"targets/generic",
|
"targets/generic",
|
||||||
"targets/targets.mk"
|
"targets/targets.mk"
|
||||||
],
|
],
|
||||||
|
"realtek-rtl838x": [
|
||||||
|
"targets/realtek-rtl838x",
|
||||||
|
"modules",
|
||||||
|
"Makefile",
|
||||||
|
"patches/**",
|
||||||
|
"scripts/**",
|
||||||
|
"targets/generic",
|
||||||
|
"targets/targets.mk"
|
||||||
|
],
|
||||||
"rockchip-armv8": [
|
"rockchip-armv8": [
|
||||||
"targets/rockchip-armv8",
|
"targets/rockchip-armv8",
|
||||||
"modules",
|
"modules",
|
||||||
|
9
.github/workflows/backport.yml
vendored
9
.github/workflows/backport.yml
vendored
@ -2,6 +2,9 @@ name: Backport
|
|||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [closed, labeled]
|
types: [closed, labeled]
|
||||||
|
permissions:
|
||||||
|
contents: write # so it can comment
|
||||||
|
pull-requests: write # so it can create pull requests
|
||||||
jobs:
|
jobs:
|
||||||
backport:
|
backport:
|
||||||
name: Backport Pull Request
|
name: Backport Pull Request
|
||||||
@ -10,10 +13,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Create backport PRs
|
- name: Create backport PRs
|
||||||
uses: zeebe-io/backport-action@v0.0.8
|
uses: korthout/backport-action@v1.2.0
|
||||||
with:
|
with:
|
||||||
# Config README: https://github.com/zeebe-io/backport-action#backport-action
|
# Config README: https://github.com/korthout/backport-action#backport-action
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
github_workspace: ${{ github.workspace }}
|
|
||||||
pull_description: |-
|
pull_description: |-
|
||||||
Automatic backport to `${target_branch}`, triggered by a label in #${pull_number}.
|
Automatic backport to `${target_branch}`, triggered by a label in #${pull_number}.
|
||||||
|
3
.github/workflows/build-docs.yml
vendored
3
.github/workflows/build-docs.yml
vendored
@ -9,6 +9,9 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'docs**/'
|
- 'docs**/'
|
||||||
- '.github/workflows/build-docs.yml'
|
- '.github/workflows/build-docs.yml'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-documentation:
|
build-documentation:
|
||||||
name: docs
|
name: docs
|
||||||
|
8
.github/workflows/build-gluon.yml
vendored
8
.github/workflows/build-gluon.yml
vendored
@ -8,8 +8,14 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
changed:
|
changed:
|
||||||
|
permissions:
|
||||||
|
contents: read # for dorny/paths-filter to fetch a list of changed files
|
||||||
|
pull-requests: read # for dorny/paths-filter to read pull requests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
targets: ${{ steps.filter.outputs.changes }}
|
targets: ${{ steps.filter.outputs.changes }}
|
||||||
@ -28,7 +34,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# Read back changd targets to create build matrix
|
# Read back changed targets to create build matrix
|
||||||
target: ${{ fromJSON(needs.changed.outputs.targets) }}
|
target: ${{ fromJSON(needs.changed.outputs.targets) }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
3
.github/workflows/check-patches.yml
vendored
3
.github/workflows/check-patches.yml
vendored
@ -12,6 +12,9 @@ on:
|
|||||||
- 'modules'
|
- 'modules'
|
||||||
- 'patches/**'
|
- 'patches/**'
|
||||||
- '.github/workflows/check-patches.yml'
|
- '.github/workflows/check-patches.yml'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-patches:
|
check-patches:
|
||||||
name: Check patches
|
name: Check patches
|
||||||
|
6
.github/workflows/labels.yml
vendored
6
.github/workflows/labels.yml
vendored
@ -4,8 +4,14 @@ on:
|
|||||||
# only execute base branch actions
|
# only execute base branch actions
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
labels:
|
labels:
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/labeler to determine modified files
|
||||||
|
pull-requests: write # for actions/labeler to add labels to PRs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository_owner == 'freifunk-gluon'
|
if: github.repository_owner == 'freifunk-gluon'
|
||||||
steps:
|
steps:
|
||||||
|
25
.github/workflows/lint.yml
vendored
25
.github/workflows/lint.yml
vendored
@ -3,6 +3,9 @@ on:
|
|||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lua:
|
lua:
|
||||||
name: Lua
|
name: Lua
|
||||||
@ -27,3 +30,25 @@ jobs:
|
|||||||
run: ln -s ./docs/site-example ./site
|
run: ln -s ./docs/site-example ./site
|
||||||
- name: Lint shell code
|
- name: Lint shell code
|
||||||
run: make lint-sh
|
run: make lint-sh
|
||||||
|
|
||||||
|
editorconfig:
|
||||||
|
name: Editorconfig
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: sudo apt install curl tar
|
||||||
|
- name: Install editorconfig-checker
|
||||||
|
env:
|
||||||
|
VERSION: 2.7.0
|
||||||
|
OS: linux
|
||||||
|
ARCH: amd64
|
||||||
|
run: |
|
||||||
|
curl -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz
|
||||||
|
tar xzf ec-$OS-$ARCH.tar.gz
|
||||||
|
sudo mv ./bin/ec-$OS-$ARCH /usr/bin/editorconfig-checker
|
||||||
|
sudo chmod +x /usr/bin/editorconfig-checker
|
||||||
|
- name: Install example site
|
||||||
|
run: ln -s ./docs/site-example ./site
|
||||||
|
- name: Lint editorconfig
|
||||||
|
run: make lint-editorconfig
|
||||||
|
@ -29,6 +29,7 @@ files["package/**/check_site.lua"] = {
|
|||||||
"need",
|
"need",
|
||||||
"need_alphanumeric_key",
|
"need_alphanumeric_key",
|
||||||
"need_array",
|
"need_array",
|
||||||
|
"need_array_elements_exclusive",
|
||||||
"need_array_of",
|
"need_array_of",
|
||||||
"need_boolean",
|
"need_boolean",
|
||||||
"need_chanlist",
|
"need_chanlist",
|
||||||
@ -50,6 +51,7 @@ files["package/**/check_site.lua"] = {
|
|||||||
|
|
||||||
files["package/**/luasrc/lib/gluon/config-mode/*"] = {
|
files["package/**/luasrc/lib/gluon/config-mode/*"] = {
|
||||||
globals = {
|
globals = {
|
||||||
|
"MultiListValue",
|
||||||
"DynamicList",
|
"DynamicList",
|
||||||
"Flag",
|
"Flag",
|
||||||
"Form",
|
"Form",
|
||||||
@ -63,6 +65,7 @@ files["package/**/luasrc/lib/gluon/config-mode/*"] = {
|
|||||||
"translate",
|
"translate",
|
||||||
"translatef",
|
"translatef",
|
||||||
"Value",
|
"Value",
|
||||||
|
"Element",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,6 +11,10 @@ sphinx:
|
|||||||
|
|
||||||
# Optionally set the version of Python and requirements required to build your docs
|
# Optionally set the version of Python and requirements required to build your docs
|
||||||
python:
|
python:
|
||||||
version: 3.8
|
|
||||||
install:
|
install:
|
||||||
- requirements: docs/requirements.txt
|
- requirements: docs/requirements.txt
|
||||||
|
|
||||||
|
build:
|
||||||
|
os: ubuntu-22.04
|
||||||
|
tools:
|
||||||
|
python: "3.8"
|
||||||
|
30
.woodpecker.yml
Normal file
30
.woodpecker.yml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
workspace:
|
||||||
|
base: /build
|
||||||
|
|
||||||
|
#clone:
|
||||||
|
# git:
|
||||||
|
# image: woodpeckerci/plugin-git
|
||||||
|
# settings:
|
||||||
|
# recursive: true
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
build-${TARGET}:
|
||||||
|
image: "ubuntu:latest"
|
||||||
|
pull: true
|
||||||
|
environment:
|
||||||
|
- input_version=v2022.1.4
|
||||||
|
- GLUON_SITEDIR=../site
|
||||||
|
- FORCE_UNSAFE_CONFIGURE=1
|
||||||
|
- GLUON_TARGET=${TARGET}
|
||||||
|
- GLUON_DEPRECATED=1
|
||||||
|
commands:
|
||||||
|
- echo ${TARGET}
|
||||||
|
# - git config --global init.defaultBranch main
|
||||||
|
# - sed -i 's/install/install file/' contrib/actions/install-dependencies.sh
|
||||||
|
# - sh contrib/actions/install-dependencies.sh
|
||||||
|
# - sh contrib/actions/run-build.sh ${TARGET}
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
TARGET:
|
||||||
|
- ath79-generic
|
||||||
|
- x86-64
|
@ -23,8 +23,8 @@ using other parts or why the proposed change breaks other parts of the system.
|
|||||||
They might even refuse the idea altogether - after all, they have to sleep well
|
They might even refuse the idea altogether - after all, they have to sleep well
|
||||||
after merging the changes, too.
|
after merging the changes, too.
|
||||||
|
|
||||||
The preferred way to discuss in the IRC channel ([#gluon] on irc.hackint.org)
|
The preferred way to discuss is in the IRC channel ([#gluon] on irc.hackint.org)
|
||||||
or on the [mailing list], however, you can also open a new issue on Github to
|
or on the [mailing list], however, you can also open a new issue on GitHub to
|
||||||
discuss there. We maintain a [list of rejected features] and we'd like to
|
discuss there. We maintain a [list of rejected features] and we'd like to
|
||||||
kindly ask you to review it first. In general, looking for duplicates may save
|
kindly ask you to review it first. In general, looking for duplicates may save
|
||||||
you some time.
|
you some time.
|
||||||
|
2
LICENSE
2
LICENSE
@ -1,7 +1,7 @@
|
|||||||
The code of Project Gluon may be distributed under the following terms, unless
|
The code of Project Gluon may be distributed under the following terms, unless
|
||||||
noted otherwise in individual files or subtrees.
|
noted otherwise in individual files or subtrees.
|
||||||
|
|
||||||
Copyright (c) 2013-2022, Project Gluon
|
Copyright (c) Project Gluon
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
5
Makefile
5
Makefile
@ -151,7 +151,10 @@ list-targets: FORCE
|
|||||||
echo "$$target"
|
echo "$$target"
|
||||||
done
|
done
|
||||||
|
|
||||||
lint: lint-lua lint-sh
|
lint: lint-editorconfig lint-lua lint-sh
|
||||||
|
|
||||||
|
lint-editorconfig: FORCE
|
||||||
|
@scripts/lint-editorconfig.sh
|
||||||
|
|
||||||
lint-lua: FORCE
|
lint-lua: FORCE
|
||||||
@scripts/lint-lua.sh
|
@scripts/lint-lua.sh
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[![Build Gluon](https://github.com/freifunk-gluon/gluon/actions/workflows/build-gluon.yml/badge.svg?branch=master)](https://github.com/freifunk-gluon/gluon/actions/workflows/build-gluon.yml)
|
[![Build Gluon](https://github.com/freifunk-gluon/gluon/actions/workflows/build-gluon.yml/badge.svg?branch=master)](https://github.com/freifunk-gluon/gluon/actions/workflows/build-gluon.yml)
|
||||||
[![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)
|
[![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/license/bsd-2-clause/)
|
||||||
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/freifunk-gluon/gluon?sort=semver)](https://github.com/freifunk-gluon/gluon/releases/latest)
|
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/freifunk-gluon/gluon?sort=semver)](https://github.com/freifunk-gluon/gluon/releases/latest)
|
||||||
|
|
||||||
# Gluon
|
# Gluon
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
apt-get -y update
|
apt-get -y update
|
||||||
apt-get -y install git subversion build-essential python3 gawk unzip libncurses5-dev zlib1g-dev libssl-dev wget time qemu-utils
|
apt-get -y install git build-essential python3 gawk unzip libncurses5-dev zlib1g-dev libssl-dev libelf-dev wget rsync time qemu-utils
|
||||||
apt-get -y clean
|
apt-get -y clean
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
-- This is an example site configuration for Gluon v2018.2+
|
-- This is an example site configuration for Gluon v2022.1
|
||||||
--
|
--
|
||||||
-- Take a look at the documentation located at
|
-- Take a look at the documentation located at
|
||||||
-- https://gluon.readthedocs.io/ for details.
|
-- https://gluon.readthedocs.io/ for details.
|
||||||
@ -10,7 +10,7 @@
|
|||||||
-- hostname_prefix = 'freifunk-',
|
-- hostname_prefix = 'freifunk-',
|
||||||
|
|
||||||
-- Name of the community.
|
-- Name of the community.
|
||||||
site_name = 'Continious Integration',
|
site_name = 'Continuous Integration',
|
||||||
|
|
||||||
-- Shorthand of the community.
|
-- Shorthand of the community.
|
||||||
site_code = 'ci',
|
site_code = 'ci',
|
||||||
@ -42,10 +42,14 @@
|
|||||||
-- Wireless channel.
|
-- Wireless channel.
|
||||||
channel = 1,
|
channel = 1,
|
||||||
|
|
||||||
-- ESSID used for client network.
|
-- ESSIDs used for client network.
|
||||||
ap = {
|
ap = {
|
||||||
ssid = 'gluon-ci-ssid',
|
ssid = 'gluon-ci-ssid',
|
||||||
-- disabled = true, -- (optional)
|
-- disabled = true, -- (optional)
|
||||||
|
|
||||||
|
-- Configuration for a backward compatible OWE network below.
|
||||||
|
owe_ssid = 'owe.gluon-ci-ssid', -- (optional - SSID for OWE client network)
|
||||||
|
owe_transition_mode = true, -- (optional - enables transition-mode - requires ssid as well as owe_ssid)
|
||||||
},
|
},
|
||||||
|
|
||||||
mesh = {
|
mesh = {
|
||||||
@ -64,8 +68,6 @@
|
|||||||
outdoor_chanlist = '100-140',
|
outdoor_chanlist = '100-140',
|
||||||
ap = {
|
ap = {
|
||||||
ssid = 'gluon-ci-ssid',
|
ssid = 'gluon-ci-ssid',
|
||||||
owe_ssid = "owe.gluon-ci-ssid",
|
|
||||||
owe_transition_mode = false,
|
|
||||||
},
|
},
|
||||||
mesh = {
|
mesh = {
|
||||||
-- Adjust these values!
|
-- Adjust these values!
|
||||||
@ -74,6 +76,12 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
mesh = {
|
||||||
|
vxlan = true,
|
||||||
|
batman_adv = {
|
||||||
|
routing_algo = 'BATMAN_IV',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
-- The next node feature allows clients to always reach the node it is
|
-- The next node feature allows clients to always reach the node it is
|
||||||
-- connected to using a known IP address.
|
-- connected to using a known IP address.
|
||||||
@ -84,12 +92,16 @@
|
|||||||
ip6 = 'fd::1',
|
ip6 = 'fd::1',
|
||||||
},
|
},
|
||||||
|
|
||||||
mesh = {
|
-- Options specific to routing protocols (optional)
|
||||||
vxlan = true,
|
-- mesh = {
|
||||||
batman_adv = {
|
-- Options specific to the batman-adv routing protocol (optional)
|
||||||
routing_algo = 'BATMAN_IV'
|
-- 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,
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
|
||||||
mesh_vpn = {
|
mesh_vpn = {
|
||||||
-- enabled = true,
|
-- enabled = true,
|
||||||
@ -113,7 +125,18 @@
|
|||||||
peers = {
|
peers = {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Optional: nested peer groups
|
||||||
|
-- groups = {
|
||||||
|
-- backbone_sub = {
|
||||||
|
-- ...
|
||||||
|
-- },
|
||||||
|
-- ...
|
||||||
|
-- },
|
||||||
},
|
},
|
||||||
|
-- Optional: additional peer groups, possibly with other limits
|
||||||
|
-- backbone2 = {
|
||||||
|
-- ...
|
||||||
|
-- },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -130,7 +153,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
autoupdater = {
|
autoupdater = {
|
||||||
-- Default branch. Don't forget to set GLUON_BRANCH when building!
|
-- Default branch (optional), can be overridden by setting GLUON_AUTOUPDATER_BRANCH when building.
|
||||||
|
-- Set GLUON_AUTOUPDATER_ENABLED to enable the autoupdater by default for newly installed nodes.
|
||||||
branch = 'stable',
|
branch = 'stable',
|
||||||
|
|
||||||
-- List of branches. You may define multiple branches.
|
-- List of branches. You may define multiple branches.
|
||||||
|
1
contrib/ci/olsr-site/i18n
Symbolic link
1
contrib/ci/olsr-site/i18n
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../minimal-site/i18n
|
1
contrib/ci/olsr-site/modules
Symbolic link
1
contrib/ci/olsr-site/modules
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../minimal-site/modules
|
176
contrib/ci/olsr-site/site.conf
Normal file
176
contrib/ci/olsr-site/site.conf
Normal file
@ -0,0 +1,176 @@
|
|||||||
|
-- This is an example site configuration for Gluon v2022.1
|
||||||
|
--
|
||||||
|
-- Take a look at the documentation located at
|
||||||
|
-- https://gluon.readthedocs.io/ for details.
|
||||||
|
--
|
||||||
|
-- This configuration will not work as is. You're required to make
|
||||||
|
-- community specific changes to it!
|
||||||
|
{
|
||||||
|
-- Used for generated hostnames, e.g. freifunk-abcdef123456. (optional)
|
||||||
|
-- hostname_prefix = 'freifunk-',
|
||||||
|
|
||||||
|
-- Name of the community.
|
||||||
|
site_name = 'Continuous Integration',
|
||||||
|
|
||||||
|
-- Shorthand of the community.
|
||||||
|
site_code = 'ci',
|
||||||
|
|
||||||
|
-- 32 bytes of random data, encoded in hexadecimal
|
||||||
|
-- This data must be unique among all sites and domains!
|
||||||
|
-- Can be generated using: echo $(hexdump -v -n 32 -e '1/1 "%02x"' </dev/urandom)
|
||||||
|
domain_seed = 'e9608c4ff338b920992d629190e9ff11049de1dfc3f299eac07792dfbcda341c',
|
||||||
|
|
||||||
|
-- Prefixes used by clients within the mesh.
|
||||||
|
-- prefix6 is required, prefix4 can be omitted if next_node.ip4
|
||||||
|
-- is not set.
|
||||||
|
prefix6 = 'fdff:cafe:cafe:cafe::/64',
|
||||||
|
|
||||||
|
-- Prefixes used by nodes within the mesh
|
||||||
|
node_prefix6 = 'fdff:cafe:cafe:cafe::/64',
|
||||||
|
|
||||||
|
-- Timezone of your community.
|
||||||
|
-- See https://openwrt.org/docs/guide-user/base-system/system_configuration#time_zones
|
||||||
|
timezone = 'CET-1CEST,M3.5.0,M10.5.0/3',
|
||||||
|
|
||||||
|
-- List of NTP servers in your community.
|
||||||
|
-- Must be reachable using IPv6!
|
||||||
|
-- ntp_servers = {'1.ntp.services.ffxx'},
|
||||||
|
|
||||||
|
-- Wireless regulatory domain of your community.
|
||||||
|
regdom = 'DE',
|
||||||
|
|
||||||
|
-- Wireless configuration for 2.4 GHz interfaces.
|
||||||
|
wifi24 = {
|
||||||
|
-- Wireless channel.
|
||||||
|
channel = 1,
|
||||||
|
|
||||||
|
-- ESSIDs used for client network.
|
||||||
|
ap = {
|
||||||
|
ssid = 'gluon-ci-ssid',
|
||||||
|
-- disabled = true, -- (optional)
|
||||||
|
|
||||||
|
-- Configuration for a backward compatible OWE network below.
|
||||||
|
owe_ssid = 'owe.gluon-ci-ssid', -- (optional - SSID for OWE client network)
|
||||||
|
owe_transition_mode = true, -- (optional - enables transition-mode - requires ssid as well as owe_ssid)
|
||||||
|
},
|
||||||
|
|
||||||
|
mesh = {
|
||||||
|
-- Adjust these values!
|
||||||
|
id = 'ueH3uXjdp', -- usually you don't want users to connect to this mesh-SSID, so use a cryptic id that no one will accidentally mistake for the client WiFi
|
||||||
|
mcast_rate = 12000,
|
||||||
|
-- disabled = true, -- (optional)
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Wireless configuration for 5 GHz interfaces.
|
||||||
|
-- This should be equal to the 2.4 GHz variant, except
|
||||||
|
-- for channel.
|
||||||
|
wifi5 = {
|
||||||
|
channel = 44,
|
||||||
|
outdoor_chanlist = '100-140',
|
||||||
|
ap = {
|
||||||
|
ssid = 'gluon-ci-ssid',
|
||||||
|
-- disabled = true, -- (optional)
|
||||||
|
|
||||||
|
-- Configuration for a backward compatible OWE network below.
|
||||||
|
owe_ssid = 'owe.gluon-ci-ssid', -- (optional - SSID for OWE client network)
|
||||||
|
owe_transition_mode = true, -- (optional - enables transition-mode - requires ssid as well as owe_ssid)
|
||||||
|
},
|
||||||
|
mesh = {
|
||||||
|
-- Adjust these values!
|
||||||
|
id = 'ueH3uXjdp',
|
||||||
|
mcast_rate = 12000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
-- The next node feature allows clients to always reach the node it is
|
||||||
|
-- connected to using a known IP address.
|
||||||
|
next_node = {
|
||||||
|
-- anycast IPs of all nodes
|
||||||
|
name = { 'nextnode.location.community.example.org', 'nextnode', 'nn' },
|
||||||
|
ip4 = '10.0.0.1',
|
||||||
|
ip6 = 'fd::1',
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Options specific to routing protocols (optional)
|
||||||
|
mesh = {
|
||||||
|
vxlan = true,
|
||||||
|
olsrd = {},
|
||||||
|
},
|
||||||
|
|
||||||
|
mesh_vpn = {
|
||||||
|
-- enabled = true,
|
||||||
|
|
||||||
|
fastd = {
|
||||||
|
-- Refer to https://fastd.readthedocs.io/en/latest/ to better understand
|
||||||
|
-- what these options do.
|
||||||
|
|
||||||
|
-- List of crypto-methods to use.
|
||||||
|
methods = {'salsa2012+umac'},
|
||||||
|
mtu = 1312,
|
||||||
|
-- configurable = true,
|
||||||
|
-- syslog_level = 'warn',
|
||||||
|
|
||||||
|
groups = {
|
||||||
|
backbone = {
|
||||||
|
-- Limit number of connected peers to reduce bandwidth.
|
||||||
|
limit = 1,
|
||||||
|
|
||||||
|
-- List of peers.
|
||||||
|
peers = {
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Optional: nested peer groups
|
||||||
|
-- groups = {
|
||||||
|
-- backbone_sub = {
|
||||||
|
-- ...
|
||||||
|
-- },
|
||||||
|
-- ...
|
||||||
|
-- },
|
||||||
|
},
|
||||||
|
-- Optional: additional peer groups, possibly with other limits
|
||||||
|
-- backbone2 = {
|
||||||
|
-- ...
|
||||||
|
-- },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
bandwidth_limit = {
|
||||||
|
-- The bandwidth limit can be enabled by default here.
|
||||||
|
enabled = false,
|
||||||
|
|
||||||
|
-- Default upload limit (kbit/s).
|
||||||
|
egress = 200,
|
||||||
|
|
||||||
|
-- Default download limit (kbit/s).
|
||||||
|
ingress = 3000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
autoupdater = {
|
||||||
|
-- Default branch (optional), can be overridden by setting GLUON_AUTOUPDATER_BRANCH when building.
|
||||||
|
-- Set GLUON_AUTOUPDATER_ENABLED to enable the autoupdater by default for newly installed nodes.
|
||||||
|
branch = 'stable',
|
||||||
|
|
||||||
|
-- List of branches. You may define multiple branches.
|
||||||
|
branches = {
|
||||||
|
stable = {
|
||||||
|
name = 'stable',
|
||||||
|
|
||||||
|
-- List of mirrors to fetch images from. IPv6 required!
|
||||||
|
mirrors = {'http://1.updates.services.ffhl/stable/sysupgrade'},
|
||||||
|
|
||||||
|
-- Number of good signatures required.
|
||||||
|
-- Have multiple maintainers sign your build and only
|
||||||
|
-- accept it when a sufficient number of them have
|
||||||
|
-- signed it.
|
||||||
|
good_signatures = 0,
|
||||||
|
|
||||||
|
-- List of public keys of maintainers.
|
||||||
|
pubkeys = {
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
57
contrib/ci/olsr-site/site.mk
Normal file
57
contrib/ci/olsr-site/site.mk
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
## gluon site.mk makefile example
|
||||||
|
|
||||||
|
## GLUON_FEATURES
|
||||||
|
# Specify Gluon features/packages to enable;
|
||||||
|
# Gluon will automatically enable a set of packages
|
||||||
|
# depending on the combination of features listed
|
||||||
|
|
||||||
|
GLUON_FEATURES := \
|
||||||
|
autoupdater \
|
||||||
|
ebtables-filter-multicast \
|
||||||
|
ebtables-filter-ra-dhcp \
|
||||||
|
ebtables-limit-arp \
|
||||||
|
mesh-olsrd \
|
||||||
|
mesh-vpn-fastd \
|
||||||
|
respondd \
|
||||||
|
status-page \
|
||||||
|
web-advanced \
|
||||||
|
web-wizard
|
||||||
|
|
||||||
|
GLUON_FEATURES_standard := \
|
||||||
|
wireless-encryption-wpa3
|
||||||
|
|
||||||
|
## GLUON_SITE_PACKAGES
|
||||||
|
# Specify additional Gluon/OpenWrt packages to include here;
|
||||||
|
# A minus sign may be prepended to remove a packages from the
|
||||||
|
# selection that would be enabled by default or due to the
|
||||||
|
# chosen feature flags
|
||||||
|
|
||||||
|
GLUON_SITE_PACKAGES := iwinfo
|
||||||
|
|
||||||
|
## DEFAULT_GLUON_RELEASE
|
||||||
|
# version string to use for images
|
||||||
|
# gluon relies on
|
||||||
|
# opkg compare-versions "$1" '>>' "$2"
|
||||||
|
# to decide if a version is newer or not.
|
||||||
|
|
||||||
|
DEFAULT_GLUON_RELEASE := 0.6+exp$(shell date '+%Y%m%d')
|
||||||
|
|
||||||
|
# Variables set with ?= can be overwritten from the command line
|
||||||
|
|
||||||
|
## GLUON_RELEASE
|
||||||
|
# call make with custom GLUON_RELEASE flag, to use your own release version scheme.
|
||||||
|
# e.g.:
|
||||||
|
# $ make images GLUON_RELEASE=23.42+5
|
||||||
|
# would generate images named like this:
|
||||||
|
# gluon-ff%site_code%-23.42+5-%router_model%.bin
|
||||||
|
|
||||||
|
GLUON_RELEASE ?= $(DEFAULT_GLUON_RELEASE)
|
||||||
|
|
||||||
|
# Default priority for updates.
|
||||||
|
GLUON_PRIORITY ?= 0
|
||||||
|
|
||||||
|
# Region code required for some images; supported values: us eu
|
||||||
|
GLUON_REGION ?= eu
|
||||||
|
|
||||||
|
# Languages to include
|
||||||
|
GLUON_LANGS ?= en de
|
@ -5,7 +5,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
ca-certificates \
|
ca-certificates \
|
||||||
file \
|
file \
|
||||||
git \
|
git \
|
||||||
subversion \
|
|
||||||
python3 \
|
python3 \
|
||||||
build-essential \
|
build-essential \
|
||||||
gawk \
|
gawk \
|
||||||
@ -21,7 +20,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
ecdsautils \
|
ecdsautils \
|
||||||
lua-check \
|
lua-check \
|
||||||
shellcheck \
|
shellcheck \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN mkdir /tmp/ec &&\
|
||||||
|
wget -O /tmp/ec/ec-linux-amd64.tar.gz https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.7.0/ec-linux-amd64.tar.gz &&\
|
||||||
|
tar -xvzf /tmp/ec/ec-linux-amd64.tar.gz &&\
|
||||||
|
mv bin/ec-linux-amd64 /usr/local/bin/editorconfig-checker &&\
|
||||||
|
rm -rf /tmp/ec
|
||||||
|
|
||||||
RUN useradd -d /gluon gluon
|
RUN useradd -d /gluon gluon
|
||||||
USER gluon
|
USER gluon
|
||||||
|
@ -4,7 +4,7 @@ use strict;
|
|||||||
use warnings;
|
use warnings;
|
||||||
use Text::Balanced qw(extract_bracketed extract_delimited extract_tagged);
|
use Text::Balanced qw(extract_bracketed extract_delimited extract_tagged);
|
||||||
|
|
||||||
@ARGV >= 1 || die "Usage: $0 <source direcory>\n";
|
@ARGV >= 1 || die "Usage: $0 <source directory>\n";
|
||||||
|
|
||||||
|
|
||||||
my %stringtable;
|
my %stringtable;
|
||||||
@ -79,7 +79,7 @@ if( open F, "find @ARGV -type f '(' -name '*.html' -o -name '*.lua' ')' |" )
|
|||||||
{
|
{
|
||||||
my $stag = quotemeta $1;
|
my $stag = quotemeta $1;
|
||||||
my $etag = $stag;
|
my $etag = $stag;
|
||||||
$etag =~ s/\[/]/g;
|
$etag =~ s/\[/]/g;
|
||||||
|
|
||||||
( $res ) = extract_tagged($code, $stag, $etag);
|
( $res ) = extract_tagged($code, $stag, $etag);
|
||||||
|
|
||||||
|
@ -4,12 +4,12 @@
|
|||||||
# Then you enter the command mode of qemu and can exit by typing "quit".
|
# Then you enter the command mode of qemu and can exit by typing "quit".
|
||||||
|
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
-d 'cpu_reset' \
|
-d 'cpu_reset' \
|
||||||
-enable-kvm \
|
-enable-kvm \
|
||||||
-gdb tcp::1234 \
|
-gdb tcp::1234 \
|
||||||
-nographic \
|
-nographic \
|
||||||
-netdev user,id=wan,hostfwd=tcp::2223-10.0.2.15:22 \
|
-netdev user,id=wan,hostfwd=tcp::2223-10.0.2.15:22 \
|
||||||
-device virtio-net-pci,netdev=wan,addr=0x06,id=nic1 \
|
-device virtio-net-pci,netdev=wan,addr=0x06,id=nic1 \
|
||||||
-netdev user,id=lan,hostfwd=tcp::6080-192.168.1.1:80,hostfwd=tcp::2222-192.168.1.1:22,net=192.168.1.100/24 \
|
-netdev user,id=lan,hostfwd=tcp::6080-192.168.1.1:80,hostfwd=tcp::2222-192.168.1.1:22,net=192.168.1.100/24 \
|
||||||
-device virtio-net-pci,netdev=lan,addr=0x05,id=nic2 \
|
-device virtio-net-pci,netdev=lan,addr=0x05,id=nic2 \
|
||||||
"$@"
|
"$@"
|
||||||
|
@ -29,11 +29,22 @@ lower="$(mktemp)"
|
|||||||
|
|
||||||
trap 'rm -f "$upper" "$lower"' EXIT
|
trap 'rm -f "$upper" "$lower"' EXIT
|
||||||
|
|
||||||
awk 'BEGIN { sep=0 }
|
awk 'BEGIN {
|
||||||
/^---$/ { sep=1; next }
|
sep = 0
|
||||||
{ if(sep==0) print > "'"$upper"'";
|
}
|
||||||
else print > "'"$lower"'"}' \
|
|
||||||
"$manifest"
|
/^---$/ {
|
||||||
|
sep = 1;
|
||||||
|
next
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
if(sep == 0) {
|
||||||
|
print > "'"$upper"'"
|
||||||
|
} else {
|
||||||
|
print > "'"$lower"'"
|
||||||
|
}
|
||||||
|
}' "$manifest"
|
||||||
|
|
||||||
ecdsasign "$upper" < "$SECRET" >> "$lower"
|
ecdsasign "$upper" < "$SECRET" >> "$lower"
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ $# -eq 0 ] || [ "-h" = "$1" ] || [ "-help" = "$1" ] || [ "--help" = "$1" ]; then
|
if [ $# -eq 0 ] || [ "-h" = "$1" ] || [ "-help" = "$1" ] || [ "--help" = "$1" ]; then
|
||||||
cat <<EOHELP
|
cat <<EOHELP
|
||||||
Usage: $0 <public> <signed manifest>
|
Usage: $0 <public> <signed manifest>
|
||||||
|
|
||||||
sigtest.sh checks if a manifest is signed by the public key <public>. There is
|
sigtest.sh checks if a manifest is signed by the public key <public>. There is
|
||||||
@ -12,7 +12,7 @@ See also:
|
|||||||
* https://gluon.readthedocs.io/en/latest/features/autoupdater.html
|
* https://gluon.readthedocs.io/en/latest/features/autoupdater.html
|
||||||
|
|
||||||
EOHELP
|
EOHELP
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
public="$1"
|
public="$1"
|
||||||
@ -21,18 +21,29 @@ upper="$(mktemp)"
|
|||||||
lower="$(mktemp)"
|
lower="$(mktemp)"
|
||||||
ret=1
|
ret=1
|
||||||
|
|
||||||
awk "BEGIN { sep=0 }
|
awk 'BEGIN {
|
||||||
/^---\$/ { sep=1; next }
|
sep = 0
|
||||||
{ if(sep==0) print > \"$upper\";
|
}
|
||||||
else print > \"$lower\"}" \
|
|
||||||
"$manifest"
|
/^---$/ {
|
||||||
|
sep = 1;
|
||||||
|
next
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
if(sep == 0) {
|
||||||
|
print > "'"$upper"'"
|
||||||
|
} else {
|
||||||
|
print > "'"$lower"'"
|
||||||
|
}
|
||||||
|
}' "$manifest"
|
||||||
|
|
||||||
while read -r line
|
while read -r line
|
||||||
do
|
do
|
||||||
if ecdsaverify -s "$line" -p "$public" "$upper"; then
|
if ecdsaverify -s "$line" -p "$public" "$upper"; then
|
||||||
ret=0
|
ret=0
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done < "$lower"
|
done < "$lower"
|
||||||
|
|
||||||
rm -f "$upper" "$lower"
|
rm -f "$upper" "$lower"
|
||||||
|
6
docs/_static/css/custom.css
vendored
6
docs/_static/css/custom.css
vendored
@ -1,8 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
This fixes the vertical position of list markers when the first
|
This fixes the vertical position of list markers when the first
|
||||||
element in the <li> is a <pre> block
|
element in the <li> is a <pre> block
|
||||||
|
|
||||||
Scrolling inside the <pre> block is still working as expected
|
Scrolling inside the <pre> block is still working as expected
|
||||||
*/
|
*/
|
||||||
.rst-content pre.literal-block,
|
.rst-content pre.literal-block,
|
||||||
.rst-content div[class^='highlight'] pre {
|
.rst-content div[class^='highlight'] pre {
|
||||||
|
17
docs/conf.py
17
docs/conf.py
@ -20,7 +20,7 @@
|
|||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
project = 'Gluon'
|
project = 'Gluon'
|
||||||
copyright = '2015-2022, Project Gluon'
|
copyright = 'Project Gluon'
|
||||||
author = 'Project Gluon'
|
author = 'Project Gluon'
|
||||||
|
|
||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
@ -71,6 +71,13 @@ pygments_style = None
|
|||||||
# Don't highlight code blocks unless requested explicitly
|
# Don't highlight code blocks unless requested explicitly
|
||||||
highlight_language = 'none'
|
highlight_language = 'none'
|
||||||
|
|
||||||
|
# Ignore links to the config mode, as well as anchors on on hackint, which are
|
||||||
|
# used to mark channel names and do not exist. Regular links are not effected.
|
||||||
|
linkcheck_ignore = [
|
||||||
|
'http://192.168.1.1',
|
||||||
|
'https://webirc.hackint.org/#'
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
# -- Options for HTML output -------------------------------------------------
|
# -- Options for HTML output -------------------------------------------------
|
||||||
|
|
||||||
@ -137,7 +144,7 @@ latex_elements = {
|
|||||||
# author, documentclass [howto, manual, or own class]).
|
# author, documentclass [howto, manual, or own class]).
|
||||||
latex_documents = [
|
latex_documents = [
|
||||||
(master_doc, 'Gluon.tex', 'Gluon Documentation',
|
(master_doc, 'Gluon.tex', 'Gluon Documentation',
|
||||||
'Project Gluon', 'manual'),
|
'Project Gluon', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@ -147,7 +154,7 @@ latex_documents = [
|
|||||||
# (source start file, name, description, authors, manual section).
|
# (source start file, name, description, authors, manual section).
|
||||||
man_pages = [
|
man_pages = [
|
||||||
(master_doc, 'gluon', 'Gluon Documentation',
|
(master_doc, 'gluon', 'Gluon Documentation',
|
||||||
[author], 1)
|
[author], 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@ -158,8 +165,8 @@ man_pages = [
|
|||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
(master_doc, 'Gluon', 'Gluon Documentation',
|
(master_doc, 'Gluon', 'Gluon Documentation',
|
||||||
author, 'Gluon', 'One line description of project.',
|
author, 'Gluon', 'One line description of project.',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ commits, making `git reflog` the only way to recover them!
|
|||||||
|
|
||||||
make refresh-patches
|
make refresh-patches
|
||||||
|
|
||||||
In order to refresh patches when updating feeds or the OpenWrt base, `make refresh-patches` applies and updates all of their patches without installing feed packages to the OpenWrt buildsystem.
|
In order to refresh patches when updating feeds or the OpenWrt base, `make refresh-patches` applies and updates all of their patches without installing feed packages to the OpenWrt build system.
|
||||||
|
|
||||||
This command speeds up the maintenance of updating OpenWrt and feeds.
|
This command speeds up the maintenance of updating OpenWrt and feeds.
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ apply:
|
|||||||
- use tabs instead of spaces
|
- use tabs instead of spaces
|
||||||
- trailing whitespaces must be eliminated
|
- trailing whitespaces must be eliminated
|
||||||
- files need to end with a final newline
|
- files need to end with a final newline
|
||||||
- newlines need to have unix line endings (lf)
|
- newlines need to have Unix line endings (lf)
|
||||||
|
|
||||||
To that end we provide a ``.editorconfig`` configuration, which is supported by most
|
To that end we provide a ``.editorconfig`` configuration, which is supported by most
|
||||||
of the editors out there.
|
of the editors out there.
|
||||||
|
@ -91,7 +91,7 @@ update.sh
|
|||||||
|
|
||||||
getversion.sh
|
getversion.sh
|
||||||
Used to determine the version numbers of the repositories of Gluon and the
|
Used to determine the version numbers of the repositories of Gluon and the
|
||||||
site configuraiton, to be included in the built firmware images as
|
site configuration, to be included in the built firmware images as
|
||||||
*/lib/gluon/gluon-version* and */lib/gluon/site-version*.
|
*/lib/gluon/gluon-version* and */lib/gluon/site-version*.
|
||||||
|
|
||||||
By default, this uses ``git describe`` to generate a version number based
|
By default, this uses ``git describe`` to generate a version number based
|
||||||
|
@ -45,7 +45,7 @@ Some more information on how to use this tool can be found at
|
|||||||
Obtaining Stacktraces
|
Obtaining Stacktraces
|
||||||
.....................
|
.....................
|
||||||
|
|
||||||
On many targets stacktraces can be read from the following
|
On many targets stack traces can be read from the following
|
||||||
location after reboot: ::
|
location after reboot: ::
|
||||||
|
|
||||||
/sys/kernel/debug/crashlog
|
/sys/kernel/debug/crashlog
|
||||||
|
@ -18,6 +18,9 @@ Config Mode by pressing and holding the RESET/WPS/DECT button for about three
|
|||||||
seconds. The device should reboot (all LEDs will turn off briefly) and
|
seconds. The device should reboot (all LEDs will turn off briefly) and
|
||||||
Config Mode will be available.
|
Config Mode will be available.
|
||||||
|
|
||||||
|
If you have access to the console of the node, there is the
|
||||||
|
``gluon-enter-setup-mode`` command, which reboots a node into Config Mode.
|
||||||
|
|
||||||
|
|
||||||
Port Configuration
|
Port Configuration
|
||||||
------------------
|
------------------
|
||||||
|
51
docs/features/dns-cache.rst
Normal file
51
docs/features/dns-cache.rst
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
DNS caching
|
||||||
|
===========
|
||||||
|
|
||||||
|
User experience may be greatly improved when dns is accelerated. Also, it
|
||||||
|
seems like a good idea to keep the number of packages being exchanged
|
||||||
|
between node and gateway as small as possible. In order to do this, a
|
||||||
|
DNS cache may be used on a node. The dnsmasq instance listening on port
|
||||||
|
53 on the node will be reconfigured to answer requests, use a list of
|
||||||
|
upstream servers and a specific cache size if the options listed below are
|
||||||
|
added to site.conf. Upstream servers are the DNS servers which are normally
|
||||||
|
used by the nodes to resolve hostnames (e.g. gateways/supernodes).
|
||||||
|
|
||||||
|
There are the following settings:
|
||||||
|
servers
|
||||||
|
cacheentries
|
||||||
|
|
||||||
|
To use the node's DNS server, both options should be set. The node will cache at
|
||||||
|
most 'cacheentries' many DNS records in RAM. The 'servers' list will be used to
|
||||||
|
resolve the received DNS queries if the request cannot be answered from
|
||||||
|
cache. Gateways should announce the "next node" address via DHCP and RDNSS (if
|
||||||
|
any). Note that not setting 'servers' here will lead to DNS not working: Once
|
||||||
|
the gateways all announce the "next node" address for DNS, there is no way for
|
||||||
|
nodes to automatically determine DNS servers. They have to be baked into the
|
||||||
|
firmware.
|
||||||
|
|
||||||
|
If these settings do not exist, the cache is not initialized and RAM usage will
|
||||||
|
not increase.
|
||||||
|
|
||||||
|
When next_node.name is set, an A record and an AAAA record for the
|
||||||
|
next-node IP address are placed in the dnsmasq configuration. This means that
|
||||||
|
the content of next_node.name may be resolved even without upstream connectivity.
|
||||||
|
It is suggested to use the same name as the DNS server provides:
|
||||||
|
e.g. nextnode.location.community.example.org (This way the name also works if a
|
||||||
|
client uses static DNS Servers). Hint: If next_node.name does not contain a dot
|
||||||
|
some browsers would open the searchpage instead.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
dns = {
|
||||||
|
cacheentries = 5000,
|
||||||
|
servers = { '2001:db8::1', },
|
||||||
|
},
|
||||||
|
|
||||||
|
next_node = {
|
||||||
|
name = { 'nextnode.location.community.example.org', 'nextnode', 'nn' },
|
||||||
|
ip6 = '2001:db8:8::1',
|
||||||
|
ip4 = '198.51.100.1',
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Each cache entry will occupy about 90 bytes of RAM.
|
@ -1,26 +0,0 @@
|
|||||||
DNS forwarder
|
|
||||||
=============
|
|
||||||
|
|
||||||
A Gluon node can be configured to act as a DNS forwarder. Requests for the
|
|
||||||
next-node hostname(s) can be answered locally, without querying the upstream
|
|
||||||
resolver.
|
|
||||||
|
|
||||||
**Note:** While this reduces answer time and allows to use the next-node
|
|
||||||
hostname without upstream connectivity, this feature should not be used for
|
|
||||||
next-node hostnames that are FQDN when the zone uses DNSSEC.
|
|
||||||
|
|
||||||
One or more upstream resolvers can be configured in the *dns.servers* setting.
|
|
||||||
When *next_node.name* is set, A and/or AAAA records for the next-node IP
|
|
||||||
addresses are placed in the dnsmasq configuration.
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
dns = {
|
|
||||||
servers = { '2001:db8::1', },
|
|
||||||
},
|
|
||||||
|
|
||||||
next_node = {
|
|
||||||
name = { 'nextnode.location.community.example.org', 'nextnode', 'nn' },
|
|
||||||
ip6 = '2001:db8:8::1',
|
|
||||||
ip4 = '198.51.100.1',
|
|
||||||
}
|
|
@ -47,7 +47,7 @@ installed. Please note that at least one alfred daemon is required to run as
|
|||||||
|
|
||||||
.. _alfred-json: https://github.com/ffnord/alfred-json
|
.. _alfred-json: https://github.com/ffnord/alfred-json
|
||||||
|
|
||||||
The following datatypes are used:
|
The following data types are used:
|
||||||
|
|
||||||
* `nodeinfo`: 158
|
* `nodeinfo`: 158
|
||||||
* `statistics`: 159
|
* `statistics`: 159
|
||||||
|
@ -77,7 +77,7 @@ should always appear before ``null`` in the configuration when both are enabled.
|
|||||||
fastd v22 or newer is needed for the ``null@l2tp`` method.
|
fastd v22 or newer is needed for the ``null@l2tp`` method.
|
||||||
|
|
||||||
It is often not necessary to enable L2TP offloading on supernodes for
|
It is often not necessary to enable L2TP offloading on supernodes for
|
||||||
performance reasons. Nodes using offloading can communicate with supornodes that
|
performance reasons. Nodes using offloading can communicate with supernodes that
|
||||||
don't use offloading as long as both use the ``null@l2tp`` method.
|
don't use offloading as long as both use the ``null@l2tp`` method.
|
||||||
|
|
||||||
|
|
||||||
@ -102,19 +102,19 @@ However, the important changes to the fastd config on your Supernode are:
|
|||||||
| This tells fastd to use the l2tp kernel module.
|
| This tells fastd to use the l2tp kernel module.
|
||||||
|
|
||||||
- | Set ``persist interface no;``
|
- | Set ``persist interface no;``
|
||||||
| This tells fastd to only keep interfaces arround while the connection is active.
|
| This tells fastd to only keep interfaces around while the connection is active.
|
||||||
|
|
||||||
Note that in ``multitap`` mode, which is required when using L2TP offloading,
|
Note that in ``multitap`` mode, which is required when using L2TP offloading,
|
||||||
fastd will create one interface per peer on the supernode's. This allows
|
fastd will create one interface per peer on the supernode's. This allows
|
||||||
offloading the L2TP forwarding into the kernel space. But this also means added
|
offloading the L2TP forwarding into the kernel space. But this also means added
|
||||||
copmlexity with regards to handling those interfaces.
|
complexity with regards to handling those interfaces.
|
||||||
|
|
||||||
There are two main options on how you can handle this:
|
There are two main options on how you can handle this:
|
||||||
|
|
||||||
- create ``on up`` and ``on down`` hooks
|
- create ``on up`` and ``on down`` hooks
|
||||||
|
|
||||||
- to handle interface setup and destruction
|
- to handle interface setup and destruction
|
||||||
- preferrably using the async keyword, so hooks are not blocking fastd
|
- preferably using the async keyword, so hooks are not blocking fastd
|
||||||
|
|
||||||
- use a daemon like systemd-networkd
|
- use a daemon like systemd-networkd
|
||||||
|
|
||||||
@ -179,7 +179,7 @@ More information about the wgpeerselector and its algorithm can be found
|
|||||||
`here <https://github.com/freifunk-gluon/packages/blob/master/net/wgpeerselector/README.md>`__.
|
`here <https://github.com/freifunk-gluon/packages/blob/master/net/wgpeerselector/README.md>`__.
|
||||||
|
|
||||||
On the gluon node both VXLAN and the wgpeerselector are well integrated and no
|
On the gluon node both VXLAN and the wgpeerselector are well integrated and no
|
||||||
explicit configuation of those tools is necessary, once the general WireGuard
|
explicit configuration of those tools is necessary, once the general WireGuard
|
||||||
support has been configured.
|
support has been configured.
|
||||||
|
|
||||||
Attention must by paid to time synchronization. As WireGuard
|
Attention must by paid to time synchronization. As WireGuard
|
||||||
@ -191,6 +191,16 @@ negative effects. Only when a previously connected node reboots the effect
|
|||||||
comes into play, as the gateway still knows about the old timestamp of the gluon
|
comes into play, as the gateway still knows about the old timestamp of the gluon
|
||||||
node.
|
node.
|
||||||
|
|
||||||
|
gluon-mesh-vpn-key-translate
|
||||||
|
""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
Many communities already possess a collection of active fastd-keys when they
|
||||||
|
plan migrating their community to WireGuard.
|
||||||
|
These public keys known on the server-side can be derived into their WireGuard
|
||||||
|
equivalent using `gluon-mesh-vpn-key-translate <https://github.com/AiyionPrime/gluon-mesh-vpn-key-translate>`__.
|
||||||
|
The routers do the necessary reencoding of the private key seamlessly
|
||||||
|
when updating firmware from fastd to the WireGuard variant.
|
||||||
|
|
||||||
Gateway / Supernode Configuration
|
Gateway / Supernode Configuration
|
||||||
"""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
@ -16,8 +16,8 @@ by the user). This means that it is not possible to enable or disable an existin
|
|||||||
configurations during upgrades.
|
configurations during upgrades.
|
||||||
|
|
||||||
During upgrades the wifi channel of the 2.4GHz and 5GHz radio will be restored to the channel
|
During upgrades the wifi channel of the 2.4GHz and 5GHz radio will be restored to the channel
|
||||||
configured in the site.conf. If you need to preserve a user defined wifi channel during upgrades
|
configured in the site.conf. The channel width will be reset to Gluon's default. If you need to preserve
|
||||||
you can configure this via the uci section ``gluon-core.wireless``::
|
these settings during upgrades you can configure this via the uci section ``gluon-core.wireless``::
|
||||||
|
|
||||||
uci set gluon.wireless.preserve_channels='1'
|
uci set gluon.wireless.preserve_channels='1'
|
||||||
|
|
||||||
|
116
docs/index.rst
116
docs/index.rst
@ -6,80 +6,80 @@ Several Freifunk communities in Germany use Gluon as the foundation of their Fre
|
|||||||
|
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: User Documentation
|
:caption: User Documentation
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
user/getting_started
|
user/getting_started
|
||||||
user/site
|
user/site
|
||||||
user/supported_devices
|
user/supported_devices
|
||||||
user/x86
|
user/x86
|
||||||
user/faq
|
user/faq
|
||||||
user/mtu
|
user/mtu
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Features
|
:caption: Features
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
features/configmode
|
features/configmode
|
||||||
features/autoupdater
|
features/autoupdater
|
||||||
features/wlan-configuration
|
features/wlan-configuration
|
||||||
features/private-wlan
|
features/private-wlan
|
||||||
features/wired-mesh
|
features/wired-mesh
|
||||||
features/dns-forwarder
|
features/dns-cache
|
||||||
features/monitoring
|
features/monitoring
|
||||||
features/multidomain
|
features/multidomain
|
||||||
features/authorized-keys
|
features/authorized-keys
|
||||||
features/roles
|
features/roles
|
||||||
features/vpn
|
features/vpn
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Developer Documentation
|
:caption: Developer Documentation
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
dev/basics
|
dev/basics
|
||||||
dev/hardware
|
dev/hardware
|
||||||
dev/packages
|
dev/packages
|
||||||
dev/upgrade
|
dev/upgrade
|
||||||
dev/uplink
|
dev/uplink
|
||||||
dev/mac_addresses
|
dev/mac_addresses
|
||||||
dev/site_library
|
dev/site_library
|
||||||
dev/build
|
dev/build
|
||||||
dev/debugging
|
dev/debugging
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: gluon-web Reference
|
:caption: gluon-web Reference
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
dev/web/controller
|
dev/web/controller
|
||||||
dev/web/model
|
dev/web/model
|
||||||
dev/web/view
|
dev/web/view
|
||||||
dev/web/i18n
|
dev/web/i18n
|
||||||
dev/web/config-mode
|
dev/web/config-mode
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Packages
|
:caption: Packages
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
package/gluon-client-bridge
|
package/gluon-client-bridge
|
||||||
package/gluon-config-mode-domain-select
|
package/gluon-config-mode-domain-select
|
||||||
package/gluon-ebtables-filter-multicast
|
package/gluon-ebtables-filter-multicast
|
||||||
package/gluon-ebtables-filter-ra-dhcp
|
package/gluon-ebtables-filter-ra-dhcp
|
||||||
package/gluon-ebtables-limit-arp
|
package/gluon-ebtables-limit-arp
|
||||||
package/gluon-ebtables-source-filter
|
package/gluon-ebtables-source-filter
|
||||||
package/gluon-hoodselector
|
package/gluon-hoodselector
|
||||||
package/gluon-logging
|
package/gluon-logging
|
||||||
package/gluon-mesh-batman-adv
|
package/gluon-mesh-batman-adv
|
||||||
package/gluon-mesh-wireless-sae
|
package/gluon-mesh-wireless-sae
|
||||||
package/gluon-radv-filterd
|
package/gluon-radv-filterd
|
||||||
package/gluon-scheduled-domain-switch
|
package/gluon-scheduled-domain-switch
|
||||||
package/gluon-web-admin
|
package/gluon-web-admin
|
||||||
package/gluon-web-logging
|
package/gluon-web-logging
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Releases
|
:caption: Releases
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
releases/index
|
releases/index
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
@ -2,124 +2,128 @@ Release Notes
|
|||||||
=============
|
=============
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2022.1
|
:caption: Gluon 2022.1
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2022.1
|
v2022.1.4
|
||||||
|
v2022.1.3
|
||||||
|
v2022.1.2
|
||||||
|
v2022.1.1
|
||||||
|
v2022.1
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2021.1
|
:caption: Gluon 2021.1
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2021.1.2
|
v2021.1.2
|
||||||
v2021.1.1
|
v2021.1.1
|
||||||
v2021.1
|
v2021.1
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2020.2
|
:caption: Gluon 2020.2
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2020.2.3
|
v2020.2.3
|
||||||
v2020.2.2
|
v2020.2.2
|
||||||
v2020.2.1
|
v2020.2.1
|
||||||
v2020.2
|
v2020.2
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2020.1
|
:caption: Gluon 2020.1
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2020.1.4
|
v2020.1.4
|
||||||
v2020.1.3
|
v2020.1.3
|
||||||
v2020.1.2
|
v2020.1.2
|
||||||
v2020.1.1
|
v2020.1.1
|
||||||
v2020.1
|
v2020.1
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2019.1
|
:caption: Gluon 2019.1
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2019.1.3
|
v2019.1.3
|
||||||
v2019.1.2
|
v2019.1.2
|
||||||
v2019.1.1
|
v2019.1.1
|
||||||
v2019.1
|
v2019.1
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2018.2
|
:caption: Gluon 2018.2
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2018.2.4
|
v2018.2.4
|
||||||
v2018.2.3
|
v2018.2.3
|
||||||
v2018.2.2
|
v2018.2.2
|
||||||
v2018.2.1
|
v2018.2.1
|
||||||
v2018.2
|
v2018.2
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2018.1
|
:caption: Gluon 2018.1
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2018.1.4
|
v2018.1.4
|
||||||
v2018.1.3
|
v2018.1.3
|
||||||
v2018.1.2
|
v2018.1.2
|
||||||
v2018.1.1
|
v2018.1.1
|
||||||
v2018.1
|
v2018.1
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2017.1
|
:caption: Gluon 2017.1
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2017.1.8
|
v2017.1.8
|
||||||
v2017.1.7
|
v2017.1.7
|
||||||
v2017.1.6
|
v2017.1.6
|
||||||
v2017.1.5
|
v2017.1.5
|
||||||
v2017.1.4
|
v2017.1.4
|
||||||
v2017.1.3
|
v2017.1.3
|
||||||
v2017.1.2
|
v2017.1.2
|
||||||
v2017.1.1
|
v2017.1.1
|
||||||
v2017.1
|
v2017.1
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2016.2
|
:caption: Gluon 2016.2
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2016.2.7
|
v2016.2.7
|
||||||
v2016.2.6
|
v2016.2.6
|
||||||
v2016.2.5
|
v2016.2.5
|
||||||
v2016.2.4
|
v2016.2.4
|
||||||
v2016.2.3
|
v2016.2.3
|
||||||
v2016.2.2
|
v2016.2.2
|
||||||
v2016.2.1
|
v2016.2.1
|
||||||
v2016.2
|
v2016.2
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2016.1
|
:caption: Gluon 2016.1
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2016.1.6
|
v2016.1.6
|
||||||
v2016.1.5
|
v2016.1.5
|
||||||
v2016.1.4
|
v2016.1.4
|
||||||
v2016.1.3
|
v2016.1.3
|
||||||
v2016.1.2
|
v2016.1.2
|
||||||
v2016.1.1
|
v2016.1.1
|
||||||
v2016.1
|
v2016.1
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2015.1
|
:caption: Gluon 2015.1
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2015.1.2
|
v2015.1.2
|
||||||
v2015.1.1
|
v2015.1.1
|
||||||
v2015.1
|
v2015.1
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2014.4
|
:caption: Gluon 2014.4
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2014.4
|
v2014.4
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Gluon 2014.3
|
:caption: Gluon 2014.3
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
v2014.3.1
|
v2014.3.1
|
||||||
v2014.3
|
v2014.3
|
||||||
|
|
||||||
|
@ -88,6 +88,8 @@ New features
|
|||||||
* Add support for making nodes a DNS cache for clients
|
* Add support for making nodes a DNS cache for clients
|
||||||
(`#1000 <https://github.com/freifunk-gluon/gluon/pull/1000>`_)
|
(`#1000 <https://github.com/freifunk-gluon/gluon/pull/1000>`_)
|
||||||
|
|
||||||
|
See also: :doc:`../features/dns-cache`
|
||||||
|
|
||||||
* Add L2TP via tunneldigger as an alternative VPN system
|
* Add L2TP via tunneldigger as an alternative VPN system
|
||||||
(`#978 <https://github.com/freifunk-gluon/gluon/pull/978>`_)
|
(`#978 <https://github.com/freifunk-gluon/gluon/pull/978>`_)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ Bugfixes
|
|||||||
As the path to both config mode and status page were changed between versions
|
As the path to both config mode and status page were changed between versions
|
||||||
users could be affected by a redirect to a no more valid URL.
|
users could be affected by a redirect to a no more valid URL.
|
||||||
|
|
||||||
* batman-adv has received two bugfixes, which were `backported <https://github.com/openwrt-routing/packages/commit/7bf62cc8b556b5046f9bbd37687376fe9ea175bb>`_ from v2018.4
|
* batman-adv has received two bugfixes, which were `backported <https://github.com/openwrt/routing/commit/7bf62cc8b556b5046f9bbd37687376fe9ea175bb>`_ from v2018.4
|
||||||
|
|
||||||
Other changes
|
Other changes
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
@ -127,10 +127,10 @@ Renamed targets
|
|||||||
Status Page
|
Status Page
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
||||||
- Gateway nexthop information has been added to the statuspage when batman-adv
|
- Gateway nexthop information has been added to the status page when batman-adv
|
||||||
is used. This includes its MAC address and prettyname as well as the interface
|
is used. This includes its MAC address and prettyname as well as the interface
|
||||||
name towards the selected gateway.
|
name towards the selected gateway.
|
||||||
- The site name has been added to the statuspage. If the node is in a multidomain
|
- The site name has been added to the status page. If the node is in a multidomain
|
||||||
setup it will also show the domain name.
|
setup it will also show the domain name.
|
||||||
|
|
||||||
DECT button to enter config mode
|
DECT button to enter config mode
|
||||||
|
@ -7,7 +7,7 @@ Bugfixes
|
|||||||
- LEDs on the ASUS RT-AC51 are now fully functional.
|
- LEDs on the ASUS RT-AC51 are now fully functional.
|
||||||
|
|
||||||
- Netgear EX6150v1 randomly booting into failsafe mode has been fixed.
|
- Netgear EX6150v1 randomly booting into failsafe mode has been fixed.
|
||||||
This happened dependant on the state of the mode setting switch.
|
This happened dependent on the state of the mode setting switch.
|
||||||
|
|
||||||
- Dnsmasq has been patched against multiple security issues in its DNS response validation.
|
- Dnsmasq has been patched against multiple security issues in its DNS response validation.
|
||||||
See the OpenWrt advisory at https://openwrt.org/advisory/2021-01-19-1
|
See the OpenWrt advisory at https://openwrt.org/advisory/2021-01-19-1
|
||||||
|
@ -30,11 +30,11 @@ ramips-mt76x8
|
|||||||
Bugfixes
|
Bugfixes
|
||||||
--------
|
--------
|
||||||
|
|
||||||
- Missing bandwith limit settings resulted in a respondd crash for v2021.1.
|
- Missing bandwidth limit settings resulted in a respondd crash for v2021.1.
|
||||||
|
|
||||||
- The Tunneldigger VPN provider was not registered with the Gluon VPN backend, resulting in broken Tunneldigger configurations.
|
- The Tunneldigger VPN provider was not registered with the Gluon VPN backend, resulting in broken Tunneldigger configurations.
|
||||||
|
|
||||||
- Disabling Radio interfaces in v2021.1 could lead to nullpointer dereferences in the respondd airtime module, as the survey returns no data in this case.
|
- Disabling Radio interfaces in v2021.1 could lead to null pointer dereferences in the respondd airtime module, as the survey returns no data in this case.
|
||||||
|
|
||||||
|
|
||||||
Known issues
|
Known issues
|
||||||
|
85
docs/releases/v2022.1.1.rst
Normal file
85
docs/releases/v2022.1.1.rst
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
Gluon 2022.1.1
|
||||||
|
==============
|
||||||
|
|
||||||
|
Important notes
|
||||||
|
---------------
|
||||||
|
|
||||||
|
This release mitigates multiple flaws in the Linux wireless stack fixing RCE and DoS vulnerabilities.
|
||||||
|
|
||||||
|
|
||||||
|
Added hardware support
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
ipq40xx-generic
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- GL.iNet
|
||||||
|
|
||||||
|
- GL-AP1300
|
||||||
|
|
||||||
|
mpc85xx-p1010
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- TP-Link
|
||||||
|
|
||||||
|
- TL-WDR4900 (v1)
|
||||||
|
|
||||||
|
ramips-mt7621
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- ZyXEL
|
||||||
|
|
||||||
|
- NWA50AX
|
||||||
|
|
||||||
|
rockchip-armv8
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- FriendlyElec
|
||||||
|
|
||||||
|
- NanoPi R4S (4GB LPDDR4)
|
||||||
|
|
||||||
|
Bugfixes
|
||||||
|
--------
|
||||||
|
|
||||||
|
* Multiple mitigations for (`critical vulnerabilities <https://seclists.org/oss-sec/2022/q4/20>`_) in the Linux kernel WLAN stack. This only concerns Gluon v2022.1, older Gluon versions are unaffected.
|
||||||
|
|
||||||
|
* CVE-2022-41674
|
||||||
|
* CVE-2022-42719
|
||||||
|
* CVE-2022-42720
|
||||||
|
* CVE-2022-42721
|
||||||
|
* CVE-2022-42722
|
||||||
|
* Fixes `security issues in WolfSSL <https://openwrt.org/releases/22.03/notes-22.03.1#security_fixes>`_. People who have installed additional, non-Gluon packages which rely on WolfSSL's TLS 1.3 implementation might be affected. Firmwares using either gluon-mesh-wireless-sae or gluon-wireless-encryption-wpa3 are unaffected by these issues, since only WPA-Enterprise relies on the affected TLS functionality.
|
||||||
|
|
||||||
|
* CVE-2022-38152
|
||||||
|
* CVE-2022-39173
|
||||||
|
|
||||||
|
* Fixes the update path for GL-AR300M and NanoStation Loco M2/M5 (XW) devices.
|
||||||
|
|
||||||
|
Known issues
|
||||||
|
------------
|
||||||
|
|
||||||
|
* A workaround for Android devices not waking up to their MLD subscriptions was removed,
|
||||||
|
potentially breaking IPv6 connectivity for these devices after extended sleep periods.
|
||||||
|
(`#2672 <https://github.com/freifunk-gluon/gluon/issues/2672>`_)
|
||||||
|
|
||||||
|
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||||
|
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||||
|
|
||||||
|
* The integration of the BATMAN_V routing algorithm is incomplete.
|
||||||
|
|
||||||
|
- Mesh neighbors don't appear on the status page. (`#1726 <https://github.com/freifunk-gluon/gluon/issues/1726>`_)
|
||||||
|
Many tools have the BATMAN_IV metric hardcoded, these need to be updated to account for the new throughput
|
||||||
|
metric.
|
||||||
|
- Throughput values are not correctly acquired for different interface types.
|
||||||
|
(`#1728 <https://github.com/freifunk-gluon/gluon/issues/1728>`_)
|
||||||
|
This affects virtual interface types like bridges and VXLAN.
|
||||||
|
|
||||||
|
* Default TX power on many Ubiquiti devices is too high, correct offsets are unknown
|
||||||
|
(`#94 <https://github.com/freifunk-gluon/gluon/issues/94>`_)
|
||||||
|
|
||||||
|
Reducing the TX power in the Advanced Settings is recommended.
|
||||||
|
|
||||||
|
* In configurations without VXLAN, the MAC address of the WAN interface is modified even when Mesh-on-WAN is disabled
|
||||||
|
(`#496 <https://github.com/freifunk-gluon/gluon/issues/496>`_)
|
||||||
|
|
||||||
|
This may lead to issues in environments where a fixed MAC address is expected (like VMware when promiscuous mode is disallowed).
|
37
docs/releases/v2022.1.2.rst
Normal file
37
docs/releases/v2022.1.2.rst
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
Gluon 2022.1.2
|
||||||
|
==============
|
||||||
|
|
||||||
|
Bugfixes
|
||||||
|
--------
|
||||||
|
|
||||||
|
* Various build-errors which sporadically occur when building with a large thread-count have been fixed
|
||||||
|
|
||||||
|
* Android devices do not lose their IPv6 connectivity after extended idle-time
|
||||||
|
|
||||||
|
* The 802.11s mesh network is now using 802.11ax HE-modes when supported by hardware
|
||||||
|
|
||||||
|
|
||||||
|
Known issues
|
||||||
|
------------
|
||||||
|
|
||||||
|
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||||
|
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||||
|
|
||||||
|
* The integration of the BATMAN_V routing algorithm is incomplete.
|
||||||
|
|
||||||
|
- Mesh neighbors don't appear on the status page. (`#1726 <https://github.com/freifunk-gluon/gluon/issues/1726>`_)
|
||||||
|
Many tools have the BATMAN_IV metric hardcoded, these need to be updated to account for the new throughput
|
||||||
|
metric.
|
||||||
|
- Throughput values are not correctly acquired for different interface types.
|
||||||
|
(`#1728 <https://github.com/freifunk-gluon/gluon/issues/1728>`_)
|
||||||
|
This affects virtual interface types like bridges and VXLAN.
|
||||||
|
|
||||||
|
* Default TX power on many Ubiquiti devices is too high, correct offsets are unknown
|
||||||
|
(`#94 <https://github.com/freifunk-gluon/gluon/issues/94>`_)
|
||||||
|
|
||||||
|
Reducing the TX power in the Advanced Settings is recommended.
|
||||||
|
|
||||||
|
* In configurations without VXLAN, the MAC address of the WAN interface is modified even when Mesh-on-WAN is disabled
|
||||||
|
(`#496 <https://github.com/freifunk-gluon/gluon/issues/496>`_)
|
||||||
|
|
||||||
|
This may lead to issues in environments where a fixed MAC address is expected (like VMware when promiscuous mode is disallowed).
|
40
docs/releases/v2022.1.3.rst
Normal file
40
docs/releases/v2022.1.3.rst
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
Gluon 2022.1.3
|
||||||
|
==============
|
||||||
|
|
||||||
|
Bugfixes
|
||||||
|
--------
|
||||||
|
|
||||||
|
* Ipq40xx Wave2 devices temporarily use non-ct firmware again to work around 802.11s unicast package loss in ath10k-ct
|
||||||
|
(`#2692 <https://github.com/freifunk-gluon/gluon/issues/2692>`_)
|
||||||
|
|
||||||
|
* Modify kernel builds slightly to work around a boot hang on various devices based on the QCA9563 SoC - especially the Unifi AC-* devices
|
||||||
|
(`#2784 <https://github.com/freifunk-gluon/gluon/issues/2784>`_)
|
||||||
|
|
||||||
|
* Work around an issue with wifi setup timing by waiting a bit while device initialisation is ongoing
|
||||||
|
(`#2779 <https://github.com/freifunk-gluon/gluon/issues/2779>`_)
|
||||||
|
|
||||||
|
|
||||||
|
Known issues
|
||||||
|
------------
|
||||||
|
|
||||||
|
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||||
|
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||||
|
|
||||||
|
* The integration of the BATMAN_V routing algorithm is incomplete.
|
||||||
|
|
||||||
|
- Mesh neighbors don't appear on the status page. (`#1726 <https://github.com/freifunk-gluon/gluon/issues/1726>`_)
|
||||||
|
Many tools have the BATMAN_IV metric hardcoded, these need to be updated to account for the new throughput
|
||||||
|
metric.
|
||||||
|
- Throughput values are not correctly acquired for different interface types.
|
||||||
|
(`#1728 <https://github.com/freifunk-gluon/gluon/issues/1728>`_)
|
||||||
|
This affects virtual interface types like bridges and VXLAN.
|
||||||
|
|
||||||
|
* Default TX power on many Ubiquiti devices is too high, correct offsets are unknown
|
||||||
|
(`#94 <https://github.com/freifunk-gluon/gluon/issues/94>`_)
|
||||||
|
|
||||||
|
Reducing the TX power in the Advanced Settings is recommended.
|
||||||
|
|
||||||
|
* In configurations without VXLAN, the MAC address of the WAN interface is modified even when Mesh-on-WAN is disabled
|
||||||
|
(`#496 <https://github.com/freifunk-gluon/gluon/issues/496>`_)
|
||||||
|
|
||||||
|
This may lead to issues in environments where a fixed MAC address is expected (like VMware when promiscuous mode is disallowed).
|
136
docs/releases/v2022.1.4.rst
Normal file
136
docs/releases/v2022.1.4.rst
Normal file
@ -0,0 +1,136 @@
|
|||||||
|
Gluon 2022.1.4
|
||||||
|
==============
|
||||||
|
|
||||||
|
Added hardware support
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
ath79-generic
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- LibreRouter
|
||||||
|
|
||||||
|
- LibreRouter (v1)
|
||||||
|
|
||||||
|
- Teltonika
|
||||||
|
|
||||||
|
- RUT230 (v1)
|
||||||
|
|
||||||
|
|
||||||
|
ath79-nand
|
||||||
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
- Aerohive
|
||||||
|
|
||||||
|
- HiveAP 121
|
||||||
|
|
||||||
|
- NETGEAR
|
||||||
|
|
||||||
|
- WNDR4300 (v1)
|
||||||
|
|
||||||
|
|
||||||
|
lantiq-xrx200
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- Arcadyan
|
||||||
|
|
||||||
|
- o2 Box 6431
|
||||||
|
|
||||||
|
|
||||||
|
ramips-mt7621
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- Cudy
|
||||||
|
|
||||||
|
- X6 (v1, v2)
|
||||||
|
|
||||||
|
- D-Link
|
||||||
|
|
||||||
|
- DAP-X1860 (A1)
|
||||||
|
|
||||||
|
- GL.iNet
|
||||||
|
|
||||||
|
- GL-MT1300
|
||||||
|
|
||||||
|
- Mercusys
|
||||||
|
|
||||||
|
- MR70X (v1)
|
||||||
|
|
||||||
|
- Xiaomi
|
||||||
|
|
||||||
|
- Mi Router 3G
|
||||||
|
|
||||||
|
|
||||||
|
ramips-mt76x8
|
||||||
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- TP-Link
|
||||||
|
|
||||||
|
- RE200 (v3)
|
||||||
|
|
||||||
|
|
||||||
|
realtek-rtl838x
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- D-Link
|
||||||
|
|
||||||
|
- DGS-1210-10P
|
||||||
|
|
||||||
|
|
||||||
|
ipq40xx-generic
|
||||||
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- AVM
|
||||||
|
|
||||||
|
- FRITZBox 7520
|
||||||
|
|
||||||
|
|
||||||
|
ipq40xx-mikrotik
|
||||||
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- Mikrotik
|
||||||
|
|
||||||
|
- hAP ac2
|
||||||
|
|
||||||
|
|
||||||
|
Bugfixes
|
||||||
|
--------
|
||||||
|
|
||||||
|
* Enterasys WS-AP3705i now uses the correct image-name for use with the autoupdater
|
||||||
|
(`#2819 <https://github.com/freifunk-gluon/gluon/issues/2819>`_)
|
||||||
|
|
||||||
|
* Reduce memory Usage for ath10k on ZyXEL WRE6606 devices
|
||||||
|
(`#2842 <https://github.com/freifunk-gluon/gluon/issues/2842>`_)
|
||||||
|
|
||||||
|
* Replace the Workaround for failed boots on ath79 with a proper fix.
|
||||||
|
(`#2784 <https://github.com/freifunk-gluon/gluon/issues/2784#issuecomment-1452126501>`_)
|
||||||
|
|
||||||
|
* AVM FRITZ!Box 7360 v2 flashed with the incorrect image for v1 will automatically update to the correct image.
|
||||||
|
|
||||||
|
* Revert OOM inducing switch of ath79 Wave2 firmware back to -ct
|
||||||
|
(`#2879 <https://github.com/freifunk-gluon/gluon/pull/2879>`_)
|
||||||
|
|
||||||
|
Known issues
|
||||||
|
------------
|
||||||
|
|
||||||
|
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||||
|
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||||
|
|
||||||
|
* The integration of the BATMAN_V routing algorithm is incomplete.
|
||||||
|
|
||||||
|
- Mesh neighbors don't appear on the status page. (`#1726 <https://github.com/freifunk-gluon/gluon/issues/1726>`_)
|
||||||
|
Many tools have the BATMAN_IV metric hardcoded, these need to be updated to account for the new throughput
|
||||||
|
metric.
|
||||||
|
- Throughput values are not correctly acquired for different interface types.
|
||||||
|
(`#1728 <https://github.com/freifunk-gluon/gluon/issues/1728>`_)
|
||||||
|
This affects virtual interface types like bridges and VXLAN.
|
||||||
|
|
||||||
|
* Default TX power on many Ubiquiti devices is too high, correct offsets are unknown
|
||||||
|
(`#94 <https://github.com/freifunk-gluon/gluon/issues/94>`_)
|
||||||
|
|
||||||
|
Reducing the TX power in the Advanced Settings is recommended.
|
||||||
|
|
||||||
|
* In configurations without VXLAN, the MAC address of the WAN interface is modified even when Mesh-on-WAN is disabled
|
||||||
|
(`#496 <https://github.com/freifunk-gluon/gluon/issues/496>`_)
|
||||||
|
|
||||||
|
This may lead to issues in environments where a fixed MAC address is expected (like VMware when promiscuous mode is disallowed).
|
||||||
|
|
@ -13,146 +13,146 @@ Added hardware support
|
|||||||
ath79-generic
|
ath79-generic
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
- D-Link
|
- D-Link
|
||||||
|
|
||||||
- DAP-2660 A1
|
- DAP-2660 A1
|
||||||
|
|
||||||
- Enterasys
|
- Enterasys
|
||||||
|
|
||||||
- WS-AP3705i
|
- WS-AP3705i
|
||||||
|
|
||||||
- Siemens
|
- Siemens
|
||||||
|
|
||||||
- WS-AP3610
|
- WS-AP3610
|
||||||
|
|
||||||
- TP-Link
|
- TP-Link
|
||||||
|
|
||||||
- Archer A7 v5
|
- Archer A7 v5
|
||||||
- CPE510 v2
|
- CPE510 v2
|
||||||
- CPE510 v3
|
- CPE510 v3
|
||||||
- CPE710 v1
|
- CPE710 v1
|
||||||
- EAP225-Outdoor v1
|
- EAP225-Outdoor v1
|
||||||
- WBS210 v2
|
- WBS210 v2
|
||||||
|
|
||||||
ath79-mikrotik
|
ath79-mikrotik
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Mikrotik
|
- Mikrotik
|
||||||
|
|
||||||
- RB951Ui-2nD
|
- RB951Ui-2nD
|
||||||
|
|
||||||
ipq40xx-generic
|
ipq40xx-generic
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Aruba Networks
|
- Aruba Networks
|
||||||
|
|
||||||
- AP-303H
|
- AP-303H
|
||||||
- AP-365
|
- AP-365
|
||||||
- InstantOn AP11D
|
- InstantOn AP11D
|
||||||
- InstantOn AP17
|
- InstantOn AP17
|
||||||
|
|
||||||
ipq40xx-mikrotik
|
ipq40xx-mikrotik
|
||||||
~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Mikrotik
|
- Mikrotik
|
||||||
|
|
||||||
- SXTsq-5-AC
|
- SXTsq-5-AC
|
||||||
|
|
||||||
ramips-mt7620
|
ramips-mt7620
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Xiaomi
|
- Xiaomi
|
||||||
|
|
||||||
- Mi Router 3G (v2)
|
- Mi Router 3G (v2)
|
||||||
|
|
||||||
ramips-mt7621
|
ramips-mt7621
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Cudy
|
- Cudy
|
||||||
|
|
||||||
- WR2100
|
- WR2100
|
||||||
|
|
||||||
- Netgear
|
- Netgear
|
||||||
|
|
||||||
- R6260
|
- R6260
|
||||||
- WAC104
|
- WAC104
|
||||||
- WAX202
|
- WAX202
|
||||||
|
|
||||||
- TP-Link
|
- TP-Link
|
||||||
|
|
||||||
- RE500
|
- RE500
|
||||||
- RE650 v1
|
- RE650 v1
|
||||||
|
|
||||||
- Ubiquiti
|
- Ubiquiti
|
||||||
|
|
||||||
- UniFi 6 Lite
|
- UniFi 6 Lite
|
||||||
|
|
||||||
- Xiaomi
|
- Xiaomi
|
||||||
|
|
||||||
- Mi Router 4A (Gigabit Edition)
|
- Mi Router 4A (Gigabit Edition)
|
||||||
|
|
||||||
ramips-mt7622
|
ramips-mt7622
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Linksys
|
- Linksys
|
||||||
|
|
||||||
- E8450
|
- E8450
|
||||||
|
|
||||||
- Xiaomi
|
- Xiaomi
|
||||||
|
|
||||||
- AX3200
|
- AX3200
|
||||||
|
|
||||||
- Ubiquiti
|
- Ubiquiti
|
||||||
|
|
||||||
- UniFi 6 LR
|
- UniFi 6 LR
|
||||||
|
|
||||||
ramips-mt76x8
|
ramips-mt76x8
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
- GL.iNet
|
- GL.iNet
|
||||||
|
|
||||||
- microuter-N300
|
- microuter-N300
|
||||||
|
|
||||||
- Netgear
|
- Netgear
|
||||||
|
|
||||||
- R6020
|
- R6020
|
||||||
|
|
||||||
- RAVPower
|
- RAVPower
|
||||||
|
|
||||||
- RP-WD009
|
- RP-WD009
|
||||||
|
|
||||||
- TP-Link
|
- TP-Link
|
||||||
|
|
||||||
- Archer C20 v4
|
- Archer C20 v4
|
||||||
- Archer C20 v5
|
- Archer C20 v5
|
||||||
- RE200 v2
|
- RE200 v2
|
||||||
- RE305 v1
|
- RE305 v1
|
||||||
|
|
||||||
- Xiaomi
|
- Xiaomi
|
||||||
|
|
||||||
- Mi Router 4C
|
- Mi Router 4C
|
||||||
- Mi Router 4A (100M Edition)
|
- Mi Router 4A (100M Edition)
|
||||||
|
|
||||||
rockchip-armv8
|
rockchip-armv8
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
- FriendlyElec
|
- FriendlyElec
|
||||||
|
|
||||||
- NanoPi R2S
|
- NanoPi R2S
|
||||||
|
|
||||||
mpc85xx-p1010
|
mpc85xx-p1010
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Sophos
|
- Sophos
|
||||||
|
|
||||||
- RED 15w rev. 1
|
- RED 15w rev. 1
|
||||||
|
|
||||||
mpc85xx-p1020
|
mpc85xx-p1020
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
- Extreme Networks
|
- Extreme Networks
|
||||||
|
|
||||||
- WS-AP3825i
|
- WS-AP3825i
|
||||||
|
|
||||||
Removed Devices
|
Removed Devices
|
||||||
---------------
|
---------------
|
||||||
@ -160,63 +160,63 @@ Removed Devices
|
|||||||
This list contains devices which do not have enough memory or flash to
|
This list contains devices which do not have enough memory or flash to
|
||||||
be operated with this Gluon release.
|
be operated with this Gluon release.
|
||||||
|
|
||||||
- D-Link
|
- D-Link
|
||||||
|
|
||||||
- DIR-615 (C1, D1, D2, D3, D4, H1)
|
- DIR-615 (C1, D1, D2, D3, D4, H1)
|
||||||
|
|
||||||
- Linksys
|
- Linksys
|
||||||
|
|
||||||
- WRT160NL
|
- WRT160NL
|
||||||
|
|
||||||
- TP-Link
|
- TP-Link
|
||||||
|
|
||||||
- TL-MR13U (v1)
|
- TL-MR13U (v1)
|
||||||
- TL-MR3020 (v1)
|
- TL-MR3020 (v1)
|
||||||
- TL-MR3040 (v1, v2)
|
- TL-MR3040 (v1, v2)
|
||||||
- TL-MR3220 (v1, v2)
|
- TL-MR3220 (v1, v2)
|
||||||
- TL-MR3420 (v1, v2)
|
- TL-MR3420 (v1, v2)
|
||||||
- TL-WA701N/ND (v1, v2)
|
- TL-WA701N/ND (v1, v2)
|
||||||
- TL-WA730RE (v1)
|
- TL-WA730RE (v1)
|
||||||
- TL-WA750RE (v1)
|
- TL-WA750RE (v1)
|
||||||
- TL-WA801N/ND (v1, v2, v3)
|
- TL-WA801N/ND (v1, v2, v3)
|
||||||
- TL-WA830RE (v1, v2)
|
- TL-WA830RE (v1, v2)
|
||||||
- TL-WA850RE (v1)
|
- TL-WA850RE (v1)
|
||||||
- TL-WA860RE (v1)
|
- TL-WA860RE (v1)
|
||||||
- TL-WA901N/ND (v1, v2, v3, v4, v5)
|
- TL-WA901N/ND (v1, v2, v3, v4, v5)
|
||||||
- TL-WA7210N (v2)
|
- TL-WA7210N (v2)
|
||||||
- TL-WA7510N (v1)
|
- TL-WA7510N (v1)
|
||||||
- TL-WR703N (v1)
|
- TL-WR703N (v1)
|
||||||
- TL-WR710N (v1, v2)
|
- TL-WR710N (v1, v2)
|
||||||
- TL-WR740N (v1, v3, v4, v5)
|
- TL-WR740N (v1, v3, v4, v5)
|
||||||
- TL-WR741N/ND (v1, v2, v4, v5)
|
- TL-WR741N/ND (v1, v2, v4, v5)
|
||||||
- TL-WR743N/ND (v1, v2)
|
- TL-WR743N/ND (v1, v2)
|
||||||
- TL-WR840N (v2)
|
- TL-WR840N (v2)
|
||||||
- TL-WR841N/ND (v3, v5, v7, v8, v9, v10, v11, v12)
|
- TL-WR841N/ND (v3, v5, v7, v8, v9, v10, v11, v12)
|
||||||
- TL-WR841N/ND (v1, v2)
|
- TL-WR841N/ND (v1, v2)
|
||||||
- TL-WR843N/ND (v1)
|
- TL-WR843N/ND (v1)
|
||||||
- TL-WR940N (v1, v2, v3, v4, v5, v6)
|
- TL-WR940N (v1, v2, v3, v4, v5, v6)
|
||||||
- TL-WR941ND (v2, v3, v4, v5, v6)
|
- TL-WR941ND (v2, v3, v4, v5, v6)
|
||||||
- TL-WR1043N/ND (v1)
|
- TL-WR1043N/ND (v1)
|
||||||
- WDR4900
|
- WDR4900
|
||||||
|
|
||||||
- Ubiquiti
|
- Ubiquiti
|
||||||
|
|
||||||
- AirGateway
|
- AirGateway
|
||||||
- AirGateway Pro
|
- AirGateway Pro
|
||||||
- AirRouter
|
- AirRouter
|
||||||
- Bullet
|
- Bullet
|
||||||
- LS-SR71
|
- LS-SR71
|
||||||
- Nanostation XM
|
- Nanostation XM
|
||||||
- Nanostation Loco XM
|
- Nanostation Loco XM
|
||||||
- Picostation
|
- Picostation
|
||||||
|
|
||||||
- Unknown
|
- Unknown
|
||||||
|
|
||||||
- A5-V11
|
- A5-V11
|
||||||
|
|
||||||
- VoCore
|
- VoCore
|
||||||
|
|
||||||
- VoCore (8M, 16M)
|
- VoCore (8M, 16M)
|
||||||
|
|
||||||
Atheros target migration
|
Atheros target migration
|
||||||
------------------------
|
------------------------
|
||||||
@ -235,50 +235,50 @@ Missing devices
|
|||||||
The following devices have not yet been integrated into Gluons ath79
|
The following devices have not yet been integrated into Gluons ath79
|
||||||
targets.
|
targets.
|
||||||
|
|
||||||
- 8Devices
|
- 8Devices
|
||||||
|
|
||||||
- Carambola 2
|
- Carambola 2
|
||||||
|
|
||||||
- Aerohive
|
- Aerohive
|
||||||
|
|
||||||
- HiveAP 121
|
- HiveAP 121
|
||||||
|
|
||||||
- Allnet
|
- Allnet
|
||||||
|
|
||||||
- ALL0315
|
- ALL0315
|
||||||
|
|
||||||
- Buffalo
|
- Buffalo
|
||||||
|
|
||||||
- WZR-HP-G300NH2
|
- WZR-HP-G300NH2
|
||||||
- WZR-HP-G450H
|
- WZR-HP-G450H
|
||||||
|
|
||||||
- GL.iNet
|
- GL.iNet
|
||||||
|
|
||||||
- 6408A v1
|
- 6408A v1
|
||||||
|
|
||||||
- NETGEAR
|
- NETGEAR
|
||||||
|
|
||||||
- WNDR4300
|
- WNDR4300
|
||||||
- WNDRMAC
|
- WNDRMAC
|
||||||
- WNDRMAC v2
|
- WNDRMAC v2
|
||||||
|
|
||||||
- TP-Link
|
- TP-Link
|
||||||
|
|
||||||
- WR2543
|
- WR2543
|
||||||
|
|
||||||
- Ubiquiti
|
- Ubiquiti
|
||||||
|
|
||||||
- Rocket
|
- Rocket
|
||||||
|
|
||||||
- WD
|
- WD
|
||||||
|
|
||||||
- MyNet N600
|
- MyNet N600
|
||||||
- MyNet N750
|
- MyNet N750
|
||||||
|
|
||||||
- ZyXEL
|
- ZyXEL
|
||||||
|
|
||||||
- NB6616
|
- NB6616
|
||||||
- NB6716
|
- NB6716
|
||||||
|
|
||||||
Features
|
Features
|
||||||
--------
|
--------
|
||||||
@ -364,34 +364,35 @@ interfaces. Details can be found in the
|
|||||||
Minor changes
|
Minor changes
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
- The ``brcm2708-bcm2708`` ``brcm2708-bcm2709`` ``brcm2708-bcm2710``
|
- The ``brcm2708-bcm2708`` ``brcm2708-bcm2709`` ``brcm2708-bcm2710``
|
||||||
targets were renamed to ``bcm27xx-bcm2708`` ``bcm27xx-bcm2709`` and
|
targets were renamed to ``bcm27xx-bcm2708`` ``bcm27xx-bcm2709`` and
|
||||||
``bcm27xx-bcm2710``
|
``bcm27xx-bcm2710``
|
||||||
- The GL.iNet GL-AR750S was moved to the ``ath79-nand`` subtarget
|
- The GL.iNet GL-AR750S was moved to the ``ath79-nand`` subtarget
|
||||||
- Gluon now ships the ath10k-ct firmware derivation for
|
- Gluon now ships the ath10k-ct firmware derivation for
|
||||||
QCA9886 / QCA9888 / QCA9896 / QCA9898 / QCA9984 /
|
QCA9886 / QCA9888 / QCA9896 / QCA9898 / QCA9984 /
|
||||||
QCA9994 / IPQ4018 / IPQ4028 / IPQ4019 / IPQ4029
|
QCA9994 / IPQ4018 / IPQ4028 / IPQ4019 / IPQ4029
|
||||||
radios (`#2541 <https://github.com/freifunk-gluon/gluon/pull/2541>`__)
|
radios (`#2541 <https://github.com/freifunk-gluon/gluon/pull/2541>`__)
|
||||||
- WolfSSL instead of OpenSSL is now used when built with WPA3 support
|
- WolfSSL instead of OpenSSL is now used when built with WPA3 support
|
||||||
- The option to configure the wireless-channel independent from the
|
- The option to configure the wireless-channel independent from the
|
||||||
site-selected channel was moved from
|
site-selected channel was moved from
|
||||||
``gluon-core.wireless.preserve_channels`` to
|
``gluon-core.wireless.preserve_channels`` to
|
||||||
``gluon.wireless.preserve_channels``
|
``gluon.wireless.preserve_channels``
|
||||||
- ``gluon-info`` is a new command that provides information about the
|
- ``gluon-info`` is a new command that provides information about the
|
||||||
current node
|
current node
|
||||||
- ``GLUON_DEPRECATED`` is now set to 0 by default
|
- ``GLUON_DEPRECATED`` is now set to 0 by default
|
||||||
- To reboot a running gluon-node into setup-mode, Gluon now offers the
|
- To reboot a running gluon-node into setup-mode, Gluon now offers the
|
||||||
``gluon-enter-setup-mode`` command
|
``gluon-enter-setup-mode`` command
|
||||||
- Devices without WLAN do not show the private-wifi configuration
|
- Devices without WLAN do not show the private-wifi configuration
|
||||||
anymore
|
anymore
|
||||||
- The Autoupdater now uses the site default branch in case it is
|
- The Autoupdater now uses the site default branch in case it is
|
||||||
configured to use a non-existent / invalid branch
|
configured to use a non-existent / invalid branch
|
||||||
|
|
||||||
Known issues
|
Known issues
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* A workaround for Android devices not waking up to their MLD subscriptions was removed,
|
* A workaround for Android devices not waking up to their MLD subscriptions was removed,
|
||||||
potentially breaking IPv6 connectivity for these devices after extended sleep periods
|
potentially breaking IPv6 connectivity for these devices after extended sleep periods.
|
||||||
|
(`#2672 <https://github.com/freifunk-gluon/gluon/issues/2672>`_)
|
||||||
|
|
||||||
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||||
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||||
|
@ -1 +1 @@
|
|||||||
sphinx-rtd-theme==1.0.0
|
sphinx-rtd-theme==1.2.0
|
||||||
|
@ -58,7 +58,7 @@ msgid "gluon-config-mode:novpn"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"<p><strong>Du hast ausgewählt die Internetverbindung (Mesh-VPN) nicht zu "
|
"<p><strong>Du hast ausgewählt die Internetverbindung (Mesh-VPN) nicht zu "
|
||||||
"nutzen</strong>. Dein Knoten kann also nur dann eine Verbindung zum "
|
"nutzen</strong>. Dein Knoten kann also nur dann eine Verbindung zum "
|
||||||
"Freifunk-Netz aufbauen, wenn andere Freifunk-Knoten in WLAN-Reichweite sind."
|
"Freifunk-Netz aufbauen, wenn andere Freifunk-Knoten in WLAN-Reichweite sind.</p>"
|
||||||
"<p>Bitte schicke uns eine E-Mail mit dem Namen deines Knotens "
|
"<p>Bitte schicke uns eine E-Mail mit dem Namen deines Knotens "
|
||||||
"(<em><%= pcdata(hostname) %></em>) und ein paar Informationen an <a href="
|
"(<em><%= pcdata(hostname) %></em>) und ein paar Informationen an <a href="
|
||||||
"\"mailto:freifunk-keys@lists.in-kiel.de?"
|
"\"mailto:freifunk-keys@lists.in-kiel.de?"
|
||||||
|
@ -9,14 +9,13 @@
|
|||||||
#GLUON_SITE_FEEDS='my_own_packages'
|
#GLUON_SITE_FEEDS='my_own_packages'
|
||||||
|
|
||||||
## PACKAGES_$feedname_REPO
|
## PACKAGES_$feedname_REPO
|
||||||
# the git repository from where to clone the package feed
|
# the git repository from where to clone the package feed
|
||||||
#PACKAGES_MY_OWN_PACKAGES_REPO=https://github.com/.../my-own-packages.git
|
#PACKAGES_MY_OWN_PACKAGES_REPO=https://github.com/.../my-own-packages.git
|
||||||
|
|
||||||
|
|
||||||
## PACKAGES_$feedname_COMMIT
|
## PACKAGES_$feedname_COMMIT
|
||||||
# the version/commit of the git repository to clone
|
# the version/commit of the git repository to clone
|
||||||
#PACKAGES_MY_OWN_PACKAGES_COMMIT=123456789aabcda1a69b04278e4d38f2a3f57e49
|
#PACKAGES_MY_OWN_PACKAGES_COMMIT=123456789aabcda1a69b04278e4d38f2a3f57e49
|
||||||
|
|
||||||
## PACKAGES_$feedname_BRANCH
|
## PACKAGES_$feedname_BRANCH
|
||||||
# the branch to check out
|
# the branch to check out
|
||||||
#PACKAGES_MY_OWN_PACKAGES_BRANCH=my_branch
|
#PACKAGES_MY_OWN_PACKAGES_BRANCH=my_branch
|
||||||
|
@ -25,18 +25,20 @@ An example configuration can be found in the Gluon repository at *docs/site-exam
|
|||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
To build Gluon, several packages need to be installed on the system. On a
|
To build Gluon, several packages need to be installed on the system. On a
|
||||||
freshly installed Debian Stretch system the following packages are required:
|
freshly installed Debian Bullseye system the following packages are required:
|
||||||
|
|
||||||
* `git` (to get Gluon and other dependencies)
|
* `git` (to get Gluon and other dependencies)
|
||||||
* `subversion`
|
|
||||||
* `python3`
|
* `python3`
|
||||||
* `build-essential`
|
* `build-essential`
|
||||||
|
* `ecdsautils` (to sign firmware, see `contrib/sign.sh`)
|
||||||
* `gawk`
|
* `gawk`
|
||||||
* `unzip`
|
* `unzip`
|
||||||
* `libncurses-dev` (actually `libncurses5-dev`)
|
* `libncurses-dev` (actually `libncurses5-dev`)
|
||||||
* `libz-dev` (actually `zlib1g-dev`)
|
* `libz-dev` (actually `zlib1g-dev`)
|
||||||
* `libssl-dev`
|
* `libssl-dev`
|
||||||
|
* `libelf-dev` (to build x86-64)
|
||||||
* `wget`
|
* `wget`
|
||||||
|
* `rsync`
|
||||||
* `time` (built-in `time` doesn't work)
|
* `time` (built-in `time` doesn't work)
|
||||||
* `qemu-utils`
|
* `qemu-utils`
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ Consider these key values:
|
|||||||
- and configure `MSS clamping`_ accordingly,
|
- and configure `MSS clamping`_ accordingly,
|
||||||
- and announce your link MTU via Router Advertisements and DHCP
|
- and announce your link MTU via Router Advertisements and DHCP
|
||||||
|
|
||||||
.. _MSS clamping: https://www.tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.cookbook.mtu-mss.html
|
.. _MSS clamping: https://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.cookbook.mtu-mss.html
|
||||||
|
|
||||||
- Encapsulation: Account for the overhead created by the configured mesh protocol
|
- Encapsulation: Account for the overhead created by the configured mesh protocol
|
||||||
encapsulating the payload, which is up to 32 Byte (14 Byte Ethernet + 18 Byte
|
encapsulating the payload, which is up to 32 Byte (14 Byte Ethernet + 18 Byte
|
||||||
@ -35,6 +35,8 @@ minimum payload MTU required. This is the lowest recommended value, since going
|
|||||||
lower would cause unnecessary fragmentation for clients which respect the announced
|
lower would cause unnecessary fragmentation for clients which respect the announced
|
||||||
link MTU.
|
link MTU.
|
||||||
|
|
||||||
|
.. editorconfig-checker-disable
|
||||||
|
|
||||||
Example: Our network currently uses batman-adv v15, it therefore requires up
|
Example: Our network currently uses batman-adv v15, it therefore requires up
|
||||||
to 32 Bytes of encapsulation overhead on top of the minimal link MTU required for
|
to 32 Bytes of encapsulation overhead on top of the minimal link MTU required for
|
||||||
transporting IPv6.::
|
transporting IPv6.::
|
||||||
@ -72,6 +74,7 @@ Tunneling.::
|
|||||||
|
|
||||||
MTU_HIGH = 1436 Byte - 20 Byte - 8 Byte - 24 Byte - 14 Byte = 1370 Byte
|
MTU_HIGH = 1436 Byte - 20 Byte - 8 Byte - 24 Byte - 14 Byte = 1370 Byte
|
||||||
|
|
||||||
|
.. editorconfig-checker-enable
|
||||||
|
|
||||||
Tables for Different VPN Providers
|
Tables for Different VPN Providers
|
||||||
----------------------------------
|
----------------------------------
|
||||||
@ -159,7 +162,7 @@ Maximum MTU
|
|||||||
|
|
||||||
Calculation of different derived MTUs based on a maximum WAN MTU of 1436.
|
Calculation of different derived MTUs based on a maximum WAN MTU of 1436.
|
||||||
|
|
||||||
Sugestions:
|
Suggestions:
|
||||||
|
|
||||||
- This configuration can be used for fastd and Tunneldigger.
|
- This configuration can be used for fastd and Tunneldigger.
|
||||||
|
|
||||||
|
@ -49,10 +49,13 @@ node_prefix6
|
|||||||
|
|
||||||
node_prefix6 = 'fdca::ffee:babe:2::/64'
|
node_prefix6 = 'fdca::ffee:babe:2::/64'
|
||||||
|
|
||||||
node_client_prefix6
|
node_client_prefix6 \: optional, deprecated
|
||||||
The ipv6 prefix from which the client-specific IP-address is calculated that
|
DEPRECATED: Don't specify it anymore, this prefix will then
|
||||||
is assigned to each node by l3roamd to allow efficient communication when
|
automatically be generated from the domain_seed.
|
||||||
roaming. This is exclusively useful when running a routing mesh protocol
|
|
||||||
|
An IPv6 prefix internally used by the l3roamd protocol, used to allow
|
||||||
|
an efficient handover via unicast when a client roamed.
|
||||||
|
This is exclusively useful when running a routing mesh protocol
|
||||||
like babel. e.g. ::
|
like babel. e.g. ::
|
||||||
|
|
||||||
node_client_prefix6 = 'fdca::ffee:babe:3::/64'
|
node_client_prefix6 = 'fdca::ffee:babe:3::/64'
|
||||||
@ -445,13 +448,8 @@ interfaces \: optional
|
|||||||
The ``client`` role requires exclusive control over an interface. When
|
The ``client`` role requires exclusive control over an interface. When
|
||||||
the ``client`` role is assigned to an interface at the same time as other
|
the ``client`` role is assigned to an interface at the same time as other
|
||||||
roles (like ``'client', 'mesh'`` in the above example), the other roles take
|
roles (like ``'client', 'mesh'`` in the above example), the other roles take
|
||||||
precedence (enabling ``mesh``, but not ``client`` in the example).
|
precedence (enabling ``mesh``, but not ``client`` in the example). In that
|
||||||
|
case, the ``client`` role is removed from the config of the interface.
|
||||||
Such a default configuration still fulfills a purpose (and is in fact the
|
|
||||||
recommended way to enable "Mesh-on-LAN" by default): The "LAN interface
|
|
||||||
meshing" checkbox in the advanced network settings will only add or remove
|
|
||||||
the ``mesh`` role, so the ``client`` role must already be in the configuration
|
|
||||||
to make the LAN port a regular client interface when the checkbox is disabled.
|
|
||||||
|
|
||||||
All interface settings are optional. If unset, the following defaults are
|
All interface settings are optional. If unset, the following defaults are
|
||||||
used:
|
used:
|
||||||
|
@ -41,6 +41,10 @@ ath79-generic
|
|||||||
|
|
||||||
- WS-AP3705i
|
- WS-AP3705i
|
||||||
|
|
||||||
|
* Extreme Networks
|
||||||
|
|
||||||
|
- WS-AP3805i
|
||||||
|
|
||||||
* GL.iNet
|
* GL.iNet
|
||||||
|
|
||||||
- 6416A
|
- 6416A
|
||||||
@ -53,6 +57,10 @@ ath79-generic
|
|||||||
|
|
||||||
- JT-OR750i
|
- JT-OR750i
|
||||||
|
|
||||||
|
* LibreRouter
|
||||||
|
|
||||||
|
- LibreRouter v1 [#missing_radios]_
|
||||||
|
|
||||||
* Netgear
|
* Netgear
|
||||||
|
|
||||||
- WNDR3700 (v1, v2)
|
- WNDR3700 (v1, v2)
|
||||||
@ -91,6 +99,10 @@ ath79-generic
|
|||||||
|
|
||||||
- WS-AP3610
|
- WS-AP3610
|
||||||
|
|
||||||
|
* Teltonika
|
||||||
|
|
||||||
|
- RUT230 (v1)
|
||||||
|
|
||||||
* TP-Link
|
* TP-Link
|
||||||
|
|
||||||
- Archer A7 (v5)
|
- Archer A7 (v5)
|
||||||
@ -100,9 +112,7 @@ ath79-generic
|
|||||||
- Archer C59 (v1)
|
- Archer C59 (v1)
|
||||||
- CPE210 (v1.0, v1.1, v2.0, v3.0, v3.1, v3.20)
|
- CPE210 (v1.0, v1.1, v2.0, v3.0, v3.1, v3.20)
|
||||||
- CPE220 (v3.0)
|
- CPE220 (v3.0)
|
||||||
- CPE510 (v1.0, v1.1)
|
- CPE510 (v1.0, v1.1, v2.0, v3.0)
|
||||||
- CPE510 (v2.0)
|
|
||||||
- CPE510 (v3.0)
|
|
||||||
- CPE710 (v1.0)
|
- CPE710 (v1.0)
|
||||||
- EAP225-Outdoor (v1)
|
- EAP225-Outdoor (v1)
|
||||||
- RE450 (v1)
|
- RE450 (v1)
|
||||||
@ -112,8 +122,7 @@ ath79-generic
|
|||||||
- TL-WR810N (v1)
|
- TL-WR810N (v1)
|
||||||
- TL-WR842N/ND (v3)
|
- TL-WR842N/ND (v3)
|
||||||
- TL-WR1043N/ND (v2, v3, v4, v5)
|
- TL-WR1043N/ND (v2, v3, v4, v5)
|
||||||
- WBS210 (v1.20)
|
- WBS210 (v1.20, v2.0)
|
||||||
- WBS210 (v2.0)
|
|
||||||
- WBS510 (v1.20)
|
- WBS510 (v1.20)
|
||||||
|
|
||||||
* Ubiquiti
|
* Ubiquiti
|
||||||
@ -134,14 +143,20 @@ ath79-generic
|
|||||||
ath79-nand
|
ath79-nand
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
* Aerohive
|
||||||
|
|
||||||
|
- HiveAP 121
|
||||||
|
|
||||||
* GL.iNet
|
* GL.iNet
|
||||||
|
|
||||||
- GL-AR300M
|
- GL-AR300M
|
||||||
- GL-AR750S
|
- GL-AR750S
|
||||||
|
- GL-XE300
|
||||||
|
|
||||||
* Netgear
|
* Netgear
|
||||||
|
|
||||||
- WNDR3700 (v4)
|
- WNDR3700 (v4)
|
||||||
|
- WNDR4300 (v1)
|
||||||
|
|
||||||
ath79-mikrotik
|
ath79-mikrotik
|
||||||
--------------
|
--------------
|
||||||
@ -176,7 +191,8 @@ ipq40xx-generic
|
|||||||
* AVM
|
* AVM
|
||||||
|
|
||||||
- FRITZ!Box 4040 [#avmflash]_
|
- FRITZ!Box 4040 [#avmflash]_
|
||||||
- FRITZ!Box 7530 [#eva_ramboot]_
|
- FRITZ!Box 7520 (v1) [#eva_ramboot]_ [#lan_as_wan]_
|
||||||
|
- FRITZ!Box 7530 [#eva_ramboot]_ [#lan_as_wan]_
|
||||||
- FRITZ!Repeater 1200 [#eva_ramboot]_
|
- FRITZ!Repeater 1200 [#eva_ramboot]_
|
||||||
|
|
||||||
* EnGenius
|
* EnGenius
|
||||||
@ -185,6 +201,7 @@ ipq40xx-generic
|
|||||||
|
|
||||||
* GL.iNet
|
* GL.iNet
|
||||||
|
|
||||||
|
- GL-AP1300
|
||||||
- GL-B1300
|
- GL-B1300
|
||||||
|
|
||||||
* Linksys
|
* Linksys
|
||||||
@ -217,6 +234,7 @@ ipq40xx-mikrotik
|
|||||||
* Mikrotik
|
* Mikrotik
|
||||||
|
|
||||||
- DISC Lite5 ac (RBDiscG-5acD)
|
- DISC Lite5 ac (RBDiscG-5acD)
|
||||||
|
- hAP ac2
|
||||||
- SXTsq 5 ac (RBSXTsqG-5acD)
|
- SXTsq 5 ac (RBSXTsqG-5acD)
|
||||||
|
|
||||||
ipq806x-generic
|
ipq806x-generic
|
||||||
@ -229,6 +247,10 @@ ipq806x-generic
|
|||||||
lantiq-xrx200
|
lantiq-xrx200
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
* Arcadyan
|
||||||
|
|
||||||
|
- VGV7510KW22 (o2 Box 6431)
|
||||||
|
|
||||||
* AVM
|
* AVM
|
||||||
|
|
||||||
- FRITZ!Box 7360 (v1, v2) [#avmflash]_ [#lan_as_wan]_
|
- FRITZ!Box 7360 (v1, v2) [#avmflash]_ [#lan_as_wan]_
|
||||||
@ -236,6 +258,10 @@ lantiq-xrx200
|
|||||||
- FRITZ!Box 7362 SL [#eva_ramboot]_ [#lan_as_wan]_
|
- FRITZ!Box 7362 SL [#eva_ramboot]_ [#lan_as_wan]_
|
||||||
- FRITZ!Box 7412 [#eva_ramboot]_
|
- FRITZ!Box 7412 [#eva_ramboot]_
|
||||||
|
|
||||||
|
* TP-Link
|
||||||
|
|
||||||
|
- TD-W8970 (v1) [#lan_as_wan]_
|
||||||
|
|
||||||
lantiq-xway
|
lantiq-xway
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
@ -269,6 +295,10 @@ mpc85xx-p1010
|
|||||||
|
|
||||||
- RED 15w Rev.1
|
- RED 15w Rev.1
|
||||||
|
|
||||||
|
* TP-Link
|
||||||
|
|
||||||
|
- TL-WDR4900 (v1)
|
||||||
|
|
||||||
mpc85xx-p1020
|
mpc85xx-p1020
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
@ -330,12 +360,23 @@ ramips-mt7621
|
|||||||
|
|
||||||
* Cudy
|
* Cudy
|
||||||
|
|
||||||
|
- WR1300 (v1)
|
||||||
- WR2100
|
- WR2100
|
||||||
|
- X6 (v1, v2)
|
||||||
|
|
||||||
* D-Link
|
* D-Link
|
||||||
|
|
||||||
|
- DAP-X1860 (A1)
|
||||||
- DIR-860L (B1)
|
- DIR-860L (B1)
|
||||||
|
|
||||||
|
* GL.iNet
|
||||||
|
|
||||||
|
- GL-MT1300
|
||||||
|
|
||||||
|
* Mercusys
|
||||||
|
|
||||||
|
- MR70X (v1)
|
||||||
|
|
||||||
* NETGEAR
|
* NETGEAR
|
||||||
|
|
||||||
- EX6150 (v1)
|
- EX6150 (v1)
|
||||||
@ -355,15 +396,23 @@ ramips-mt7621
|
|||||||
- EdgeRouter X-SFP
|
- EdgeRouter X-SFP
|
||||||
- UniFi 6 Lite
|
- UniFi 6 Lite
|
||||||
|
|
||||||
|
* Wavlink
|
||||||
|
|
||||||
|
- WS-WN572HP3 (4G)
|
||||||
|
|
||||||
* ZBT
|
* ZBT
|
||||||
|
|
||||||
- WG3526-16M
|
- WG3526-16M
|
||||||
- WG3526-32M
|
- WG3526-32M
|
||||||
|
|
||||||
|
* ZyXEL
|
||||||
|
|
||||||
|
- NWA50AX
|
||||||
|
|
||||||
* Xiaomi
|
* Xiaomi
|
||||||
|
|
||||||
- Xiaomi Mi Router 4A (Gigabit Edition)
|
- Xiaomi Mi Router 4A (Gigabit Edition)
|
||||||
- Xiaomi Mi Router 3G v2
|
- Xiaomi Mi Router 3G (v1, v2)
|
||||||
|
|
||||||
ramips-mt76x8
|
ramips-mt76x8
|
||||||
-------------
|
-------------
|
||||||
@ -390,9 +439,8 @@ ramips-mt76x8
|
|||||||
* TP-Link
|
* TP-Link
|
||||||
|
|
||||||
- Archer C20 (v4, v5)
|
- Archer C20 (v4, v5)
|
||||||
- Archer C50 (v3)
|
- Archer C50 (v3, v4)
|
||||||
- Archer C50 (v4)
|
- RE200 (v2, v3)
|
||||||
- RE200 (v2)
|
|
||||||
- RE305 (v1) [#device-class-tiny]
|
- RE305 (v1) [#device-class-tiny]
|
||||||
- TL-MR3020 (v3)
|
- TL-MR3020 (v3)
|
||||||
- TL-MR3420 (v5)
|
- TL-MR3420 (v5)
|
||||||
@ -410,12 +458,20 @@ ramips-mt76x8
|
|||||||
- Xiaomi Mi Router 4A (100M International Edition)
|
- Xiaomi Mi Router 4A (100M International Edition)
|
||||||
- Xiaomi Mi Router 4C
|
- Xiaomi Mi Router 4C
|
||||||
|
|
||||||
|
realtek-rtl838x
|
||||||
|
---------------
|
||||||
|
|
||||||
|
* D-Link
|
||||||
|
|
||||||
|
- DGS-1210-10P (F1)
|
||||||
|
|
||||||
rockchip-armv8
|
rockchip-armv8
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
* FriendlyElec
|
* FriendlyElec
|
||||||
|
|
||||||
- NanoPi R2S
|
- NanoPi R2S
|
||||||
|
- NanoPi R4S (4GB LPDDR4)
|
||||||
|
|
||||||
sunxi-cortexa7
|
sunxi-cortexa7
|
||||||
--------------
|
--------------
|
||||||
@ -468,6 +524,10 @@ Footnotes
|
|||||||
.. [#lan_as_wan]
|
.. [#lan_as_wan]
|
||||||
All LAN ports on this device are used as WAN.
|
All LAN ports on this device are used as WAN.
|
||||||
|
|
||||||
|
.. [#missing_radios]
|
||||||
|
This device contains more than two WLAN radios, which is currently
|
||||||
|
unsupported by Gluon. Only the first two radios will work.
|
||||||
|
|
||||||
.. [#modular_ethernet]
|
.. [#modular_ethernet]
|
||||||
These devices follow a modular principle,
|
These devices follow a modular principle,
|
||||||
which means even basic functionality like ethernet is provided by an expansion-board,
|
which means even basic functionality like ethernet is provided by an expansion-board,
|
||||||
|
@ -15,7 +15,7 @@ The following targets for x86 images exist:
|
|||||||
|
|
||||||
There are three images:
|
There are three images:
|
||||||
|
|
||||||
* `generic` (compressed "raw" image, can written to a disk directly or booted with qemu)
|
* `generic` (compressed "raw" image, can be written to a disk directly or booted with qemu)
|
||||||
* `virtualbox` (VDI image)
|
* `virtualbox` (VDI image)
|
||||||
* `vmware` (VMDK image)
|
* `vmware` (VMDK image)
|
||||||
|
|
||||||
|
8
modules
8
modules
@ -2,15 +2,15 @@ GLUON_FEEDS='packages routing gluon'
|
|||||||
|
|
||||||
OPENWRT_REPO=https://github.com/openwrt/openwrt.git
|
OPENWRT_REPO=https://github.com/openwrt/openwrt.git
|
||||||
OPENWRT_BRANCH=openwrt-22.03
|
OPENWRT_BRANCH=openwrt-22.03
|
||||||
OPENWRT_COMMIT=d1f14d17aaa1866eee1fe2d0d074b2a003c2a210
|
OPENWRT_COMMIT=e500494771537b9f42f78e4d907bed18b6383606
|
||||||
|
|
||||||
PACKAGES_PACKAGES_REPO=https://github.com/openwrt/packages.git
|
PACKAGES_PACKAGES_REPO=https://github.com/openwrt/packages.git
|
||||||
PACKAGES_PACKAGES_BRANCH=openwrt-22.03
|
PACKAGES_PACKAGES_BRANCH=openwrt-22.03
|
||||||
PACKAGES_PACKAGES_COMMIT=bcafba4320e5942f2ca8c1ad63b3a8a84ca0c3d1
|
PACKAGES_PACKAGES_COMMIT=55eed1761207f4dfdb8e7d79138f6f65c8849b50
|
||||||
|
|
||||||
PACKAGES_ROUTING_REPO=https://github.com/openwrt/routing.git
|
PACKAGES_ROUTING_REPO=https://github.com/openwrt/routing.git
|
||||||
PACKAGES_ROUTING_BRANCH=openwrt-22.03
|
PACKAGES_ROUTING_BRANCH=openwrt-22.03
|
||||||
PACKAGES_ROUTING_COMMIT=8872359011eee64981804f7ed42d5d6b54add6d8
|
PACKAGES_ROUTING_COMMIT=1cc7676b9f32acc30ec47f15fcb70380d5d6ef01
|
||||||
|
|
||||||
PACKAGES_GLUON_REPO=https://github.com/freifunk-gluon/packages.git
|
PACKAGES_GLUON_REPO=https://github.com/freifunk-gluon/packages.git
|
||||||
PACKAGES_GLUON_COMMIT=04d2b6ffbb6ee02012f2733b7752d8db0d12eaff
|
PACKAGES_GLUON_COMMIT=29912ec6308fd10b47763b4cf28a638d07f59973
|
||||||
|
@ -6,17 +6,17 @@ local file = '/etc/dropbear/authorized_keys'
|
|||||||
local keys = {}
|
local keys = {}
|
||||||
|
|
||||||
local function load_keys()
|
local function load_keys()
|
||||||
for line in io.lines(file) do
|
for line in io.lines(file) do
|
||||||
keys[line] = true
|
keys[line] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
pcall(load_keys)
|
pcall(load_keys)
|
||||||
|
|
||||||
local f = io.open(file, 'a')
|
local f = io.open(file, 'a')
|
||||||
for _, key in ipairs(site.authorized_keys()) do
|
for _, key in ipairs(site.authorized_keys()) do
|
||||||
if not keys[key] then
|
if not keys[key] then
|
||||||
f:write(key .. '\n')
|
f:write(key .. '\n')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
f:close()
|
f:close()
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
if [ -x /etc/init.d/"$1" ]; then
|
if [ -x /etc/init.d/"$1" ]; then
|
||||||
echo "Stopping $1..."
|
echo "Stopping $1..."
|
||||||
/etc/init.d/"$1" stop
|
/etc/init.d/"$1" stop
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
start_enabled() {
|
start_enabled() {
|
||||||
if [ -x /etc/init.d/"$1" ] && /etc/init.d/"$1" enabled; then
|
if [ -x /etc/init.d/"$1" ] && /etc/init.d/"$1" enabled; then
|
||||||
echo "Starting $1..."
|
echo "Starting $1..."
|
||||||
/etc/init.d/"$1" start
|
/etc/init.d/"$1" start
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -1,27 +1,5 @@
|
|||||||
/*
|
/* SPDX-FileCopyrightText: 2016, Matthias Schiffer <mschiffer@universe-factory.net> */
|
||||||
Copyright (c) 2016, Matthias Schiffer <mschiffer@universe-factory.net>
|
/* SPDX-License-Identifier: BSD-2-Clause */
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer.
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer in the documentation
|
|
||||||
and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <respondd.h>
|
#include <respondd.h>
|
||||||
@ -59,7 +37,7 @@ static struct json_object * get_autoupdater(void) {
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
uci_free_context(ctx);
|
uci_free_context(ctx);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -10,11 +10,11 @@ return function(form, uci)
|
|||||||
|
|
||||||
local msg = pkg_i18n.translate(
|
local msg = pkg_i18n.translate(
|
||||||
'Your internet connection can be used to establish a ' ..
|
'Your internet connection can be used to establish a ' ..
|
||||||
'VPN connection with other nodes. ' ..
|
'VPN connection with other nodes. ' ..
|
||||||
'Enable this option if there are no other nodes reachable ' ..
|
'Enable this option if there are no other nodes reachable ' ..
|
||||||
'over WLAN in your vicinity or you want to make a part of ' ..
|
'over WLAN in your vicinity or you want to make a part of ' ..
|
||||||
'your connection\'s bandwidth available for the network. You can limit how ' ..
|
'your connection\'s bandwidth available for the network. You can limit how ' ..
|
||||||
'much bandwidth the node will use at most.'
|
'much bandwidth the node will use at most.'
|
||||||
)
|
)
|
||||||
|
|
||||||
local s = form:section(Section, nil, msg)
|
local s = form:section(Section, nil, msg)
|
||||||
|
@ -1,12 +1,7 @@
|
|||||||
<%#
|
<%#
|
||||||
Copyright 2008 Steven Barth <steven@midlink.org>
|
SPDX-License-Identifier: Apache-2.0
|
||||||
Copyright 2008-2010 Jo-Philipp Wich <xm@subsignal.org>
|
SPDX-FileCopyrightText: 2008 Steven Barth <steven@midlink.org>
|
||||||
|
SPDX-FileCopyrightText: 2008-2010 Jo-Philipp Wich <xm@subsignal.org>
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
-%>
|
-%>
|
||||||
<%
|
<%
|
||||||
local pretty_hostname = require "pretty_hostname"
|
local pretty_hostname = require "pretty_hostname"
|
||||||
@ -43,7 +38,7 @@ You may obtain a copy of the License at
|
|||||||
table.sort(ret,
|
table.sort(ret,
|
||||||
function(a, b)
|
function(a, b)
|
||||||
return (node.nodes[a].order or 100)
|
return (node.nodes[a].order or 100)
|
||||||
< (node.nodes[b].order or 100)
|
< (node.nodes[b].order or 100)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
return ret
|
return ret
|
||||||
@ -125,7 +120,7 @@ You may obtain a copy of the License at
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="maincontainer">
|
<div id="maincontainer">
|
||||||
<%
|
<%
|
||||||
if not hidenav then
|
if not hidenav then
|
||||||
menutree(unpack(request))
|
menutree(unpack(request))
|
||||||
end
|
end
|
||||||
|
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
sass --sourcemap=none -C -t compressed sass/gluon.scss files/lib/gluon/config-mode/www/static/gluon.css
|
sass --sourcemap=none -C -t compressed sass/gluon.scss files/lib/gluon/config-mode/www/static/gluon.css
|
||||||
|
|
||||||
When commiting changes to this file make sure to commit the respective
|
When committing changes to this file make sure to commit the respective
|
||||||
changes to the compilid version within the same commit!
|
changes to the compilid version within the same commit!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -273,6 +273,10 @@ input[type=checkbox] {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 1.7em;
|
font-size: 1.7em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&[disabled] + label {
|
||||||
|
background-color: #dcdcdc !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=radio] {
|
input[type=radio] {
|
||||||
@ -366,6 +370,13 @@ input[type=password] {
|
|||||||
min-width: 20em;
|
min-width: 20em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gluon-multi-list-option-descr {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
margin-top: 0.35em;
|
||||||
|
margin-left: 0.4em;
|
||||||
|
}
|
||||||
|
|
||||||
.gluon-button {
|
.gluon-button {
|
||||||
@include button;
|
@include button;
|
||||||
|
|
||||||
@ -518,6 +529,11 @@ textarea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gluon-warning {
|
||||||
|
@extend .gluon-section-descr;
|
||||||
|
background: lighten($ffyellow, 35);
|
||||||
|
}
|
||||||
|
|
||||||
.error500 {
|
.error500 {
|
||||||
border: 1px dotted #ff0000;
|
border: 1px dotted #ff0000;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
@ -66,6 +66,7 @@ need_boolean(in_site({'poe_passthrough'}), false)
|
|||||||
|
|
||||||
if need_table({'dns'}, nil, false) then
|
if need_table({'dns'}, nil, false) then
|
||||||
need_string_array_match({'dns', 'servers'}, '^[%x:]+$')
|
need_string_array_match({'dns', 'servers'}, '^[%x:]+$')
|
||||||
|
need_number({'dns', 'cacheentries'}, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
need_string_array(in_domain({'next_node', 'name'}), false)
|
need_string_array(in_domain({'next_node', 'name'}), false)
|
||||||
@ -76,7 +77,11 @@ need_boolean(in_domain({'mesh', 'vxlan'}), false)
|
|||||||
|
|
||||||
local interfaces_roles = {'client', 'uplink', 'mesh'}
|
local interfaces_roles = {'client', 'uplink', 'mesh'}
|
||||||
for _, config in ipairs({'wan', 'lan', 'single'}) do
|
for _, config in ipairs({'wan', 'lan', 'single'}) do
|
||||||
need_array_of(in_site({'interfaces', config, 'default_roles'}), interfaces_roles, false)
|
local default_roles = in_site({'interfaces', config, 'default_roles'})
|
||||||
|
|
||||||
|
need_array_of(default_roles, interfaces_roles, false)
|
||||||
|
need_array_elements_exclusive(default_roles, 'client', 'mesh', false)
|
||||||
|
need_array_elements_exclusive(default_roles, 'client', 'uplink', false)
|
||||||
end
|
end
|
||||||
|
|
||||||
obsolete({'mesh_on_wan'}, 'Use interfaces.wan.default_roles.')
|
obsolete({'mesh_on_wan'}, 'Use interfaces.wan.default_roles.')
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Work around an issue with wifi setup timing by waiting a bit
|
||||||
|
# while device initialisation is ongoing.
|
||||||
|
# https://github.com/freifunk-gluon/gluon/issues/2779
|
||||||
|
sleep 3
|
||||||
|
|
||||||
gluon-reconfigure
|
gluon-reconfigure
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -5,90 +5,90 @@
|
|||||||
init_proto "$@"
|
init_proto "$@"
|
||||||
|
|
||||||
proto_gluon_wired_init_config() {
|
proto_gluon_wired_init_config() {
|
||||||
proto_config_add_boolean transitive
|
proto_config_add_boolean transitive
|
||||||
proto_config_add_int index
|
proto_config_add_int index
|
||||||
proto_config_add_boolean vxlan
|
proto_config_add_boolean vxlan
|
||||||
proto_config_add_string vxpeer6addr
|
proto_config_add_string vxpeer6addr
|
||||||
}
|
}
|
||||||
|
|
||||||
xor2() {
|
xor2() {
|
||||||
echo -n "${1:0:1}"
|
echo -n "${1:0:1}"
|
||||||
echo -n "${1:1:1}" | tr '0123456789abcdef' '23016745ab89efcd'
|
echo -n "${1:1:1}" | tr '0123456789abcdef' '23016745ab89efcd'
|
||||||
}
|
}
|
||||||
|
|
||||||
is_layer3_device () {
|
is_layer3_device () {
|
||||||
local addrlen="$(cat "/sys/class/net/$1/addr_len")"
|
local addrlen="$(cat "/sys/class/net/$1/addr_len")"
|
||||||
test "$addrlen" -eq 0
|
test "$addrlen" -eq 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
interface_linklocal() {
|
interface_linklocal() {
|
||||||
if is_layer3_device "$1"; then
|
if is_layer3_device "$1"; then
|
||||||
if ! ubus call network.interface dump | \
|
if ! ubus call network.interface dump | \
|
||||||
jsonfilter -e "@.interface[@.l3_device='$1']['ipv6-address'][*].address" | \
|
jsonfilter -e "@.interface[@.l3_device='$1']['ipv6-address'][*].address" | \
|
||||||
grep -e '^fe[89ab][0-9a-f]' -m 1; then
|
grep -e '^fe[89ab][0-9a-f]' -m 1; then
|
||||||
proto_notify_error "$config" "MISSING_LL_ADDR_ON_LOWER_IFACE"
|
proto_notify_error "$config" "MISSING_LL_ADDR_ON_LOWER_IFACE"
|
||||||
proto_block_restart "$config"
|
proto_block_restart "$config"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local macaddr="$(ubus call network.device status '{"name": "'"$1"'"}' | jsonfilter -e '@.macaddr')"
|
local macaddr="$(ubus call network.device status '{"name": "'"$1"'"}' | jsonfilter -e '@.macaddr')"
|
||||||
local oldIFS="$IFS"; IFS=':'; set -- $macaddr; IFS="$oldIFS"
|
local oldIFS="$IFS"; IFS=':'; set -- $macaddr; IFS="$oldIFS"
|
||||||
|
|
||||||
echo "fe80::$(xor2 "$1")$2:$3ff:fe$4:$5$6"
|
echo "fe80::$(xor2 "$1")$2:$3ff:fe$4:$5$6"
|
||||||
}
|
}
|
||||||
|
|
||||||
proto_gluon_wired_setup() {
|
proto_gluon_wired_setup() {
|
||||||
local config="$1"
|
local config="$1"
|
||||||
local ifname="$2"
|
local ifname="$2"
|
||||||
|
|
||||||
local meshif="$config"
|
local meshif="$config"
|
||||||
|
|
||||||
local transitive index vxlan vxpeer6addr
|
local transitive index vxlan vxpeer6addr
|
||||||
json_get_vars transitive index vxlan vxpeer6addr
|
json_get_vars transitive index vxlan vxpeer6addr
|
||||||
|
|
||||||
# default args
|
# default args
|
||||||
[ -z "$vxlan" ] && vxlan=1
|
[ -z "$vxlan" ] && vxlan=1
|
||||||
[ -z "$vxpeer6addr" ] && vxpeer6addr='ff02::15c'
|
[ -z "$vxpeer6addr" ] && vxpeer6addr='ff02::15c'
|
||||||
|
|
||||||
proto_init_update "$ifname" 1
|
proto_init_update "$ifname" 1
|
||||||
proto_send_update "$config"
|
proto_send_update "$config"
|
||||||
|
|
||||||
if [ "$vxlan" -eq 1 ]; then
|
if [ "$vxlan" -eq 1 ]; then
|
||||||
meshif="vx_$config"
|
meshif="vx_$config"
|
||||||
|
|
||||||
json_init
|
json_init
|
||||||
json_add_string name "$meshif"
|
json_add_string name "$meshif"
|
||||||
[ -n "$index" ] && json_add_string macaddr "$(lua -e "print(require('gluon.util').generate_mac($index))")"
|
[ -n "$index" ] && json_add_string macaddr "$(lua -e "print(require('gluon.util').generate_mac($index))")"
|
||||||
json_add_string proto 'vxlan6'
|
json_add_string proto 'vxlan6'
|
||||||
json_add_string tunlink "$config"
|
json_add_string tunlink "$config"
|
||||||
# ip6addr (the lower interface ip6) is used by the vxlan.sh proto
|
# ip6addr (the lower interface ip6) is used by the vxlan.sh proto
|
||||||
json_add_string ip6addr "$(interface_linklocal "$ifname")"
|
json_add_string ip6addr "$(interface_linklocal "$ifname")"
|
||||||
json_add_string peer6addr "$vxpeer6addr"
|
json_add_string peer6addr "$vxpeer6addr"
|
||||||
json_add_int vid "$(lua -e 'print(tonumber(require("gluon.util").domain_seed_bytes("gluon-mesh-vxlan", 3), 16))')"
|
json_add_int vid "$(lua -e 'print(tonumber(require("gluon.util").domain_seed_bytes("gluon-mesh-vxlan", 3), 16))')"
|
||||||
json_add_boolean rxcsum '0'
|
json_add_boolean rxcsum '0'
|
||||||
json_add_boolean txcsum '0'
|
json_add_boolean txcsum '0'
|
||||||
json_close_object
|
json_close_object
|
||||||
ubus call network add_dynamic "$(json_dump)"
|
ubus call network add_dynamic "$(json_dump)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
json_init
|
json_init
|
||||||
json_add_string name "${config}_mesh"
|
json_add_string name "${config}_mesh"
|
||||||
json_add_string ifname "@${meshif}"
|
json_add_string ifname "@${meshif}"
|
||||||
json_add_string proto 'gluon_mesh'
|
json_add_string proto 'gluon_mesh'
|
||||||
json_add_boolean fixed_mtu 1
|
json_add_boolean fixed_mtu 1
|
||||||
[ -n "$transitive" ] && json_add_boolean transitive "$transitive"
|
[ -n "$transitive" ] && json_add_boolean transitive "$transitive"
|
||||||
json_close_object
|
json_close_object
|
||||||
ubus call network add_dynamic "$(json_dump)"
|
ubus call network add_dynamic "$(json_dump)"
|
||||||
}
|
}
|
||||||
|
|
||||||
proto_gluon_wired_teardown() {
|
proto_gluon_wired_teardown() {
|
||||||
local config="$1"
|
local config="$1"
|
||||||
|
|
||||||
proto_init_update "*" 0
|
proto_init_update "*" 0
|
||||||
proto_send_update "$config"
|
proto_send_update "$config"
|
||||||
}
|
}
|
||||||
|
|
||||||
add_protocol gluon_wired
|
add_protocol gluon_wired
|
||||||
|
@ -55,6 +55,14 @@ local function merge(a, b)
|
|||||||
return m
|
return m
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function contains(table, val)
|
||||||
|
for i=1,#table do
|
||||||
|
if table[i] == val then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
local function path_to_string(path)
|
local function path_to_string(path)
|
||||||
if path.is_value then
|
if path.is_value then
|
||||||
@ -370,6 +378,21 @@ function M.need_array_of(path, array, required)
|
|||||||
return M.need_array(path, function(e) M.need_one_of(e, array) end, required)
|
return M.need_array(path, function(e) M.need_one_of(e, array) end, required)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function M.need_array_elements_exclusive(path, a, b, required)
|
||||||
|
local val = need_type(path, 'table', required, 'be an array')
|
||||||
|
if not val then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
if contains(val, a) and contains(val, b) then
|
||||||
|
config_error(conf_src(path),
|
||||||
|
'expected %s to contain only one of the elements %s and %s, but not both.',
|
||||||
|
path_to_string(path), format(a), format(b))
|
||||||
|
end
|
||||||
|
|
||||||
|
return val
|
||||||
|
end
|
||||||
|
|
||||||
function M.need_chanlist(path, channels, required)
|
function M.need_chanlist(path, channels, required)
|
||||||
local valid_chanlist = check_chanlist(channels)
|
local valid_chanlist = check_chanlist(channels)
|
||||||
return M.need(path, valid_chanlist, required,
|
return M.need(path, valid_chanlist, required,
|
||||||
|
@ -87,6 +87,9 @@ local primary_addrs = {
|
|||||||
{'ipq806x', 'generic', {
|
{'ipq806x', 'generic', {
|
||||||
'netgear,r7800',
|
'netgear,r7800',
|
||||||
}},
|
}},
|
||||||
|
{'lantiq', 'xrx200', {
|
||||||
|
'arcadyan,vgv7510kw22-nor',
|
||||||
|
}},
|
||||||
{'lantiq', 'xway', {
|
{'lantiq', 'xway', {
|
||||||
'netgear,dgn3500b',
|
'netgear,dgn3500b',
|
||||||
}},
|
}},
|
||||||
@ -102,6 +105,7 @@ local primary_addrs = {
|
|||||||
}},
|
}},
|
||||||
{'rockchip', 'armv8', {
|
{'rockchip', 'armv8', {
|
||||||
'friendlyarm,nanopi-r2s',
|
'friendlyarm,nanopi-r2s',
|
||||||
|
'friendlyarm,nanopi-r4s',
|
||||||
}},
|
}},
|
||||||
{'x86'},
|
{'x86'},
|
||||||
}},
|
}},
|
||||||
|
@ -67,6 +67,14 @@ elseif platform.match('ramips', 'mt7621', {
|
|||||||
'netgear,wac104',
|
'netgear,wac104',
|
||||||
}) then
|
}) then
|
||||||
lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1'
|
lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1'
|
||||||
|
elseif platform.match('lantiq', 'xrx200', {
|
||||||
|
'arcadyan,vgv7510kw22-nor',
|
||||||
|
}) then
|
||||||
|
lan_ifname, wan_ifname = 'lan1 lan2 lan3 lan4', 'wan'
|
||||||
|
elseif platform.match('realtek', 'rtl838x', {
|
||||||
|
'd-link,dgs-1210-10p',
|
||||||
|
}) then
|
||||||
|
lan_ifname, wan_ifname = 'lan2 lan3 lan4 lan5 lan6 lan7 lan8 lan9 lan10', 'lan1'
|
||||||
end
|
end
|
||||||
|
|
||||||
if wan_ifname and lan_ifname then
|
if wan_ifname and lan_ifname then
|
||||||
|
@ -63,4 +63,19 @@ for iface in pairs(interfaces) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Fix invalid role configurations
|
||||||
|
|
||||||
|
uci:foreach('gluon', 'interface', function(interface)
|
||||||
|
|
||||||
|
local function has_role(role)
|
||||||
|
return util.contains(interface.role, role)
|
||||||
|
end
|
||||||
|
|
||||||
|
if has_role('client') and (has_role('mesh') or has_role('uplink')) then
|
||||||
|
-- remove 'client' role
|
||||||
|
util.remove_from_set(interface.role, 'client')
|
||||||
|
uci:set('gluon', interface['.name'], 'role', interface.role)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
uci:save('gluon')
|
uci:save('gluon')
|
||||||
|
@ -4,6 +4,19 @@ local uci = require('simple-uci').cursor()
|
|||||||
|
|
||||||
local sysconfig = require 'gluon.sysconfig'
|
local sysconfig = require 'gluon.sysconfig'
|
||||||
local util = require 'gluon.util'
|
local util = require 'gluon.util'
|
||||||
|
local json = require 'jsonc'
|
||||||
|
|
||||||
|
local function get_network_mac(name)
|
||||||
|
local board_data = json.load('/etc/board.json')
|
||||||
|
local network_data = (board_data or {}).network
|
||||||
|
|
||||||
|
if network_data == nil then
|
||||||
|
return nil
|
||||||
|
end
|
||||||
|
|
||||||
|
local ifdata = network_data[name] or {}
|
||||||
|
return ifdata.macaddr
|
||||||
|
end
|
||||||
|
|
||||||
local wan = uci:get_all('network_gluon-old', 'wan') or {}
|
local wan = uci:get_all('network_gluon-old', 'wan') or {}
|
||||||
local wan6 = uci:get_all('network_gluon-old', 'wan6') or {}
|
local wan6 = uci:get_all('network_gluon-old', 'wan6') or {}
|
||||||
@ -27,6 +40,7 @@ uci:section('network', 'interface', 'wan', {
|
|||||||
ipaddr = wan.ipaddr,
|
ipaddr = wan.ipaddr,
|
||||||
netmask = wan.netmask,
|
netmask = wan.netmask,
|
||||||
gateway = wan.gateway,
|
gateway = wan.gateway,
|
||||||
|
macaddr = get_network_mac('wan'),
|
||||||
ifname = util.get_role_interfaces(uci, 'uplink'),
|
ifname = util.get_role_interfaces(uci, 'uplink'),
|
||||||
type = 'bridge',
|
type = 'bridge',
|
||||||
igmp_snooping = true,
|
igmp_snooping = true,
|
||||||
|
@ -53,19 +53,19 @@ local function is_outdoor()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function get_channel(radio, config)
|
local function get_channel(radio, config)
|
||||||
local channel
|
if radio.band == '5g' and is_outdoor() then
|
||||||
if wireless.preserve_channels(uci) then
|
|
||||||
-- preserved channel always wins
|
|
||||||
channel = radio.channel
|
|
||||||
elseif radio.band == '5g' and is_outdoor() then
|
|
||||||
-- actual channel will be picked and probed from chanlist
|
-- actual channel will be picked and probed from chanlist
|
||||||
channel = 'auto'
|
return 'auto'
|
||||||
end
|
end
|
||||||
|
|
||||||
return channel or config.channel()
|
return config.channel()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_htmode(radio)
|
local function get_htmode(radio)
|
||||||
|
if wireless.preserve_channels(uci) then
|
||||||
|
return radio.htmode
|
||||||
|
end
|
||||||
|
|
||||||
if radio.band == '5g' and is_outdoor() then
|
if radio.band == '5g' and is_outdoor() then
|
||||||
local outdoor_htmode = uci:get('gluon', 'wireless', 'outdoor_' .. radio['.name'] .. '_htmode')
|
local outdoor_htmode = uci:get('gluon', 'wireless', 'outdoor_' .. radio['.name'] .. '_htmode')
|
||||||
if outdoor_htmode ~= nil then
|
if outdoor_htmode ~= nil then
|
||||||
@ -175,6 +175,20 @@ local function configure_mesh_wireless(radio, index, config, disabled)
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function set_channels(radio, radio_name, config)
|
||||||
|
if wireless.preserve_channels(uci) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local channel = get_channel(radio, config)
|
||||||
|
uci:set('wireless', radio_name, 'channel', channel)
|
||||||
|
|
||||||
|
local chanlist
|
||||||
|
if radio.band == '5g' and is_outdoor() then
|
||||||
|
chanlist = config.outdoor_chanlist()
|
||||||
|
end
|
||||||
|
uci:set('wireless', radio_name, 'channels', chanlist)
|
||||||
|
end
|
||||||
|
|
||||||
wireless.foreach_radio(uci, function(radio, index, config)
|
wireless.foreach_radio(uci, function(radio, index, config)
|
||||||
local radio_name = radio['.name']
|
local radio_name = radio['.name']
|
||||||
|
|
||||||
@ -190,13 +204,13 @@ wireless.foreach_radio(uci, function(radio, index, config)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local channel = get_channel(radio, config)
|
|
||||||
local htmode = get_htmode(radio)
|
local htmode = get_htmode(radio)
|
||||||
local beacon_interval = config.beacon_interval()
|
local beacon_interval = config.beacon_interval()
|
||||||
|
|
||||||
uci:delete('wireless', radio_name, 'disabled')
|
uci:delete('wireless', radio_name, 'disabled')
|
||||||
|
|
||||||
uci:set('wireless', radio_name, 'channel', channel)
|
set_channels(radio, radio_name, config)
|
||||||
|
|
||||||
uci:set('wireless', radio_name, 'htmode', htmode)
|
uci:set('wireless', radio_name, 'htmode', htmode)
|
||||||
uci:set('wireless', radio_name, 'country', site.regdom())
|
uci:set('wireless', radio_name, 'country', site.regdom())
|
||||||
|
|
||||||
@ -208,22 +222,17 @@ wireless.foreach_radio(uci, function(radio, index, config)
|
|||||||
uci:set('wireless', radio_name, 'legacy_rates', false)
|
uci:set('wireless', radio_name, 'legacy_rates', false)
|
||||||
configure_mesh_wireless(radio, index, config)
|
configure_mesh_wireless(radio, index, config)
|
||||||
elseif (band == '5g') then
|
elseif (band == '5g') then
|
||||||
|
-- ToDo: Remove in v2024.x
|
||||||
|
local hostapd_options = uci:get_list('wireless', radio_name, 'hostapd_options')
|
||||||
|
util.remove_from_set(hostapd_options, 'country3=0x4f')
|
||||||
|
uci:set_list('wireless', radio_name, 'hostapd_options', hostapd_options)
|
||||||
|
|
||||||
if is_outdoor() then
|
if is_outdoor() then
|
||||||
uci:set('wireless', radio_name, 'channels', config.outdoor_chanlist())
|
|
||||||
|
|
||||||
-- enforce outdoor channels by filtering the regdom for outdoor channels
|
-- enforce outdoor channels by filtering the regdom for outdoor channels
|
||||||
local hostapd_options = uci:get_list('wireless', radio_name, 'hostapd_options')
|
uci:set('wireless', radio_name, 'country3', '0x4f')
|
||||||
util.add_to_set(hostapd_options, 'country3=0x4f')
|
|
||||||
uci:set_list('wireless', radio_name, 'hostapd_options', hostapd_options)
|
|
||||||
|
|
||||||
configure_mesh_wireless(radio, index, config, true)
|
configure_mesh_wireless(radio, index, config, true)
|
||||||
else
|
else
|
||||||
uci:delete('wireless', radio_name, 'channels')
|
uci:delete('wireless', radio_name, 'country3')
|
||||||
|
|
||||||
local hostapd_options = uci:get_list('wireless', radio_name, 'hostapd_options')
|
|
||||||
util.remove_from_set(hostapd_options, 'country3=0x4f')
|
|
||||||
uci:set_list('wireless', radio_name, 'hostapd_options', hostapd_options)
|
|
||||||
|
|
||||||
configure_mesh_wireless(radio, index, config)
|
configure_mesh_wireless(radio, index, config)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -33,6 +33,14 @@ if #mesh_interfaces_other > 0 then
|
|||||||
else
|
else
|
||||||
iftype = 'bridge'
|
iftype = 'bridge'
|
||||||
ifname = mesh_interfaces_other
|
ifname = mesh_interfaces_other
|
||||||
|
|
||||||
|
for _, iface in ipairs(ifname) do
|
||||||
|
uci:section('network', 'device', nil, {
|
||||||
|
name = iface,
|
||||||
|
isolate = true,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
uci:section('network', 'interface', 'mesh_other', {
|
uci:section('network', 'interface', 'mesh_other', {
|
||||||
|
63
package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular
Executable file
63
package/gluon-core/luasrc/lib/gluon/upgrade/250-cellular
Executable file
@ -0,0 +1,63 @@
|
|||||||
|
#!/usr/bin/lua
|
||||||
|
|
||||||
|
local uci = require('simple-uci').cursor()
|
||||||
|
local platform = require 'gluon.platform'
|
||||||
|
|
||||||
|
if not platform.is_cellular_device() then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local function set_or_delete(package, section, option, val)
|
||||||
|
if val ~= nil and string.len(val) ~= 0 then
|
||||||
|
uci:set(package, section, option, val)
|
||||||
|
else
|
||||||
|
uci:delete(package, section, option)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local function setup_ncm_qmi(devpath, control_type, delay)
|
||||||
|
local pdptype = uci:get('gluon', 'cellular', 'pdptype')
|
||||||
|
|
||||||
|
local pincode = uci:get('gluon', 'cellular', 'pin')
|
||||||
|
local username = uci:get('gluon', 'cellular', 'username')
|
||||||
|
local password = uci:get('gluon', 'cellular', 'password')
|
||||||
|
|
||||||
|
uci:section('network', 'interface', 'cellular', {
|
||||||
|
proto = control_type,
|
||||||
|
device = devpath,
|
||||||
|
disabled = not uci:get_bool('gluon', 'cellular', 'enabled'),
|
||||||
|
pdptype = pdptype,
|
||||||
|
apn = uci:get('gluon', 'cellular', 'apn'),
|
||||||
|
})
|
||||||
|
|
||||||
|
if pdptype ~= 'IP' then
|
||||||
|
uci:set('network', 'cellular', 'ipv6', 'auto')
|
||||||
|
else
|
||||||
|
uci:delete('network', 'cellular', 'ipv6')
|
||||||
|
end
|
||||||
|
|
||||||
|
set_or_delete('network', 'cellular', 'pincode', pincode)
|
||||||
|
set_or_delete('network', 'cellular', 'username', username)
|
||||||
|
set_or_delete('network', 'cellular', 'password', password)
|
||||||
|
set_or_delete('network', 'cellular', 'delay', delay)
|
||||||
|
end
|
||||||
|
|
||||||
|
if platform.match('ath79', 'nand', {
|
||||||
|
'glinet,gl-xe300',
|
||||||
|
}) then
|
||||||
|
setup_ncm_qmi('/dev/cdc-wdm0', 'qmi', 15)
|
||||||
|
elseif platform.match('ath79', 'nand', {
|
||||||
|
'zte,mf281',
|
||||||
|
}) then
|
||||||
|
setup_ncm_qmi('/dev/ttyACM0', 'ncm', 15)
|
||||||
|
elseif platform.match('ipq40xx', 'generic', {
|
||||||
|
'glinet,gl-ap1300',
|
||||||
|
}) then
|
||||||
|
setup_ncm_qmi('/dev/cdc-wdm0', 'qmi', 15)
|
||||||
|
elseif platform.match('ramips', 'mt7621', {
|
||||||
|
'wavlink,ws-wn572hp3-4g',
|
||||||
|
}) then
|
||||||
|
setup_ncm_qmi('/dev/ttyUSB2', 'ncm', 15)
|
||||||
|
end
|
||||||
|
|
||||||
|
uci:save('network')
|
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/lua
|
#!/usr/bin/lua
|
||||||
|
|
||||||
local uci = require('simple-uci').cursor()
|
local uci = require('simple-uci').cursor()
|
||||||
|
local platform = require 'gluon.platform'
|
||||||
|
|
||||||
|
|
||||||
local defaults = uci:get_first('firewall', 'defaults')
|
local defaults = uci:get_first('firewall', 'defaults')
|
||||||
@ -16,8 +17,18 @@ local function reject_input_on_wan(zone)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function add_cellular_wan(zone)
|
||||||
|
if zone.name == 'wan' then
|
||||||
|
uci:set('firewall', zone['.name'], 'network', {'wan', 'wan6', 'cellular_4', 'cellular_6'})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
uci:foreach('firewall', 'zone', reject_input_on_wan)
|
uci:foreach('firewall', 'zone', reject_input_on_wan)
|
||||||
|
|
||||||
|
if platform.is_cellular_device() then
|
||||||
|
uci:foreach('firewall', 'zone', add_cellular_wan)
|
||||||
|
end
|
||||||
|
|
||||||
for _, zone in ipairs({'mesh', 'loc_client', 'wired_mesh'}) do
|
for _, zone in ipairs({'mesh', 'loc_client', 'wired_mesh'}) do
|
||||||
-- Other packages assign interfaces to these zones
|
-- Other packages assign interfaces to these zones
|
||||||
uci:section('firewall', 'zone', zone, {
|
uci:section('firewall', 'zone', zone, {
|
||||||
|
@ -12,7 +12,7 @@ uci:set('dhcp', dnsmasq, 'localise_queries', true)
|
|||||||
uci:set('dhcp', dnsmasq, 'localservice', false)
|
uci:set('dhcp', dnsmasq, 'localservice', false)
|
||||||
|
|
||||||
uci:set('dhcp', dnsmasq, 'server', dns.servers)
|
uci:set('dhcp', dnsmasq, 'server', dns.servers)
|
||||||
uci:delete('dhcp', dnsmasq, 'cachesize')
|
uci:set('dhcp', dnsmasq, 'cachesize', dns.cacheentries)
|
||||||
|
|
||||||
uci:delete('firewall', 'client_dns')
|
uci:delete('firewall', 'client_dns')
|
||||||
if dns.servers then
|
if dns.servers then
|
||||||
|
@ -26,6 +26,7 @@ local values = {
|
|||||||
.. ' / ' .. util.trim(util.readfile('/lib/gluon/site-version')) },
|
.. ' / ' .. util.trim(util.readfile('/lib/gluon/site-version')) },
|
||||||
{ 'Firmware release', util.trim(util.readfile('/lib/gluon/release')) },
|
{ 'Firmware release', util.trim(util.readfile('/lib/gluon/release')) },
|
||||||
{ 'Site', site.site_name() },
|
{ 'Site', site.site_name() },
|
||||||
|
{ 'Domain', uci:get('gluon', 'core', 'domain') or 'n/a' },
|
||||||
{ 'Public VPN key', pubkey or 'n/a' },
|
{ 'Public VPN key', pubkey or 'n/a' },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ end
|
|||||||
function M.is_outdoor_device()
|
function M.is_outdoor_device()
|
||||||
if M.match('ath79', 'generic', {
|
if M.match('ath79', 'generic', {
|
||||||
'devolo,dvl1750x',
|
'devolo,dvl1750x',
|
||||||
|
'librerouter,librerouter-v1',
|
||||||
'plasmacloud,pa300',
|
'plasmacloud,pa300',
|
||||||
'plasmacloud,pa300e',
|
'plasmacloud,pa300e',
|
||||||
'tplink,cpe210-v1',
|
'tplink,cpe210-v1',
|
||||||
@ -59,6 +60,31 @@ function M.is_outdoor_device()
|
|||||||
'mikrotik,sxtsq-5-ac',
|
'mikrotik,sxtsq-5-ac',
|
||||||
}) then
|
}) then
|
||||||
return true
|
return true
|
||||||
|
|
||||||
|
elseif M.match('ramips', 'mt7621', {
|
||||||
|
'wavlink,ws-wn572hp3-4g',
|
||||||
|
'zyxel,nwa55axe',
|
||||||
|
}) then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
|
function M.is_cellular_device()
|
||||||
|
if M.match('ath79', 'nand', {
|
||||||
|
'zte,mf281',
|
||||||
|
'glinet,gl-xe300',
|
||||||
|
}) then
|
||||||
|
return true
|
||||||
|
elseif M.match('ipq40xx', 'generic', {
|
||||||
|
'glinet,gl-ap1300',
|
||||||
|
}) then
|
||||||
|
return true
|
||||||
|
elseif M.match('ramips', 'mt7621', {
|
||||||
|
'wavlink,ws-wn572hp3-4g',
|
||||||
|
}) then
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
@ -131,9 +131,9 @@ function M.get_mesh_devices(uconn)
|
|||||||
local dump = uconn:call("network.interface", "dump", {})
|
local dump = uconn:call("network.interface", "dump", {})
|
||||||
local devices = {}
|
local devices = {}
|
||||||
for _, interface in ipairs(dump.interface) do
|
for _, interface in ipairs(dump.interface) do
|
||||||
if ( (interface.proto == "gluon_mesh") and interface.up ) then
|
if ( (interface.proto == "gluon_mesh") and interface.up ) then
|
||||||
table.insert(devices, interface.device)
|
table.insert(devices, interface.device)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return devices
|
return devices
|
||||||
end
|
end
|
||||||
|
@ -23,7 +23,7 @@ local function find_phy_by_path(path)
|
|||||||
path_prefix = 'platform/'
|
path_prefix = 'platform/'
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Get all available PHYs of the device and dertermine the one with the lowest index
|
-- Get all available PHYs of the device and determine the one with the lowest index
|
||||||
local phy_names = dirent.dir('/sys/devices/' .. path_prefix .. device_path .. '/ieee80211')
|
local phy_names = dirent.dir('/sys/devices/' .. path_prefix .. device_path .. '/ieee80211')
|
||||||
local device_phy_idxs = {}
|
local device_phy_idxs = {}
|
||||||
for _, v in ipairs(phy_names) do
|
for _, v in ipairs(phy_names) do
|
||||||
|
@ -10,104 +10,104 @@
|
|||||||
|
|
||||||
|
|
||||||
static struct json_object * gluon_site_udata(lua_State *L, int narg) {
|
static struct json_object * gluon_site_udata(lua_State *L, int narg) {
|
||||||
return *(struct json_object **)luaL_checkudata(L, narg, UDATA);
|
return *(struct json_object **)luaL_checkudata(L, narg, UDATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gluon_site_push_none(lua_State *L) {
|
static void gluon_site_push_none(lua_State *L) {
|
||||||
lua_pushlightuserdata(L, gluon_site_push_none);
|
lua_pushlightuserdata(L, gluon_site_push_none);
|
||||||
lua_rawget(L, LUA_REGISTRYINDEX);
|
lua_rawget(L, LUA_REGISTRYINDEX);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gluon_site_do_wrap(lua_State *L, struct json_object *obj) {
|
static void gluon_site_do_wrap(lua_State *L, struct json_object *obj) {
|
||||||
struct json_object **objp = lua_newuserdata(L, sizeof(struct json_object *));
|
struct json_object **objp = lua_newuserdata(L, sizeof(struct json_object *));
|
||||||
*objp = json_object_get(obj);
|
*objp = json_object_get(obj);
|
||||||
luaL_getmetatable(L, UDATA);
|
luaL_getmetatable(L, UDATA);
|
||||||
lua_setmetatable(L, -2);
|
lua_setmetatable(L, -2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gluon_site_wrap(lua_State *L, struct json_object *obj) {
|
static void gluon_site_wrap(lua_State *L, struct json_object *obj) {
|
||||||
if (obj)
|
if (obj)
|
||||||
gluon_site_do_wrap(L, obj);
|
gluon_site_do_wrap(L, obj);
|
||||||
else
|
else
|
||||||
gluon_site_push_none(L);
|
gluon_site_push_none(L);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int gluon_site_index(lua_State *L) {
|
static int gluon_site_index(lua_State *L) {
|
||||||
struct json_object *obj = gluon_site_udata(L, 1);
|
struct json_object *obj = gluon_site_udata(L, 1);
|
||||||
const char *key;
|
const char *key;
|
||||||
lua_Number lua_index;
|
lua_Number lua_index;
|
||||||
size_t index;
|
size_t index;
|
||||||
struct json_object *v = NULL;
|
struct json_object *v = NULL;
|
||||||
|
|
||||||
switch (json_object_get_type(obj)) {
|
switch (json_object_get_type(obj)) {
|
||||||
case json_type_object:
|
case json_type_object:
|
||||||
key = lua_tostring(L, 2);
|
key = lua_tostring(L, 2);
|
||||||
if (key)
|
if (key)
|
||||||
json_object_object_get_ex(obj, key, &v);
|
json_object_object_get_ex(obj, key, &v);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case json_type_array:
|
case json_type_array:
|
||||||
index = lua_index = lua_tonumber(L, 2);
|
index = lua_index = lua_tonumber(L, 2);
|
||||||
if (lua_index == (lua_Number)index && index >= 1)
|
if (lua_index == (lua_Number)index && index >= 1)
|
||||||
v = json_object_array_get_idx(obj, index-1);
|
v = json_object_array_get_idx(obj, index-1);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case json_type_string:
|
case json_type_string:
|
||||||
case json_type_null:
|
case json_type_null:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case json_type_boolean:
|
case json_type_boolean:
|
||||||
case json_type_int:
|
case json_type_int:
|
||||||
case json_type_double:
|
case json_type_double:
|
||||||
luaL_error(L, "attempt to index a number or boolean value");
|
luaL_error(L, "attempt to index a number or boolean value");
|
||||||
__builtin_unreachable();
|
__builtin_unreachable();
|
||||||
}
|
}
|
||||||
|
|
||||||
gluon_site_wrap(L, v);
|
gluon_site_wrap(L, v);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int gluon_site_call(lua_State *L) {
|
static int gluon_site_call(lua_State *L) {
|
||||||
struct json_object *obj = gluon_site_udata(L, 1);
|
struct json_object *obj = gluon_site_udata(L, 1);
|
||||||
|
|
||||||
if (obj) {
|
if (obj) {
|
||||||
lua_jsonc_push_json(L, obj);
|
lua_jsonc_push_json(L, obj);
|
||||||
} else {
|
} else {
|
||||||
if (lua_isnone(L, 2))
|
if (lua_isnone(L, 2))
|
||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
else
|
else
|
||||||
lua_pushvalue(L, 2);
|
lua_pushvalue(L, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int gluon_site_gc(lua_State *L) {
|
static int gluon_site_gc(lua_State *L) {
|
||||||
json_object_put(gluon_site_udata(L, 1));
|
json_object_put(gluon_site_udata(L, 1));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const luaL_reg R[] = {
|
static const luaL_reg R[] = {
|
||||||
{ "__index", gluon_site_index },
|
{ "__index", gluon_site_index },
|
||||||
{ "__call", gluon_site_call },
|
{ "__call", gluon_site_call },
|
||||||
{ "__gc", gluon_site_gc },
|
{ "__gc", gluon_site_gc },
|
||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
int luaopen_gluon_site(lua_State *L) {
|
int luaopen_gluon_site(lua_State *L) {
|
||||||
luaL_newmetatable(L, UDATA);
|
luaL_newmetatable(L, UDATA);
|
||||||
luaL_register(L, NULL, R);
|
luaL_register(L, NULL, R);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
|
|
||||||
/* Create "none" object */
|
/* Create "none" object */
|
||||||
lua_pushlightuserdata(L, gluon_site_push_none);
|
lua_pushlightuserdata(L, gluon_site_push_none);
|
||||||
gluon_site_do_wrap(L, NULL);
|
gluon_site_do_wrap(L, NULL);
|
||||||
lua_rawset(L, LUA_REGISTRYINDEX);
|
lua_rawset(L, LUA_REGISTRYINDEX);
|
||||||
|
|
||||||
struct json_object *site = gluonutil_load_site_config();
|
struct json_object *site = gluonutil_load_site_config();
|
||||||
gluon_site_wrap(L, site);
|
gluon_site_wrap(L, site);
|
||||||
json_object_put(site);
|
json_object_put(site);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -1,339 +0,0 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
Version 2, June 1991
|
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The licenses for most software are designed to take away your
|
|
||||||
freedom to share and change it. By contrast, the GNU General Public
|
|
||||||
License is intended to guarantee your freedom to share and change free
|
|
||||||
software--to make sure the software is free for all its users. This
|
|
||||||
General Public License applies to most of the Free Software
|
|
||||||
Foundation's software and to any other program whose authors commit to
|
|
||||||
using it. (Some other Free Software Foundation software is covered by
|
|
||||||
the GNU Lesser General Public License instead.) You can apply it to
|
|
||||||
your programs, too.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
this service if you wish), that you receive source code or can get it
|
|
||||||
if you want it, that you can change the software or use pieces of it
|
|
||||||
in new free programs; and that you know you can do these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to make restrictions that forbid
|
|
||||||
anyone to deny you these rights or to ask you to surrender the rights.
|
|
||||||
These restrictions translate to certain responsibilities for you if you
|
|
||||||
distribute copies of the software, or if you modify it.
|
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether
|
|
||||||
gratis or for a fee, you must give the recipients all the rights that
|
|
||||||
you have. You must make sure that they, too, receive or can get the
|
|
||||||
source code. And you must show them these terms so they know their
|
|
||||||
rights.
|
|
||||||
|
|
||||||
We protect your rights with two steps: (1) copyright the software, and
|
|
||||||
(2) offer you this license which gives you legal permission to copy,
|
|
||||||
distribute and/or modify the software.
|
|
||||||
|
|
||||||
Also, for each author's protection and ours, we want to make certain
|
|
||||||
that everyone understands that there is no warranty for this free
|
|
||||||
software. If the software is modified by someone else and passed on, we
|
|
||||||
want its recipients to know that what they have is not the original, so
|
|
||||||
that any problems introduced by others will not reflect on the original
|
|
||||||
authors' reputations.
|
|
||||||
|
|
||||||
Finally, any free program is threatened constantly by software
|
|
||||||
patents. We wish to avoid the danger that redistributors of a free
|
|
||||||
program will individually obtain patent licenses, in effect making the
|
|
||||||
program proprietary. To prevent this, we have made it clear that any
|
|
||||||
patent must be licensed for everyone's free use or not licensed at all.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
||||||
|
|
||||||
0. This License applies to any program or other work which contains
|
|
||||||
a notice placed by the copyright holder saying it may be distributed
|
|
||||||
under the terms of this General Public License. The "Program", below,
|
|
||||||
refers to any such program or work, and a "work based on the Program"
|
|
||||||
means either the Program or any derivative work under copyright law:
|
|
||||||
that is to say, a work containing the Program or a portion of it,
|
|
||||||
either verbatim or with modifications and/or translated into another
|
|
||||||
language. (Hereinafter, translation is included without limitation in
|
|
||||||
the term "modification".) Each licensee is addressed as "you".
|
|
||||||
|
|
||||||
Activities other than copying, distribution and modification are not
|
|
||||||
covered by this License; they are outside its scope. The act of
|
|
||||||
running the Program is not restricted, and the output from the Program
|
|
||||||
is covered only if its contents constitute a work based on the
|
|
||||||
Program (independent of having been made by running the Program).
|
|
||||||
Whether that is true depends on what the Program does.
|
|
||||||
|
|
||||||
1. You may copy and distribute verbatim copies of the Program's
|
|
||||||
source code as you receive it, in any medium, provided that you
|
|
||||||
conspicuously and appropriately publish on each copy an appropriate
|
|
||||||
copyright notice and disclaimer of warranty; keep intact all the
|
|
||||||
notices that refer to this License and to the absence of any warranty;
|
|
||||||
and give any other recipients of the Program a copy of this License
|
|
||||||
along with the Program.
|
|
||||||
|
|
||||||
You may charge a fee for the physical act of transferring a copy, and
|
|
||||||
you may at your option offer warranty protection in exchange for a fee.
|
|
||||||
|
|
||||||
2. You may modify your copy or copies of the Program or any portion
|
|
||||||
of it, thus forming a work based on the Program, and copy and
|
|
||||||
distribute such modifications or work under the terms of Section 1
|
|
||||||
above, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) You must cause the modified files to carry prominent notices
|
|
||||||
stating that you changed the files and the date of any change.
|
|
||||||
|
|
||||||
b) You must cause any work that you distribute or publish, that in
|
|
||||||
whole or in part contains or is derived from the Program or any
|
|
||||||
part thereof, to be licensed as a whole at no charge to all third
|
|
||||||
parties under the terms of this License.
|
|
||||||
|
|
||||||
c) If the modified program normally reads commands interactively
|
|
||||||
when run, you must cause it, when started running for such
|
|
||||||
interactive use in the most ordinary way, to print or display an
|
|
||||||
announcement including an appropriate copyright notice and a
|
|
||||||
notice that there is no warranty (or else, saying that you provide
|
|
||||||
a warranty) and that users may redistribute the program under
|
|
||||||
these conditions, and telling the user how to view a copy of this
|
|
||||||
License. (Exception: if the Program itself is interactive but
|
|
||||||
does not normally print such an announcement, your work based on
|
|
||||||
the Program is not required to print an announcement.)
|
|
||||||
|
|
||||||
These requirements apply to the modified work as a whole. If
|
|
||||||
identifiable sections of that work are not derived from the Program,
|
|
||||||
and can be reasonably considered independent and separate works in
|
|
||||||
themselves, then this License, and its terms, do not apply to those
|
|
||||||
sections when you distribute them as separate works. But when you
|
|
||||||
distribute the same sections as part of a whole which is a work based
|
|
||||||
on the Program, the distribution of the whole must be on the terms of
|
|
||||||
this License, whose permissions for other licensees extend to the
|
|
||||||
entire whole, and thus to each and every part regardless of who wrote it.
|
|
||||||
|
|
||||||
Thus, it is not the intent of this section to claim rights or contest
|
|
||||||
your rights to work written entirely by you; rather, the intent is to
|
|
||||||
exercise the right to control the distribution of derivative or
|
|
||||||
collective works based on the Program.
|
|
||||||
|
|
||||||
In addition, mere aggregation of another work not based on the Program
|
|
||||||
with the Program (or with a work based on the Program) on a volume of
|
|
||||||
a storage or distribution medium does not bring the other work under
|
|
||||||
the scope of this License.
|
|
||||||
|
|
||||||
3. You may copy and distribute the Program (or a work based on it,
|
|
||||||
under Section 2) in object code or executable form under the terms of
|
|
||||||
Sections 1 and 2 above provided that you also do one of the following:
|
|
||||||
|
|
||||||
a) Accompany it with the complete corresponding machine-readable
|
|
||||||
source code, which must be distributed under the terms of Sections
|
|
||||||
1 and 2 above on a medium customarily used for software interchange; or,
|
|
||||||
|
|
||||||
b) Accompany it with a written offer, valid for at least three
|
|
||||||
years, to give any third party, for a charge no more than your
|
|
||||||
cost of physically performing source distribution, a complete
|
|
||||||
machine-readable copy of the corresponding source code, to be
|
|
||||||
distributed under the terms of Sections 1 and 2 above on a medium
|
|
||||||
customarily used for software interchange; or,
|
|
||||||
|
|
||||||
c) Accompany it with the information you received as to the offer
|
|
||||||
to distribute corresponding source code. (This alternative is
|
|
||||||
allowed only for noncommercial distribution and only if you
|
|
||||||
received the program in object code or executable form with such
|
|
||||||
an offer, in accord with Subsection b above.)
|
|
||||||
|
|
||||||
The source code for a work means the preferred form of the work for
|
|
||||||
making modifications to it. For an executable work, complete source
|
|
||||||
code means all the source code for all modules it contains, plus any
|
|
||||||
associated interface definition files, plus the scripts used to
|
|
||||||
control compilation and installation of the executable. However, as a
|
|
||||||
special exception, the source code distributed need not include
|
|
||||||
anything that is normally distributed (in either source or binary
|
|
||||||
form) with the major components (compiler, kernel, and so on) of the
|
|
||||||
operating system on which the executable runs, unless that component
|
|
||||||
itself accompanies the executable.
|
|
||||||
|
|
||||||
If distribution of executable or object code is made by offering
|
|
||||||
access to copy from a designated place, then offering equivalent
|
|
||||||
access to copy the source code from the same place counts as
|
|
||||||
distribution of the source code, even though third parties are not
|
|
||||||
compelled to copy the source along with the object code.
|
|
||||||
|
|
||||||
4. You may not copy, modify, sublicense, or distribute the Program
|
|
||||||
except as expressly provided under this License. Any attempt
|
|
||||||
otherwise to copy, modify, sublicense or distribute the Program is
|
|
||||||
void, and will automatically terminate your rights under this License.
|
|
||||||
However, parties who have received copies, or rights, from you under
|
|
||||||
this License will not have their licenses terminated so long as such
|
|
||||||
parties remain in full compliance.
|
|
||||||
|
|
||||||
5. You are not required to accept this License, since you have not
|
|
||||||
signed it. However, nothing else grants you permission to modify or
|
|
||||||
distribute the Program or its derivative works. These actions are
|
|
||||||
prohibited by law if you do not accept this License. Therefore, by
|
|
||||||
modifying or distributing the Program (or any work based on the
|
|
||||||
Program), you indicate your acceptance of this License to do so, and
|
|
||||||
all its terms and conditions for copying, distributing or modifying
|
|
||||||
the Program or works based on it.
|
|
||||||
|
|
||||||
6. Each time you redistribute the Program (or any work based on the
|
|
||||||
Program), the recipient automatically receives a license from the
|
|
||||||
original licensor to copy, distribute or modify the Program subject to
|
|
||||||
these terms and conditions. You may not impose any further
|
|
||||||
restrictions on the recipients' exercise of the rights granted herein.
|
|
||||||
You are not responsible for enforcing compliance by third parties to
|
|
||||||
this License.
|
|
||||||
|
|
||||||
7. If, as a consequence of a court judgment or allegation of patent
|
|
||||||
infringement or for any other reason (not limited to patent issues),
|
|
||||||
conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot
|
|
||||||
distribute so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you
|
|
||||||
may not distribute the Program at all. For example, if a patent
|
|
||||||
license would not permit royalty-free redistribution of the Program by
|
|
||||||
all those who receive copies directly or indirectly through you, then
|
|
||||||
the only way you could satisfy both it and this License would be to
|
|
||||||
refrain entirely from distribution of the Program.
|
|
||||||
|
|
||||||
If any portion of this section is held invalid or unenforceable under
|
|
||||||
any particular circumstance, the balance of the section is intended to
|
|
||||||
apply and the section as a whole is intended to apply in other
|
|
||||||
circumstances.
|
|
||||||
|
|
||||||
It is not the purpose of this section to induce you to infringe any
|
|
||||||
patents or other property right claims or to contest validity of any
|
|
||||||
such claims; this section has the sole purpose of protecting the
|
|
||||||
integrity of the free software distribution system, which is
|
|
||||||
implemented by public license practices. Many people have made
|
|
||||||
generous contributions to the wide range of software distributed
|
|
||||||
through that system in reliance on consistent application of that
|
|
||||||
system; it is up to the author/donor to decide if he or she is willing
|
|
||||||
to distribute software through any other system and a licensee cannot
|
|
||||||
impose that choice.
|
|
||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
|
||||||
be a consequence of the rest of this License.
|
|
||||||
|
|
||||||
8. If the distribution and/or use of the Program is restricted in
|
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
|
||||||
original copyright holder who places the Program under this License
|
|
||||||
may add an explicit geographical distribution limitation excluding
|
|
||||||
those countries, so that distribution is permitted only in or among
|
|
||||||
countries not thus excluded. In such case, this License incorporates
|
|
||||||
the limitation as if written in the body of this License.
|
|
||||||
|
|
||||||
9. The Free Software Foundation may publish revised and/or new versions
|
|
||||||
of the General Public License from time to time. Such new versions will
|
|
||||||
be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Program
|
|
||||||
specifies a version number of this License which applies to it and "any
|
|
||||||
later version", you have the option of following the terms and conditions
|
|
||||||
either of that version or of any later version published by the Free
|
|
||||||
Software Foundation. If the Program does not specify a version number of
|
|
||||||
this License, you may choose any version ever published by the Free Software
|
|
||||||
Foundation.
|
|
||||||
|
|
||||||
10. If you wish to incorporate parts of the Program into other free
|
|
||||||
programs whose distribution conditions are different, write to the author
|
|
||||||
to ask for permission. For software which is copyrighted by the Free
|
|
||||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
|
||||||
make exceptions for this. Our decision will be guided by the two goals
|
|
||||||
of preserving the free status of all derivatives of our free software and
|
|
||||||
of promoting the sharing and reuse of software generally.
|
|
||||||
|
|
||||||
NO WARRANTY
|
|
||||||
|
|
||||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
||||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
||||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
|
||||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
|
||||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
|
||||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
|
||||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
|
||||||
REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
|
||||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
||||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
|
||||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
|
||||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
||||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGES.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
convey the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License along
|
|
||||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
||||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If the program is interactive, make it output a short notice like this
|
|
||||||
when it starts in an interactive mode:
|
|
||||||
|
|
||||||
Gnomovision version 69, Copyright (C) year name of author
|
|
||||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it
|
|
||||||
under certain conditions; type `show c' for details.
|
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
||||||
parts of the General Public License. Of course, the commands you use may
|
|
||||||
be called something other than `show w' and `show c'; they could even be
|
|
||||||
mouse-clicks or menu items--whatever suits your program.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or your
|
|
||||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
||||||
necessary. Here is a sample; alter the names:
|
|
||||||
|
|
||||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
|
||||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
|
||||||
|
|
||||||
<signature of Ty Coon>, 1 April 1989
|
|
||||||
Ty Coon, President of Vice
|
|
||||||
|
|
||||||
This General Public License does not permit incorporating your program into
|
|
||||||
proprietary programs. If your program is a subroutine library, you may
|
|
||||||
consider it more useful to permit linking proprietary applications with the
|
|
||||||
library. If this is what you want to do, use the GNU Lesser General
|
|
||||||
Public License instead of this License.
|
|
@ -1,7 +1,5 @@
|
|||||||
# Copyright (c) 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
# SPDX-FileCopyrightText: 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
||||||
#
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
|
||||||
# License-Filename: LICENSE
|
|
||||||
|
|
||||||
all: gluon-arp-limiter
|
all: gluon-arp-limiter
|
||||||
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
/*
|
// SPDX-FileCopyrightText: 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
||||||
* Copyright (c) 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-2.0+
|
|
||||||
* License-Filename: LICENSE
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -14,7 +10,7 @@
|
|||||||
#include "lookup3.h"
|
#include "lookup3.h"
|
||||||
|
|
||||||
static struct addr_list *addr_node_alloc(void *addr,
|
static struct addr_list *addr_node_alloc(void *addr,
|
||||||
struct addr_store *store)
|
struct addr_store *store)
|
||||||
{
|
{
|
||||||
struct addr_list *node;
|
struct addr_list *node;
|
||||||
size_t addr_len = store->addr_len;
|
size_t addr_len = store->addr_len;
|
||||||
@ -31,8 +27,8 @@ static struct addr_list *addr_node_alloc(void *addr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct addr_list *addr_list_search(void *addr,
|
static struct addr_list *addr_list_search(void *addr,
|
||||||
size_t addr_len,
|
size_t addr_len,
|
||||||
struct addr_list *list)
|
struct addr_list *list)
|
||||||
{
|
{
|
||||||
struct addr_list *node = list;
|
struct addr_list *node = list;
|
||||||
struct addr_list *ret = NULL;
|
struct addr_list *ret = NULL;
|
||||||
@ -77,7 +73,7 @@ int addr_store_add(void *addr, struct addr_store *store)
|
|||||||
{
|
{
|
||||||
struct addr_list **bucket = addr_store_get_bucket(addr, store);
|
struct addr_list **bucket = addr_store_get_bucket(addr, store);
|
||||||
struct addr_list *node = addr_list_search(addr, store->addr_len,
|
struct addr_list *node = addr_list_search(addr, store->addr_len,
|
||||||
*bucket);
|
*bucket);
|
||||||
|
|
||||||
if (node) {
|
if (node) {
|
||||||
node->tic = clock;
|
node->tic = clock;
|
||||||
@ -95,9 +91,9 @@ int addr_store_add(void *addr, struct addr_store *store)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int addr_store_init(size_t addr_len,
|
int addr_store_init(size_t addr_len,
|
||||||
void (*destructor)(struct addr_list *),
|
void (*destructor)(struct addr_list *),
|
||||||
char *(*ntoa)(void *),
|
char *(*ntoa)(void *),
|
||||||
struct addr_store *store)
|
struct addr_store *store)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
/*
|
// SPDX-FileCopyrightText: 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
||||||
* Copyright (c) 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-2.0+
|
|
||||||
* License-Filename: LICENSE
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _ADDR_STORE_H_
|
#ifndef _ADDR_STORE_H_
|
||||||
#define _ADDR_STORE_H_
|
#define _ADDR_STORE_H_
|
||||||
@ -24,9 +20,9 @@ struct addr_store {
|
|||||||
};
|
};
|
||||||
|
|
||||||
int addr_store_init(size_t addr_len,
|
int addr_store_init(size_t addr_len,
|
||||||
void (*destructor)(struct addr_list *),
|
void (*destructor)(struct addr_list *),
|
||||||
char *(*ntoa)(void *),
|
char *(*ntoa)(void *),
|
||||||
struct addr_store *store);
|
struct addr_store *store);
|
||||||
int addr_store_add(void *addr, struct addr_store *store);
|
int addr_store_add(void *addr, struct addr_store *store);
|
||||||
void addr_store_cleanup(struct addr_store *store);
|
void addr_store_cleanup(struct addr_store *store);
|
||||||
|
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
/*
|
// SPDX-FileCopyrightText: 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
||||||
* Copyright (c) 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-2.0+
|
|
||||||
* License-Filename: LICENSE
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -43,8 +39,8 @@ static void ebt_ip_call(char *mod, struct in_addr ip)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
snprintf(str, sizeof(str),
|
snprintf(str, sizeof(str),
|
||||||
EBTABLES " %s ARP_LIMIT_DATCHECK -p ARP --arp-ip-dst %s -j mark --mark-or 0x2 --mark-target RETURN",
|
EBTABLES " %s ARP_LIMIT_DATCHECK -p ARP --arp-ip-dst %s -j mark --mark-or 0x2 --mark-target RETURN",
|
||||||
mod, inet_ntoa(ip));
|
mod, inet_ntoa(ip));
|
||||||
|
|
||||||
ret = system(str);
|
ret = system(str);
|
||||||
if (ret)
|
if (ret)
|
||||||
@ -66,8 +62,8 @@ static void ebt_mac_limit_call(char *mod, struct mac_addr *mac)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
snprintf(str, sizeof(str),
|
snprintf(str, sizeof(str),
|
||||||
EBTABLES " %s ARP_LIMIT_TLCHECK --source %s --limit 6/min --limit-burst 50 -j RETURN",
|
EBTABLES " %s ARP_LIMIT_TLCHECK --source %s --limit 6/min --limit-burst 50 -j RETURN",
|
||||||
mod, mac_ntoa(mac));
|
mod, mac_ntoa(mac));
|
||||||
|
|
||||||
ret = system(str);
|
ret = system(str);
|
||||||
if (ret)
|
if (ret)
|
||||||
@ -82,8 +78,8 @@ static void ebt_mac_ret_call(char *mod, struct mac_addr *mac, int add)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
snprintf(str, sizeof(str),
|
snprintf(str, sizeof(str),
|
||||||
EBTABLES " %s ARP_LIMIT_TLCHECK %s --source %s -j DROP",
|
EBTABLES " %s ARP_LIMIT_TLCHECK %s --source %s -j DROP",
|
||||||
mod, add ? "2" : "", mac_ntoa(mac));
|
mod, add ? "2" : "", mac_ntoa(mac));
|
||||||
|
|
||||||
ret = system(str);
|
ret = system(str);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
/*
|
// SPDX-FileCopyrightText: 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
||||||
* Copyright (c) 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-2.0+
|
|
||||||
* License-Filename: LICENSE
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _GLUON_ARP_LIMITER_H_
|
#ifndef _GLUON_ARP_LIMITER_H_
|
||||||
#define _GLUON_ARP_LIMITER_H_
|
#define _GLUON_ARP_LIMITER_H_
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,5 @@
|
|||||||
/*
|
// SPDX-FileCopyrightText: 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
||||||
* Copyright (c) 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-2.0+
|
|
||||||
* License-Filename: LICENSE
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <linux/if_ether.h>
|
#include <linux/if_ether.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -25,8 +21,8 @@ int mac_aton(const char *cp, struct mac_addr *mac)
|
|||||||
memset(&m, 0, sizeof(m));
|
memset(&m, 0, sizeof(m));
|
||||||
|
|
||||||
ret = sscanf(cp, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx",
|
ret = sscanf(cp, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx",
|
||||||
&m.storage[0], &m.storage[1], &m.storage[2],
|
&m.storage[0], &m.storage[1], &m.storage[2],
|
||||||
&m.storage[3], &m.storage[4], &m.storage[5]);
|
&m.storage[3], &m.storage[4], &m.storage[5]);
|
||||||
|
|
||||||
if (ret != ETH_ALEN)
|
if (ret != ETH_ALEN)
|
||||||
return 0;
|
return 0;
|
||||||
@ -40,8 +36,8 @@ char *mac_ntoa(struct mac_addr *mac)
|
|||||||
unsigned char *m = mac->storage;
|
unsigned char *m = mac->storage;
|
||||||
|
|
||||||
snprintf(mntoa_buf, sizeof(mntoa_buf),
|
snprintf(mntoa_buf, sizeof(mntoa_buf),
|
||||||
"%02x:%02x:%02x:%02x:%02x:%02x",
|
"%02x:%02x:%02x:%02x:%02x:%02x",
|
||||||
m[0], m[1], m[2], m[3], m[4], m[5]);
|
m[0], m[1], m[2], m[3], m[4], m[5]);
|
||||||
|
|
||||||
return mntoa_buf;
|
return mntoa_buf;
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
/*
|
// SPDX-FileCopyrightText: 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
||||||
* Copyright (c) 2017 Linus Lüssing <linus.luessing@c0d3.blue>
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: GPL-2.0+
|
|
||||||
* License-Filename: LICENSE
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _MAC_H_
|
#ifndef _MAC_H_
|
||||||
#define _MAC_H_
|
#define _MAC_H_
|
||||||
|
@ -6,7 +6,7 @@ include ../gluon.mk
|
|||||||
|
|
||||||
define Package/gluon-l3roamd
|
define Package/gluon-l3roamd
|
||||||
TITLE:=Configure l3roamd for babel
|
TITLE:=Configure l3roamd for babel
|
||||||
DEPENDS:=+gluon-core +l3roamd +uc
|
DEPENDS:=+gluon-core +gluon-mesh-layer3-common +l3roamd +uc
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackageGluon,gluon-l3roamd))
|
$(eval $(call BuildPackageGluon,gluon-l3roamd))
|
||||||
|
@ -1 +0,0 @@
|
|||||||
need_string_match(in_domain({'node_client_prefix6'}), '^[%x:]+/64$', false)
|
|
@ -43,7 +43,7 @@ start_service () {
|
|||||||
local prefix4="$(lua -e 'prefix4 = require("gluon.site").prefix4() if prefix4 then print(" -p " .. prefix4) end')"
|
local prefix4="$(lua -e 'prefix4 = require("gluon.site").prefix4() if prefix4 then print(" -p " .. prefix4) end')"
|
||||||
local prefix6="$(lua -e 'print(" -p " .. require("gluon.site").prefix6())')"
|
local prefix6="$(lua -e 'print(" -p " .. require("gluon.site").prefix6())')"
|
||||||
local localip="$(uci get network.loopback.ip6addr | cut -d/ -f1)"
|
local localip="$(uci get network.loopback.ip6addr | cut -d/ -f1)"
|
||||||
local roamingprefix="$(lua -e 'roamingprefix = require("gluon.site").node_client_prefix6() if roamingprefix then print(" -P " .. roamingprefix) end')"
|
local roamingprefix="$(lua -e 'print(" -P " .. require("gluon.l3").node_client_prefix6())')"
|
||||||
|
|
||||||
/sbin/sysctl -w net.ipv6.neigh.default.gc_thresh1=2
|
/sbin/sysctl -w net.ipv6.neigh.default.gc_thresh1=2
|
||||||
/sbin/sysctl -w net.ipv4.neigh.default.gc_thresh1=2
|
/sbin/sysctl -w net.ipv4.neigh.default.gc_thresh1=2
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
need_string_match(in_domain({'node_prefix6'}), '^[%x:]+/64$')
|
need_string_match(in_domain({'node_prefix6'}), '^[%x:]+/64$')
|
||||||
need_string_match(in_domain({'node_client_prefix6'}), '^[%x:]+/64$')
|
|
||||||
|
|
||||||
need_string_match(in_domain({'next_node', 'ip6'}), '^[%x:]+$', false)
|
need_string_match(in_domain({'next_node', 'ip6'}), '^[%x:]+$', false)
|
||||||
need_string_match(in_domain({'next_node', 'ip4'}), '^%d+.%d+.%d+.%d+$', false)
|
need_string_match(in_domain({'next_node', 'ip4'}), '^%d+.%d+.%d+.%d+$', false)
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo dump | nc ::1 33123 | grep -qF "add neighbour"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user