Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ext-respondd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infrastruktur
ext-respondd
Commits
5f4a5a30
Unverified
Commit
5f4a5a30
authored
4 years ago
by
Annika Wickert
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #4 from GoliathLabs/master
Merge with upstream
parents
aca22edd
572d17d0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+32
-22
32 additions, 22 deletions
README.md
ext-respondd.service.example
+1
-1
1 addition, 1 deletion
ext-respondd.service.example
lib/helper.py
+1
-1
1 addition, 1 deletion
lib/helper.py
with
34 additions
and
24 deletions
README.md
+
32
−
22
View file @
5f4a5a30
...
...
@@ -7,7 +7,7 @@
*
lsb_release
*
ethtool
*
python3.3
*
python3
(>= 3
.3
)
*
python3-netifaces
*
batman-adv
...
...
@@ -15,36 +15,46 @@
## Setup
### Debian-Dependencies
```
```
sh
apt-get
install
python3-netifaces ethtool lsb-release
```
### config.json
Start parameter for ext-respondd.
Copy
`config.json.example`
to
`config.json`
and change it to match your server configuration.
(
`cp config.json.example config.json`
)
*
`batman`
(string) (Optional: default bat0)
*
`bridge`
(string) (Optional: default br-client)
*
`mesh-wlan`
(array of string) (Optional: Ad-Hoc batman-Mesh)
*
`mesh-vpn`
(array of string) (Optional: fastd, GRE, L2TP batman-Mesh)
*
`fastd_socket`
(string) (Optional: needed for uplink-flag)
*
`rate_limit`
(integer) (Optional: limit incoming requests per minutes)
*
`rate_limit_burst`
(integer) (Optional: allow burst requests)
*
`"addr"`
(
`str`
/ _default:_
`ff05::2:1001`
)
-
address to listen to
*
`"port"`
(
`str`
/ _default:_
`1001`
)
-
port to listen to
*
`"batman"`
(
`str`
/ _default:_
`bat0`
)
-
batman-adv interface
*
`"bridge"`
(
`str`
/ _default:_
`br-client`
)
-
client bridge
*
`"mesh-wlan"`
(
`str[]`
)
-
ad hoc batman-mesh
*
`"mesh-vpn"`
(
`str[]`
)
-
fastd, GRE, L2TP batman-Mesh
*
`"fastd_socket"`
(
`str`
)
-
needed for uplink-flag
*
`"rate_limit"`
(
`int`
/ _default:_
`30`
)
-
limit incoming requests per minutes
*
`"rate_limit_burst"`
(
`int`
/ _default:_
`10`
)
-
allow burst requests
### alias.json
Aliases to overwrite the returned server data.
Copy
`alias.json.example`
to
`alias.json`
and input e.g. owner information.
(
`cp alias.json.example alias.json`
)
The JSON content matches one block of the nodes.json, which is outputted by e.g. the
[
HopGlass-Server
](
https://github.com/hopglass/hopglass-server
)
.
### ext-respondd.service
Register ext-respondd as a systemd service
```
```
sh
cp
ext-respondd.service.example /lib/systemd/system/ext-respondd.service
! modify the path inside of the ext-respondd.service !
# modify the path inside of the ext-respondd.service if necessary
systemctl daemon-reload
systemctl
enable
ext-respondd
systemctl start ext-respondd
```
...
...
@@ -57,5 +67,5 @@ Collecting data from respondd:
Respondd for servers:
*
[
ffho-respondd
](
https://github.com/FreifunkHochstift/ffho-respondd
)
from Freifunk Hochstift (fork of ext-respondd)
*
[
ffnord-alfred
-announce
](
https://github.com/ffnord/
ffnord-alfred
-announce
)
from Frei
F
unkNord
*
[
mesh
-announce
](
https://github.com/ffnord/
mesh
-announce
)
from Frei
f
unk
Nord
*
[
py-respondd
](
https://github.com/descilla/py-respondd
)
This diff is collapsed.
Click to expand it.
ext-respondd.service.example
+
1
−
1
View file @
5f4a5a30
[Unit]
Description=ext-respondd (respondd status for servers)
After=syslog.target network.target
After=syslog.target network
-online
.target
[Service]
Type=simple
...
...
This diff is collapsed.
Click to expand it.
lib/helper.py
+
1
−
1
View file @
5f4a5a30
...
...
@@ -6,7 +6,7 @@ import sys
def
call
(
cmdnargs
):
try
:
output
=
subprocess
.
check_output
(
cmdnargs
,
stderr
=
subprocess
.
STDOUT
)
output
=
subprocess
.
check_output
(
cmdnargs
,
stderr
=
None
)
lines
=
output
.
splitlines
()
lines
=
[
line
.
decode
(
'
utf-8
'
)
for
line
in
lines
]
except
subprocess
.
CalledProcessError
as
err
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment