man: document dynamic debug trick for Linux

This comes up occasionally, so it may be useful to mention its
possibility in the man page. At least the Arch Linux and Ubuntu kernels
support dynamic debugging, so this advise will at least help somebody.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2020-01-31 23:17:12 +01:00
parent 6771c4454e
commit 27c885ff08
1 changed files with 9 additions and 0 deletions

View File

@ -212,6 +212,15 @@ are thus ignored.
.br .br
AllowedIPs = 10.10.10.230/32 AllowedIPs = 10.10.10.230/32
.SH DEBUGGING INFORMATION
Sometimes it is useful to have information on the current runtime state of a tunnel. When using the Linux kernel module on a kernel that supports dynamic debugging, debugging information can be written into
.BR dmesg (1)
by running as root:
\fB # modprobe wireguard && echo module wireguard +p > /sys/kernel/debug/dynamic_debug/control\fP
On userspace implementations, it is customary to set the \fILOG_LEVEL\fP environment variable to \fIdebug\fP.
.SH ENVIRONMENT VARIABLES .SH ENVIRONMENT VARIABLES
.TP .TP
.I WG_COLOR_MODE .I WG_COLOR_MODE