diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-02-22 21:53:55 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-02-23 07:09:49 +0100 |
commit | 0257274732a3c5cc1c86e385d4ccfe10995b6d19 (patch) | |
tree | 93d18f0753e433899f8b4294af6f972d533b0b78 /src/tools/wg.8 | |
parent | tools: give "off" value for fwmark (diff) | |
download | wireguard-monolithic-historical-0257274732a3c5cc1c86e385d4ccfe10995b6d19.tar.xz wireguard-monolithic-historical-0257274732a3c5cc1c86e385d4ccfe10995b6d19.zip |
tools: add wg show [interface] dump
Diffstat (limited to '')
-rw-r--r-- | src/tools/wg.8 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tools/wg.8 b/src/tools/wg.8 index 2933761..b9c1f79 100644 --- a/src/tools/wg.8 +++ b/src/tools/wg.8 @@ -36,14 +36,20 @@ Sub-commands that take an INTERFACE must be passed a WireGuard interface. .SH COMMANDS .TP -\fBshow\fP { \fI<interface>\fP | \fIall\fP | \fIinterfaces\fP } [\fIpublic-key\fP | \fIprivate-key\fP | \fIpreshared-key\fP | \fIlisten-port\fP | \fIfwmark\fP | \fIpeers\fP | \fIendpoints\fP | \fIallowed-ips\fP | \fIlatest-handshakes\fP | \fIpersistent-keepalive\fP | \fItransfer\fP] +\fBshow\fP { \fI<interface>\fP | \fIall\fP | \fIinterfaces\fP } [\fIpublic-key\fP | \fIprivate-key\fP | \fIpreshared-key\fP | \fIlisten-port\fP | \fIfwmark\fP | \fIpeers\fP | \fIendpoints\fP | \fIallowed-ips\fP | \fIlatest-handshakes\fP | \fIpersistent-keepalive\fP | \fItransfer\fP | \fIdump\fP] Shows current WireGuard configuration of specified \fI<interface>\fP. If no \fI<interface>\fP is specified, \fI<interface>\fP defaults to \fIall\fP. If \fIinterfaces\fP is specified, prints a list of all WireGuard interfaces, one per line, and quit. If no options are given after the interface specification, then prints a list of all attributes in a visually pleasing way meant for the terminal. Otherwise, prints specified information grouped by -newlines and tabs, meant to be used in scripts. +newlines and tabs, meant to be used in scripts. For this script-friendly display, +if \fIall\fP is specified, then the first field for all categories of information +is the interface name. If \fPdump\fP is specified, then several lines are printed; +the first contains in order separated by tab: private-key, public-key, preshared-key, +listen-port, fwmark. Subsequent lines are printed for each peer and contain in order +separated by tab: public-key, endpoint, allowed-ips, latest-handshake, transfer-rx, +transfer-tx, persistent-keepalive. .TP \fBshowconf\fP \fI<interface>\fP Shows the current configuration of \fI<interface>\fP in the format described |