diff options
-rw-r--r-- | share/man/man4/wg.4 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man4/wg.4 b/share/man/man4/wg.4 index 651a600a880..5147e5ea098 100644 --- a/share/man/man4/wg.4 +++ b/share/man/man4/wg.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: wg.4,v 1.5 2020/09/29 19:37:08 procter Exp $ +.\" $OpenBSD: wg.4,v 1.6 2020/11/24 16:33:05 sthen 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: September 29 2020 $ +.Dd $Mdocdate: November 24 2020 $ .Dt WG 4 .Os .Sh NAME @@ -138,14 +138,14 @@ but demonstrates two interfaces on the same machine: .Bd -literal #!/bin/sh -ifconfig wg1 create wgport 111 wgkey `openssl rand -base64 32` rdomain 1 -ifconfig wg2 create wgport 222 wgkey `openssl rand -base64 32` rdomain 2 +ifconfig wg1 create wgport 7111 wgkey `openssl rand -base64 32` rdomain 1 +ifconfig wg2 create wgport 7222 wgkey `openssl rand -base64 32` rdomain 2 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 +ifconfig wg1 wgpeer $PUB2 wgendpoint 127.0.0.1 7222 wgaip 192.168.5.2/32 +ifconfig wg2 wgpeer $PUB1 wgendpoint 127.0.0.1 7111 wgaip 192.168.5.1/32 ifconfig wg1 192.168.5.1/24 ifconfig wg2 192.168.5.2/24 .Ed |