diff options
author | Gordon Bergling <gbe@FreeBSD.org> | 2021-03-07 19:27:59 +0000 |
---|---|---|
committer | Gordon Bergling <gbe@FreeBSD.org> | 2021-03-11 18:02:51 +0000 |
commit | 2b1bcf70b4d1a8ef62415cbb89890f08ae57a447 (patch) | |
tree | 2f74065b8794b57e279868bbb8580be604838894 | |
parent | 1690984a8307673b9027192d4467e7b8199dc772 (diff) | |
download | src-2b1bcf70b4d1a8ef62415cbb89890f08ae57a447.tar.gz src-2b1bcf70b4d1a8ef62415cbb89890f08ae57a447.zip |
wg(4): Fix an example in the manual page
The example in the manual page of wg(4) for connecting to a
peer was missing the 'public-key' ifconfig(8) keyword and for the
addressed peer the port must be specified.
PR: 253866
Reported by: Sergey Akhmatov <sergey at akhmatov dot ru>
Approved by: re (gjb)
Reviewed by: debdrup
Differential Revision: https://reviews.freebsd.org/D29115
(cherry picked from commit f7bfe310191c8292da51c8da166a521ff16e0e46)
-rw-r--r-- | share/man/man4/wg.4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man4/wg.4 b/share/man/man4/wg.4 index 2a13b98f45e9..760584e3a386 100644 --- a/share/man/man4/wg.4 +++ b/share/man/man4/wg.4 @@ -23,7 +23,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 2, 2021 +.Dd March 7, 2021 .Dt WG 4 .Os .Sh NAME @@ -184,7 +184,7 @@ $ ifconfig wg0 | awk '/public-key/ { print $2 }'` .Pp Connect to a specific endpoint using its public-key and set the allowed IP address .Bd -literal -offset indent -# ifconfig wg0 peer '7lWtsDdqaGB3EY9WNxRN3hVaHMtu1zXw71+bOjNOVUw=' endpoint 10.0.1.100 allowed-ips 192.168.2.100/32 +# ifconfig wg0 peer public-key '7lWtsDdqaGB3EY9WNxRN3hVaHMtu1zXw71+bOjNOVUw=' endpoint 10.0.1.100:54321 allowed-ips 192.168.2.100/32 .Ed .Sh DIAGNOSTICS The |