Fix self-xref. Indent example displays.
This commit is contained in:
parent
3699389b49
commit
d324f7ae25
@ -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 exchanged over IP or IPv6 using
|
||||
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: Roaming client:
|
||||
.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+/pwvp7Dgp5SU=
|
||||
.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> mtu 1420
|
||||
.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
|
||||
|
Loading…
Reference in New Issue
Block a user