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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infrastruktur
ext-respondd
Commits
572d17d0
Commit
572d17d0
authored
5 years ago
by
GoliathLabs
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/ffggrz/ext-respondd
parents
aca22edd
5bfa760d
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 @
572d17d0
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
lsb_release
*
lsb_release
*
ethtool
*
ethtool
*
python3.3
*
python3
(>= 3
.3
)
*
python3-netifaces
*
python3-netifaces
*
batman-adv
*
batman-adv
...
@@ -15,36 +15,46 @@
...
@@ -15,36 +15,46 @@
## Setup
## Setup
### Debian-Dependencies
### Debian-Dependencies
```
```
sh
apt-get
install
python3-netifaces ethtool lsb-release
apt-get
install
python3-netifaces ethtool lsb-release
```
```
### config.json
### config.json
Start parameter for ext-respondd.
Start parameter for ext-respondd.
Copy
`config.json.example`
to
`config.json`
and change it to match your server configuration.
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)
*
`"addr"`
(
`str`
/ _default:_
`ff05::2:1001`
)
*
`bridge`
(string) (Optional: default br-client)
-
address to listen to
*
`mesh-wlan`
(array of string) (Optional: Ad-Hoc batman-Mesh)
*
`"port"`
(
`str`
/ _default:_
`1001`
)
*
`mesh-vpn`
(array of string) (Optional: fastd, GRE, L2TP batman-Mesh)
-
port to listen to
*
`fastd_socket`
(string) (Optional: needed for uplink-flag)
*
`"batman"`
(
`str`
/ _default:_
`bat0`
)
*
`rate_limit`
(integer) (Optional: limit incoming requests per minutes)
-
batman-adv interface
*
`rate_limit_burst`
(integer) (Optional: allow burst requests)
*
`"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
### alias.json
Aliases to overwrite the returned server data.
Aliases to overwrite the returned server data.
Copy
`alias.json.example`
to
`alias.json`
and input e.g. owner information.
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
)
.
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
### ext-respondd.service
Register ext-respondd as a systemd service
Register ext-respondd as a systemd service
```
```
sh
cp
ext-respondd.service.example /lib/systemd/system/ext-respondd.service
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
enable
ext-respondd
systemctl start ext-respondd
systemctl start ext-respondd
```
```
...
@@ -57,5 +67,5 @@ Collecting data from respondd:
...
@@ -57,5 +67,5 @@ Collecting data from respondd:
Respondd for servers:
Respondd for servers:
*
[
ffho-respondd
](
https://github.com/FreifunkHochstift/ffho-respondd
)
from Freifunk Hochstift (fork of ext-respondd)
*
[
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
)
*
[
py-respondd
](
https://github.com/descilla/py-respondd
)
This diff is collapsed.
Click to expand it.
ext-respondd.service.example
+
1
−
1
View file @
572d17d0
[Unit]
[Unit]
Description=ext-respondd (respondd status for servers)
Description=ext-respondd (respondd status for servers)
After=syslog.target network.target
After=syslog.target network
-online
.target
[Service]
[Service]
Type=simple
Type=simple
...
...
This diff is collapsed.
Click to expand it.
lib/helper.py
+
1
−
1
View file @
572d17d0
...
@@ -6,7 +6,7 @@ import sys
...
@@ -6,7 +6,7 @@ import sys
def
call
(
cmdnargs
):
def
call
(
cmdnargs
):
try
:
try
:
output
=
subprocess
.
check_output
(
cmdnargs
,
stderr
=
subprocess
.
STDOUT
)
output
=
subprocess
.
check_output
(
cmdnargs
,
stderr
=
None
)
lines
=
output
.
splitlines
()
lines
=
output
.
splitlines
()
lines
=
[
line
.
decode
(
'
utf-8
'
)
for
line
in
lines
]
lines
=
[
line
.
decode
(
'
utf-8
'
)
for
line
in
lines
]
except
subprocess
.
CalledProcessError
as
err
:
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