From ab3593ca5fcae7ced8e597947d957aa277a72612 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Fri, 27 Nov 2020 14:49:55 +0000 Subject: wg(4): show an actual command to retrieve wgpubkey to go with the text which says "shown in the status output of the interface"; this makes it clear that 1) ifconfig is used, 2) the interface must be specified (either that or -A; it is not shown in the default output with no parameters), and 3) hints that it must be run as root. ok jmc@ --- share/man/man4/wg.4 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'share/man/man4/wg.4') diff --git a/share/man/man4/wg.4 b/share/man/man4/wg.4 index a591312698c..56fef5eff41 100644 --- a/share/man/man4/wg.4 +++ b/share/man/man4/wg.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wg.4,v 1.7 2020/11/27 14:04:49 sthen Exp $ +.\" $OpenBSD: wg.4,v 1.8 2020/11/27 14:49:54 sthen Exp $ .\" Copyright (c) 2020 Matt Dunwoodie .\" .\" Permission to use, copy, modify, and distribute this software for any @@ -125,8 +125,9 @@ When an interface has a private key set with .Nm wgkey , the corresponding public key is shown in the status output of the interface, like so: -.Bd -literal -offset indent -wgpubkey NW5l2q2MArV5ZXpVXSZwBOyqhohOf8ImDgUB+jPtJps= +.Bd -literal +# ifconfig wg1 | grep wgpubkey + wgpubkey NW5l2q2MArV5ZXpVXSZwBOyqhohOf8ImDgUB+jPtJps= .Ed .Sh EXAMPLES Create two -- cgit v1.2.3