Module Name: src
Committed By: riastradh
Date: Thu Aug 20 22:20:50 UTC 2020
Modified Files:
src/share/man/man4: wg.4
Log Message:
Slightly less indentation.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/wg.4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man4/wg.4
diff -u src/share/man/man4/wg.4:1.2 src/share/man/man4/wg.4:1.3
--- src/share/man/man4/wg.4:1.2 Thu Aug 20 22:19:56 2020
+++ src/share/man/man4/wg.4 Thu Aug 20 22:20:50 2020
@@ -1,4 +1,4 @@
-.\" $NetBSD: wg.4,v 1.2 2020/08/20 22:19:56 riastradh Exp $
+.\" $NetBSD: wg.4,v 1.3 2020/08/20 22:20:50 riastradh Exp $
.\"
.\" Copyright (c) 2020 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -70,7 +70,7 @@ endpoint IP address outside the tunnel.
.\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
.Sh EXAMPLES
Typical network topology:
-.Bd -literal -offset abcdefgh
+.Bd -literal -offset abcd
wm0 = 1.2.3.4 bge0 = 4.3.2.1
Stationary server: Roaming client:
@@ -90,7 +90,7 @@ Stationary server:
.Ed
.Pp
Generate key pairs on A and B:
-.Bd -literal -offset abcdefgh
+.Bd -literal -offset abcd
A# wg-keygen > /etc/wireguard/wg0
A# wg-keygen --pub < /etc/wireguard/wg0 > /etc/wireguard/wg0.pub
A# cat /etc/wireguard/wg0.pub
@@ -104,7 +104,7 @@ X7EGm3T3IfodBcyilkaC89j0SH3XD6+/pwvp7Dgp
.Pp
Configure A to listen on port 1234 and allow connections from B to
appear in the 10.0.1.0/24 subnet:
-.Bd -literal -offset abcdefgh
+.Bd -literal -offset abcd
A# ifconfig wg0 create 10.0.1.0/24
A# wgconfig wg0 set private-key /etc/wireguard/wg0
A# wgconfig wg0 set listen-port 1234
@@ -119,7 +119,7 @@ wg0: flags=0x51<UP,POINTOPOINT,RUNNING>
.Pp
Configure B to connect to A at 1.2.3.4 on port 1234 and the packets can
begin to flow:
-.Bd -literal -offset abcdefgh
+.Bd -literal -offset abcd
B# ifconfig wg0 create 10.0.1.1/24
B# wgconfig wg0 set private-key /etc/wireguard/wg0
B# wgconfig wg0 add peer A \e