====== Konfiguration ====== ===== Dienste ===== ^Name ^Zweck ^ffmd-repo ^Ort ^inst. Version ^autostart ^sonstiges ^ |[[https://github.com/tcatm/alfred|alfred]] |mesh-metadaten |[[http://github.com/freifunkmd/alfred|alfred]] | | | |[[https://github.com/tcatm/alfred|alfred]] |mesh-metadaten |[[http://github.com/freifunkmd/alfred|alfred]] | |[[https://github.com/tcatm/alfred-json|alfred-json]] |json aus alfred erstellen |[[https://github.com/FreifunkMD/alfred-json|alfred-json]] | |0.2-5-gad51202 | |[[http://www.open-mesh.org/projects/batman-adv/wiki/Doc-overview|batman-adv]] |mesh-protokoll |- | | |[[https://projects.universe-factory.net/projects/fastd/wiki|fastd]] |mesh-protokoll |- | |v17 | |[[https://github.com/freifunkhamburg/ffmap-backend|ffmap-backend]] |backend zu Map |[[https://github.com/FreifunkMD/ffmap-backend|ffmap-backend]] |/opt/ffmap-backend/ | |[[https://github.com/freifunkhamburg/ffmap-d3|ffmap-d3]] |map |[[https://github.com/FreifunkMD/ffmap-d3|ffmap-d3]] |/var/www/map/ | | |anpassen der neuen Version (grüner/blauer Punkt) \\ /var/www/map/config.json Variable: current-firmware | |[[https://github.com/FreifunkMD/statistik-panel|ffmap-stat-panel]] |Statistik für Panel im Space |- |/opt/ffmap-stat-panel \\ /var/www/map | |[[http://github.com/baldo/ffffng/|ffffng]] |Registerformular |[[https://github.com/FreifunkMD/ffffng|ffffng]] |/home/fastdform/opt/ | |[[https://openvpn.net/|openvpn]] ===== Reihenfolge der Dienste ===== * siehe https://pad.n39.eu/p/freifunk-gateway-startup bzw. https://pad.n39.eu/p/freifunk21 * openvpn (erzeugt device mullvad) * fastd (erzeugt device ffmd-mesh-vpn, erzeugt nach startup bat0 * tinc (erzeugt device icvpn) * bird * bird6 * isc-dhcp-server ( (DHCP nur auf GW1 ) * unbounds * radvd * alfred (alfred nur auf GW1 ) * batadv-vis geprüft am 09.06.2020 ===== Start der notwendigen Dienste nach reboot ===== * die Datei start-gateway.sh ausführen (als root) #!/bin/sh service openvpn start sleep 5 service fastd start sleep 5 #service tinc start #sleep 5 #service bird start #service bird6 start service isc-dhcp-server start service pdns start service unbound start service radvd start service alfred start service batadv-vis start * [[freifunk:gateway:example|example Konfiguration]] ===== WEB1: prometheus (Statistik-Datenbank) ===== * http:%%//%%37.120.170.49:9090/graph -> Oberfläche * config: /etc/prometheus/prometheus.yml global: scrape_interval: 1m scrape_timeout: 10s evaluation_interval: 1m scrape_configs: - job_name: prometheus honor_timestamps: true scrape_interval: 1m scrape_timeout: 10s metrics_path: /metrics scheme: http static_configs: - targets: - localhost:9090 - job_name: hopglass honor_timestamps: true scrape_interval: 1m scrape_timeout: 10s metrics_path: /metrics scheme: http static_configs: - targets: - web1.md.freifunk.net:4000 * systemctl start/stop prometheus-systemd * liegt unter: /etc/systemd/system/prometheus-systemd.service [Unit] Description=Prometheus service After=network.target [Service] User=prometheus Group=nogroup ExecStart=/usr/sbin/prometheus -config.file /etc/prometheus/prometheus.yml -storage.local.path /var/lib/prometheus/data -web.console.templates /etc/prometheus/consoles -web.console.libraries /etc/prometheus/console_libraries -storage.local.retention 760h0m0s ExecReload=/bin/kill -HUP $MAINPID Restart=always [Install] WantedBy=multi-user.target