wireguard: add wireguard handshake logging

Start the wireguard peer handshake logging in wireguard init script
through lightweight kernel bpf trampoline fentry tracing on wireguard
kernel function.

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2025-11-15 19:41:58 +00:00
parent 704a226f1f
commit ecae6bb08c

View File

@@ -353,6 +353,9 @@ wg_start() {
setup_interface "${intf}" || failed=1
done
# Start wireguard handshake log
loadproc -b wg_handshake
return ${failed}
}
@@ -366,6 +369,9 @@ wg_stop() {
ip link del "${intf##*/}"
done
# Stop wireguard handshake log
killproc wg_handshake
return 0
}