Changeset View
Changeset View
Standalone View
Standalone View
share/man/man4/wg.4
Show All 17 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd February 2, 2021 | .Dd March 7, 2021 | ||||
.Dt WG 4 | .Dt WG 4 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm wg | .Nm wg | ||||
.Nd "WireGuard - pseudo-device" | .Nd "WireGuard - pseudo-device" | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
To load the driver as a module at boot time, place the following line in | To load the driver as a module at boot time, place the following line in | ||||
.Xr loader.conf 5 : | .Xr loader.conf 5 : | ||||
▲ Show 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | |||||
.Nm | .Nm | ||||
interface. | interface. | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
$ ifconfig wg0 | awk '/public-key/ { print $2 }'` | $ ifconfig wg0 | awk '/public-key/ { print $2 }'` | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
Connect to a specific endpoint using its public-key and set the allowed IP address | Connect to a specific endpoint using its public-key and set the allowed IP address | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
# ifconfig wg0 peer '7lWtsDdqaGB3EY9WNxRN3hVaHMtu1zXw71+bOjNOVUw=' endpoint 10.0.1.100 allowed-ips 192.168.2.100/32 | # ifconfig wg0 peer public-key '7lWtsDdqaGB3EY9WNxRN3hVaHMtu1zXw71+bOjNOVUw=' endpoint 10.0.1.100:54321 allowed-ips 192.168.2.100/32 | ||||
.Ed | .Ed | ||||
.Sh DIAGNOSTICS | .Sh DIAGNOSTICS | ||||
The | The | ||||
.Nm | .Nm | ||||
interface supports runtime debugging, which can be enabled with: | interface supports runtime debugging, which can be enabled with: | ||||
.Pp | .Pp | ||||
.D1 Ic ifconfig Cm wg Ns Ar N Cm debug | .D1 Ic ifconfig Cm wg Ns Ar N Cm debug | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |