diff options
author | 2020-10-30 16:47:08 +0000 | |
---|---|---|
committer | 2020-10-30 16:47:08 +0000 | |
commit | 2cdb5bd1acd6224643add65d1eb8b56c700dfdfc (patch) | |
tree | c6818f5889144c3f0c2ede0e51a12bb78452fd0a /share/man/man5 | |
parent | auth_approval() does not necessarily set errno on failure. (diff) | |
download | wireguard-openbsd-2cdb5bd1acd6224643add65d1eb8b56c700dfdfc.tar.xz wireguard-openbsd-2cdb5bd1acd6224643add65d1eb8b56c700dfdfc.zip |
Document configuration of source IP address
Looks good, deraadt@
Diffstat (limited to 'share/man/man5')
-rw-r--r-- | share/man/man5/hostname.if.5 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/share/man/man5/hostname.if.5 b/share/man/man5/hostname.if.5 index 4519b31c658..9704bd3f906 100644 --- a/share/man/man5/hostname.if.5 +++ b/share/man/man5/hostname.if.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: hostname.if.5,v 1.67 2019/08/30 20:20:51 jmc Exp $ +.\" $OpenBSD: hostname.if.5,v 1.68 2020/10/30 16:47:08 denis Exp $ .\" $NetBSD: hosts.5,v 1.4 1994/11/30 19:31:20 jtc Exp $ .\" .\" Copyright (c) 1983, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)hosts.5 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: August 30 2019 $ +.Dd $Mdocdate: October 30 2020 $ .Dt HOSTNAME.IF 5 .Os .Sh NAME @@ -207,13 +207,24 @@ instance, or .Pa /sbin ) . Useful for doing interface-specific configuration such as -setting up custom routes using +setting up custom routes or default source IP address using .Xr route 8 or establishing tunnels using .Xr ifconfig 8 . It is worth noting that .Dq \e$if in a command line will be replaced by the interface name. +.Pp +For example, you can use: +.Bd -literal -offset 1n +inet 192.0.2.1/32 +inet6 2001:db8::1/128 +up +!route sourceaddr -ifp \e$if +.Ed +.Pp +to set 192.0.2.1 and 2001:db8::1 as source IP addresses for +outgoing connections. .El .Sh DYNAMIC ADDRESS CONFIGURATION The following packed formats are valid for configuring network |