Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
freifunk:server:gw1.batman [2021-02-12 19:50] – kwasir | freifunk:server:gw1.batman [2021-02-17 18:58] (aktuell) – [Debugging] kwasir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Administration GW01.Batman ====== | ||
+ | Alles die Administration von [[freifunk: | ||
+ | |||
+ | Es ist das Paket [[http:// | ||
+ | |||
+ | sudo etckeeper commit | ||
+ | |||
+ | und kurz eine Commit Message eingeben. Das Repository ist ausschließlich lokal vorhanden und wird nicht nach draußen gepusht! | ||
+ | |||
+ | ===== Administratoren ===== | ||
+ | (aka Nutzer mit sudo Rechten) | ||
+ | * [[user: | ||
+ | * nold | ||
+ | * kwasir | ||
+ | * | ||
+ | |||
+ | ===== Installierte Dienste ===== | ||
+ | * Node-Exporter | ||
+ | * ISC-DHCP Server | ||
+ | * Bird & Bird6 | ||
+ | * FASTD == > [[freifunk: | ||
+ | * alfred | ||
+ | * unbounds | ||
+ | ---- | ||
+ | |||
+ | ===== FASTD ===== | ||
+ | |||
+ | ==== Debugging ===== | ||
+ | ^Command ^Description^ | ||
+ | |batctl o |Show Originators| | ||
+ | |batctl nn | show nc_nodes | | ||
+ | |batctl bbt| backbonetanle| | ||
+ | |batctl ping 1e: | ||
+ | |||
+ | |||
+ | ===== Bird/ Bird6 ===== | ||
+ | |||
+ | |||
+ | bird ist eine Open-Source-Implementierung eines IPv4 als auch IPv6-fähigen TCP/ | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ==== Debuuging ==== | ||
+ | bridc => IPv4 | ||
+ | birdc6 => IPv6 | ||
+ | === Show Status === | ||
+ | # birdc show status | ||
+ | BIRD 1.3.7 ready. | ||
+ | BIRD 1.3.7 | ||
+ | Router ID is 10.139.0.9 | ||
+ | Current server time is 14-02-2021 19:42:33 | ||
+ | Last reboot on 11-02-2021 22:19:21 | ||
+ | Last reconfiguration on 11-02-2021 22:19:21 | ||
+ | Daemon is up and running | ||
+ | |||
+ | === Show Interfaces === | ||
+ | == IPV4== | ||
+ | # birdc show interfaces | ||
+ | BIRD 1.3.7 ready. | ||
+ | lo up (index=1) | ||
+ | MultiAccess AdminUp LinkUp Loopback Ignored MTU=16436 | ||
+ | 127.0.0.1/ | ||
+ | eth0 up (index=2) | ||
+ | MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 | ||
+ | 37.120.160.206/ | ||
+ | gre0 DOWN (index=3) | ||
+ | MultiAccess AdminDown LinkDown MTU=1476 | ||
+ | backend-bab1 DOWN (index=4) | ||
+ | PtP Multicast AdminUp LinkUp MTU=1400 | ||
+ | backend-gw2 DOWN (index=5) | ||
+ | PtP Multicast AdminUp LinkUp MTU=1400 | ||
+ | backend-web DOWN (index=6) | ||
+ | PtP Multicast AdminUp LinkUp MTU=1400 | ||
+ | mesh-vpn DOWN (index=7) | ||
+ | MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1312 | ||
+ | bat0 up (index=8) | ||
+ | MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 | ||
+ | 10.139.0.9/ | ||
+ | 10.139.0.53/ | ||
+ | mesh-vpn-backbo DOWN (index=9) | ||
+ | MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1426 | ||
+ | ==ipv6== | ||
+ | # birdc6 show interfaces | ||
+ | BIRD 1.3.7 ready. | ||
+ | lo up (index=1) | ||
+ | MultiAccess AdminUp LinkUp Loopback Ignored MTU=16436 | ||
+ | ::1/128 (Primary, scope host) | ||
+ | eth0 up (index=2) | ||
+ | MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 | ||
+ | 2a03: | ||
+ | fe80:: | ||
+ | gre0 DOWN (index=3) | ||
+ | MultiAccess AdminDown LinkDown MTU=1476 | ||
+ | backend-bab1 up (index=4) | ||
+ | PtP Multicast AdminUp LinkUp MTU=1400 | ||
+ | fda9: | ||
+ | fe80:: | ||
+ | backend-gw2 up (index=5) | ||
+ | PtP Multicast AdminUp LinkUp MTU=1400 | ||
+ | fda9: | ||
+ | fe80:: | ||
+ | backend-web up (index=6) | ||
+ | PtP Multicast AdminUp LinkUp MTU=1400 | ||
+ | fd43: | ||
+ | fe80:: | ||
+ | mesh-vpn up (index=7) | ||
+ | MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1312 | ||
+ | fe80:: | ||
+ | bat0 up (index=8) | ||
+ | MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1500 | ||
+ | fda9: | ||
+ | fe80:: | ||
+ | mesh-vpn-backbo up (index=9) | ||
+ | MultiAccess Broadcast Multicast AdminUp LinkUp MTU=1426 | ||
+ | fe80:: | ||
+ | |||
+ | |||
+ | ===Show Protocols=== | ||
+ | # birdc show protocols | ||
+ | BIRD 1.3.7 ready. | ||
+ | name | ||
+ | k_mast | ||
+ | k_frei | ||
+ | device1 | ||
+ | p_maintbl Pipe | ||
+ | p_ibgptbl Pipe | ||
+ | p_freitbl Pipe | ||
+ | unreachable_default Static | ||
+ | static_ffmd Static | ||
+ | local_ffmd Static | ||
+ | vpn2 | ||
+ | Bielefeld1 BGP ebgp | ||
+ | Bielefeld2 BGP ebgp | ||
+ | |||
+ | Procols Verbose | ||
+ | # birdc show protocols all | ||
+ | BIRD 1.3.7 ready. | ||
+ | name | ||
+ | k_mast | ||
+ | Preference: | ||
+ | Input filter: | ||
+ | Output filter: | ||
+ | Routes: | ||
+ | Route change stats: | ||
+ | Import updates: | ||
+ | Import withdraws: | ||
+ | Export updates: | ||
+ | Export withdraws: | ||
+ | === show static | ||
+ | Show detailed information about static routes. | ||
+ | birdc show static local_ffmd | ||
+ | BIRD 1.3.7 ready. | ||
+ | 10.139.0.0/ | ||
+ | birdc show static static_ffmd | ||
+ | BIRD 1.3.7 ready. | ||
+ | 10.139.0.0/ | ||
+ | |||
+ | |||
+ | ===== Openvpn ===== | ||
+ | erzeugt mullvad device | ||
+ | |||
+ | ==== Starten/ Stoppen ==== | ||
+ | |||
+ | service openvpn start | ||
+ | service openvpn stop | ||
+ | | ||
+ | @gw1:# service openvpn status | ||
+ | [ ok ] VPN ' | ||
+ | |||
+ | ==== debugging ==== | ||
+ | ps -ef |grep open | ||
+ | root | ||
+ | root | ||
+ | |||
+ | |||
+ | ===== ISC-DHCP Server ===== | ||
+ | |||
+ | ==== Starten/ Stoppen ==== | ||
+ | |||
+ | / | ||
+ | |||
+ | / | ||
+ | |||
+ | / | ||
+ | Status of ISC DHCP server: dhcpd is running. | ||
+ | |||
+ | |||
+ | ==== Debugging ==== | ||
+ | |||
+ | tcpdump -n -i br0 port bootps or port bootpc | ||
+ | |||
+ | root@gw1:/ | ||
+ | root | ||
+ | root 3296 | ||
+ | root | ||
+ | |||
+ | |||
+ | ===== Alfred ===== | ||
+ | A.L.F.R.E.D - Almighty Lightweight Fact Remote Exchange Daemon | ||
+ | < | ||
+ | </ | ||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | ==== Start / Stop/ Staus ==== | ||
+ | |||
+ | service alfred start | ||
+ | [ ok ] Starting A.L.F.R.E.D: | ||
+ | |||
+ | service alfred stop | ||
+ | |||
+ | service alfred status | ||
+ | [ ok ] alfred is running. | ||
+ | |||
+ | |||
+ | |||
+ | ==== Debugging ==== | ||
+ | |||
+ | ps -ef |grep alfred | ||
+ | root 1149 | ||
+ | |||
+ | === Abfragen === | ||
+ | |||
+ | Sind Nodes online, die gluon-announce installiert und am laufen haben, sollte man json/gzip Daten erhalten: | ||
+ | |||
+ | alfred -r 158 -u / | ||
+ | [...] | ||
+ | { " | ||
+ | [...] | ||
+ | |||
+ | Ist alfred-json installiert kann man sich die Daten gleich mit entpacken lassen: | ||
+ | |||
+ | alfred -r 158 -s / | ||
+ | [...] | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | [...] | ||
+ | }, | ||
+ | [...] | ||
+ | }, | ||
+ | [...] | ||
+ | } | ||
+ | [...] | ||
+ | |||
+ | Hier nervt: Zur Angabe des Sockets nutzt alfred-json den Flag -s, alfred hingegen -u. | ||
+ | |||
+ | |||
+ | |||
+ | Wenn bereits ein Router in der Hood ist, kann mit | ||
+ | |||
+ | alfred -r 158 -u / | ||
+ | |||
+ | |||
+ | [[https:// | ||
+ | |||
+ | alfred-json -zr 158 -s / | ||
+ | | ||
+ | alfred-json -zr 158 | ||
+ | | ||
+ | | ||
+ | Bzw. Datensatz 1 | ||
+ | ===== Unbound ===== | ||
+ | |||
+ | ==== Starten Stoppen ==== | ||
+ | # / | ||
+ | [ ok ] unbound is running. | ||
+ | | ||
+ | # / | ||
+ | [ ok ] unbound is starting | ||
+ | |||
+ | |||
+ | # / | ||
+ | [ ok ] unbound is stopping | ||
+ | |||
+ | ===== Changelog ===== | ||