diff options
author | tobhe <tobhe@cvs.openbsd.org> | 2020-06-23 10:15:20 +0000 |
---|---|---|
committer | tobhe <tobhe@cvs.openbsd.org> | 2020-06-23 10:15:20 +0000 |
commit | d76132f4c3ce76b5f7518fec07139d0288541f82 (patch) | |
tree | d5ae8060505680d7690a438d5c6b1eec3a715859 /share/man/man4 | |
parent | aafc02be513213c81dd02f363ab7a11560d4d194 (diff) |
'wgkey (pub)' was renamed to 'wgpubkey'.
Diffstat (limited to 'share/man/man4')
-rw-r--r-- | share/man/man4/wg.4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/share/man/man4/wg.4 b/share/man/man4/wg.4 index d74d81d6d7a..0c69c81c267 100644 --- a/share/man/man4/wg.4 +++ b/share/man/man4/wg.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wg.4,v 1.2 2020/06/21 15:23:59 jmc Exp $ +.\" $OpenBSD: wg.4,v 1.3 2020/06/23 10:15:19 tobhe Exp $ .\" Copyright (c) 2020 Matt Dunwoodie <ncon@noconroy.net> .\" .\" Permission to use, copy, modify, and distribute this software for any @@ -13,7 +13,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 21 2020 $ +.Dd $Mdocdate: June 23 2020 $ .Dt WG 4 .Os .Sh NAME @@ -129,7 +129,7 @@ When an interface has a private key set with the corresponding public key is shown in the status output of the interface, like so: .Bd -literal -offset indent -wgkey (pub) NW5l2q2MArV5ZXpVXSZwBOyqhohOf8ImDgUB+jPtJps= +wgpubkey NW5l2q2MArV5ZXpVXSZwBOyqhohOf8ImDgUB+jPtJps= .Ed .Sh EXAMPLES Create two @@ -144,8 +144,8 @@ but demonstrates two interfaces on the same machine: ifconfig wg1 create wgport 111 wgkey `openssl rand -base64 32` rdomain 1 ifconfig wg2 create wgport 222 wgkey `openssl rand -base64 32` rdomain 2 -PUB1="`ifconfig wg1 | grep 'wgkey (pub)' | cut -d ' ' -f 3`" -PUB2="`ifconfig wg2 | grep 'wgkey (pub)' | cut -d ' ' -f 3`" +PUB1="`ifconfig wg1 | grep 'wgpubkey' | cut -d ' ' -f 2`" +PUB2="`ifconfig wg2 | grep 'wgpubkey' | cut -d ' ' -f 2`" ifconfig wg1 wgpeer $PUB2 wgendpoint 127.0.0.1 222 wgaip 192.168.5.2/32 ifconfig wg2 wgpeer $PUB1 wgendpoint 127.0.0.1 111 wgaip 192.168.5.1/32 |