From 197689a3cd310859a194ec0bebe6bf50c97171ba Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 6 May 2021 12:54:29 +0200 Subject: man: mention BSD debugging Signed-off-by: Jason A. Donenfeld --- src/man/wg.8 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/man/wg.8 b/src/man/wg.8 index 0f74751..7984539 100644 --- a/src/man/wg.8 +++ b/src/man/wg.8 @@ -219,6 +219,13 @@ by running as root: \fB # modprobe wireguard && echo module wireguard +p > /sys/kernel/debug/dynamic_debug/control\fP +On OpenBSD and FreeBSD, debugging information can be written into +.BR dmesg (1) +on a per-interface basis by using +.BR ifconfig (1): + +\fB # ifconfig wg0 debug + On userspace implementations, it is customary to set the \fILOG_LEVEL\fP environment variable to \fIverbose\fP. .SH ENVIRONMENT VARIABLES -- cgit v1.2.3-59-g8ed1b