Index | Thread | Search

From:
Teo Ljungberg <teo@teoljungberg.com>
Subject:
wg(4) - fix typo in wg.4
To:
tech@openbsd.org
Date:
Tue, 6 Feb 2024 15:39:09 +0100

Download raw body.

Thread
The documented wg{1,2} interfaces are setup to 192.168.5.{1,2}, and were
written as one IP and then the other further down.

This patch fixes that.

diff --git share/man/man4/wg.4 share/man/man4/wg.4
index e651622104a..9bd904e0ca6 100644
--- share/man/man4/wg.4
+++ share/man/man4/wg.4
@@ -147,8 +147,8 @@ 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 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 wgpeer $PUB2 wgendpoint 127.0.0.1 7222 wgaip 192.168.5.1/32
+ifconfig wg2 wgpeer $PUB1 wgendpoint 127.0.0.1 7111 wgaip 192.168.5.2/32
  ifconfig wg1 192.168.5.1/24
  ifconfig wg2 192.168.5.2/24
  .Ed