WireGuard/debug: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
''' | '''Debug WireGuard''' using Linux kernel dyamic debug | ||
== Beschreibung == | == Beschreibung == | ||
This uses Linux kernel dyamic debug features | * This uses Linux kernel dyamic debug features | ||
* | * This asumes that debugfs is mounted under /sys/kernel/debug | ||
* https://www.kernel.org/doc/html/latest/admin-guide/dynamic-debug-howto.html | |||
=== Enable WireGuard debug === | === Enable WireGuard debug === |
Version vom 31. Oktober 2022, 20:43 Uhr
Debug WireGuard using Linux kernel dyamic debug
Beschreibung
- This uses Linux kernel dyamic debug features
- This asumes that debugfs is mounted under /sys/kernel/debug
- https://www.kernel.org/doc/html/latest/admin-guide/dynamic-debug-howto.html
Enable WireGuard debug
echo 'module wireguard +p' | sudo tee /sys/kernel/debug/dynamic_debug/control
Disable WireGuard debug
echo 'module wireguard -p' | sudo tee /sys/kernel/debug/dynamic_debug/control
View Logs
dmesg
or
sudo journalctl -f
- Example output
[431032.581466] wireguard: wg0: Sending keepalive packet to peer 1 (10.0.0.1:51820) [431032.581524] wireguard: wg0: Sending handshake initiation to peer 1 (10.0.0.1:51820) [431032.584389] wireguard: wg0: Receiving handshake response from peer 1 (10.0.0.1:51820) [431032.584396] wireguard: wg0: Keypair 3435 destroyed for peer 1 [431032.584398] wireguard: wg0: Keypair 3437 created for peer 1 [431032.584402] wireguard: wg0: Sending keepalive packet to peer 1 (10.0.0.1:51820) [431057.669188] wireguard: wg0: Sending keepalive packet to peer 1 (10.0.0.1:51820) [431082.756942] wireguard: wg0: Sending keepalive packet to peer 1 (10.0.0.1:51820)
Installation
Anwendungen
Fehlerbehebung
Syntax
Optionen
Parameter
Umgebungsvariablen
Exit-Status
Konfiguration
Dateien
Sicherheit
Dokumentation
RFC
Man-Pages
Info-Pages
Siehe auch
- man wg(8)
Links
Projekt-Homepage
Weblinks
Einzelnachweise
Testfragen
Testfrage 1
Antwort1
Testfrage 2
Antwort2
Testfrage 3
Antwort3
Testfrage 4
Antwort4
Testfrage 5
Antwort5