summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2020-11-24 16:33:06 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2020-11-24 16:33:06 +0000
commit419777807120db45315efd00f51878866f0614c7 (patch)
treefe3cfe4a59e1c61f7d72ce977bfae357211b3ddc
parent62f3b2a9bbdadfdaf73f757c1fbf140a46b928da (diff)
use non-reserved ports in the wg(4) example, the previous 111 was quite
a bad choice as it conflicts with portmap. ok deraadt
-rw-r--r--share/man/man4/wg.412
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