mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user