Module Name:    src
Committed By:   riastradh
Date:           Thu Aug 20 22:19:57 UTC 2020

Modified Files:
        src/share/man/man4: wg.4

Log Message:
Fix self-xref.  Indent example displays.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 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.1 src/share/man/man4/wg.4:1.2
--- src/share/man/man4/wg.4:1.1	Thu Aug 20 21:36:00 2020
+++ src/share/man/man4/wg.4	Thu Aug 20 22:19:56 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: wg.4,v 1.1 2020/08/20 21:36:00 riastradh Exp $
+.\"	$NetBSD: wg.4,v 1.2 2020/08/20 22:19:56 riastradh Exp $
 .\"
 .\" Copyright (c) 2020 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -51,7 +51,7 @@ with the peer, and the encapsulation is 
 UDP.
 .Pp
 Every
-.Xr wg 4
+.Nm
 interface can be configured with an IP address using
 .Xr ifconfig 8 ,
 a private key generated with
@@ -70,7 +70,7 @@ endpoint IP address outside the tunnel.
 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 .Sh EXAMPLES
 Typical network topology:
-.Bd -literal
+.Bd -literal -offset abcdefgh
 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
+.Bd -literal -offset abcdefgh
 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
+.Bd -literal -offset abcdefgh
 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
+.Bd -literal -offset abcdefgh
 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

Reply via email to