diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-01-31 23:17:12 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-01-31 23:17:59 +0100 |
commit | 27c885ff0844c3391a8fc4ef1165edb354455ec5 (patch) | |
tree | 9ce0405bb402f61532ce2fd31b17be18f246d906 /src | |
parent | wg-quick: android: split uids into multiple commands (diff) | |
download | wireguard-tools-27c885ff0844c3391a8fc4ef1165edb354455ec5.tar.xz wireguard-tools-27c885ff0844c3391a8fc4ef1165edb354455ec5.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/man/wg.8 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/man/wg.8 b/src/man/wg.8 index 07b9694..27860c8 100644 --- a/src/man/wg.8 +++ b/src/man/wg.8 @@ -212,6 +212,15 @@ are thus ignored. .br 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 .TP .I WG_COLOR_MODE |