2024-06-01 00:51:48 +00:00
|
|
|
.\" $OpenBSD: rad.conf.5,v 1.25 2024/05/31 16:19:53 florian Exp $
|
2023-04-30 01:15:27 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2018 Florian Obser <florian@openbsd.org>
|
|
|
|
.\" Copyright (c) 2005 Esben Norby <norby@openbsd.org>
|
|
|
|
.\" Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
|
|
|
|
.\" Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
|
|
|
|
.\" Copyright (c) 2002 Daniel Hartmeier <dhartmei@openbsd.org>
|
|
|
|
.\"
|
|
|
|
.\" Permission to use, copy, modify, and distribute this software for any
|
|
|
|
.\" purpose with or without fee is hereby granted, provided that the above
|
|
|
|
.\" copyright notice and this permission notice appear in all copies.
|
|
|
|
.\"
|
|
|
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
.\"
|
2024-06-01 00:51:48 +00:00
|
|
|
.Dd $Mdocdate: May 31 2024 $
|
2023-04-30 01:15:27 +00:00
|
|
|
.Dt RAD.CONF 5
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm rad.conf
|
|
|
|
.Nd router advertisement daemon configuration file
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Xr rad 8
|
|
|
|
daemon is an IPv6 router advertisement daemon.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
config file is divided into the following main sections:
|
|
|
|
.Bl -tag -width xxxx
|
|
|
|
.It Sy Macros
|
|
|
|
User-defined variables may be defined and used later, simplifying the
|
|
|
|
configuration file.
|
|
|
|
.It Sy Global Configuration
|
|
|
|
Global settings for
|
|
|
|
.Xr rad 8 .
|
|
|
|
These are used as default values for
|
|
|
|
.Ic interface
|
|
|
|
definitions and can be overwritten in an
|
|
|
|
.Ic interface
|
|
|
|
block.
|
|
|
|
.It Sy Interfaces
|
|
|
|
.Xr rad 8
|
|
|
|
sends IPv6 router advertisement messages.
|
|
|
|
This section defines on which interfaces to advertise prefix information
|
|
|
|
and their associated parameters.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Additional configuration files can be included with the
|
|
|
|
.Ic include
|
|
|
|
keyword.
|
|
|
|
.Sh MACROS
|
|
|
|
Macros can be defined that will later be expanded in context.
|
|
|
|
Macro names must start with a letter, digit, or underscore,
|
|
|
|
and may contain any of those characters.
|
|
|
|
Macro names may not be reserved words (for example,
|
|
|
|
.Ic interface )
|
|
|
|
Macros are not expanded inside quotes.
|
|
|
|
.Sh GLOBAL CONFIGURATION
|
|
|
|
The global configuration section sets defaults for router advertisement
|
|
|
|
messages.
|
|
|
|
These can be overwritten in interface blocks.
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Ic default router Pq Ic yes Ns | Ns Ic no
|
|
|
|
Act as a default router or not.
|
|
|
|
The default is yes.
|
|
|
|
.It Ic dns Brq dns options
|
|
|
|
.Ic dns
|
|
|
|
options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Ic lifetime Ar seconds
|
|
|
|
The number of seconds the dns options are valid after receiving a router
|
|
|
|
advertisement message.
|
|
|
|
The default is 900 seconds.
|
|
|
|
.It Ic nameserver Pq Ar IP Ns | Ns { nameserver list }
|
|
|
|
IPv6 address or list of IPv6 addresses of DNS name servers.
|
|
|
|
.It Ic search Pq Ar domain Ns | Ns { domain list }
|
|
|
|
Domain or list of domains for the
|
|
|
|
.Xr resolv.conf 5
|
|
|
|
search list.
|
|
|
|
.El
|
|
|
|
.It Ic hop limit Ar hops
|
|
|
|
Specify the diameter of the internet.
|
|
|
|
The default is 0, meaning unspecified by this router.
|
|
|
|
.It Ic managed address configuration Pq Ic yes Ns | Ns Ic no
|
|
|
|
If set to yes, indicate that stateless address configuration prefixes are
|
|
|
|
not available and hosts should consult DHCPv6.
|
|
|
|
The default is no.
|
|
|
|
.It Ic mtu Ar bytes
|
|
|
|
The MTU option is used in Router Advertisement messages to ensure that all
|
|
|
|
nodes on a link use the same MTU value in those cases where the link MTU
|
|
|
|
is not well known.
|
|
|
|
The default is 0, meaning unspecified by this router.
|
|
|
|
.It Ic nat64 prefix Ar prefix Op Brq nat64 options
|
|
|
|
Add a PREF64 router advertisement option to communicate prefixes used
|
|
|
|
for Network Address and Protocol Translation from IPv6 to IPv4 (NAT64).
|
|
|
|
If
|
|
|
|
.Ar prefix
|
|
|
|
is specified without a prefix length, its default is 64.
|
|
|
|
.Pp
|
|
|
|
.Ic nat64 prefix
|
|
|
|
options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Ic lifetime Ar seconds
|
|
|
|
The number of seconds the nat64 prefix option is valid after receiving a router
|
|
|
|
advertisement message.
|
|
|
|
A value of zero indicates to not use the prefix anymore.
|
|
|
|
The maximum is 65528 seconds.
|
|
|
|
The default is 1800 seconds.
|
|
|
|
.El
|
|
|
|
.It Ic other configuration Pq Ic yes Ns | Ns Ic no
|
|
|
|
If set to yes, hosts should consult DHCPv6 for additional configuration
|
|
|
|
like NTP servers or DNS name servers.
|
|
|
|
.It Ic router lifetime Ar seconds
|
|
|
|
The number of seconds this router is a valid default router after receiving
|
|
|
|
a router advertisement message.
|
|
|
|
The default is 1800 seconds.
|
2024-04-24 01:40:28 +00:00
|
|
|
.It Ic router preference Pq Ic high Ns | Ns Ic medium Ns | Ns Ic low
|
|
|
|
Indicate whether to prefer this router over other default routers.
|
|
|
|
The default is medium.
|
2023-04-30 01:15:27 +00:00
|
|
|
.\" .It Ic reachable time Ar number
|
|
|
|
.\" XXX
|
|
|
|
.\" .It Ic retrans timer Ar number
|
|
|
|
.\" XXX
|
2024-05-21 00:16:53 +00:00
|
|
|
.It Ic source link-layer address Pq Ic yes Ns | Ns Ic no
|
|
|
|
Add a source link-layer address option to router advertisement messages, to
|
|
|
|
communicate the link-layer address of the sending interface.
|
|
|
|
The default is yes.
|
2023-04-30 01:15:27 +00:00
|
|
|
.El
|
|
|
|
.Sh INTERFACES
|
|
|
|
A list of interfaces or interface groups to send advertisements on:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
.Ic interface Ar name Op { prefix list }
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Options set in the global section can be overwritten inside an interface
|
|
|
|
block.
|
|
|
|
In addition an interface block can contain a list of prefixes:
|
|
|
|
.Bd -unfilled -offset indent
|
|
|
|
.Oo Ic no Oc Ic auto prefix Op { prefix options }
|
|
|
|
.Ic prefix Ar prefix Op { prefix options }
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
The default is to discover prefixes to announce by inspecting the IPv6
|
|
|
|
addresses configured on an interface.
|
|
|
|
This can be disabled with
|
|
|
|
.Ic no auto prefix .
|
|
|
|
If
|
|
|
|
.Ar prefix
|
|
|
|
is specified without a prefix length, its default is 64.
|
|
|
|
.Pp
|
|
|
|
.Ic prefix
|
|
|
|
options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Ic autonomous address-configuration Pq Ic yes Ns | Ns Ic no
|
|
|
|
This prefix can be used to generate IPv6 addresses.
|
|
|
|
The default is yes.
|
|
|
|
.It Ic on-link Pq Ic yes Ns | Ns Ic no
|
|
|
|
This prefix is considered on-link.
|
|
|
|
The default is yes.
|
|
|
|
.It Ic preferred lifetime Ar seconds
|
|
|
|
The preferred lifetime (pltime) in seconds for addresses generated from this
|
|
|
|
prefix.
|
|
|
|
The default is 2700.
|
2024-06-01 00:51:48 +00:00
|
|
|
This option is ignored if the prefix is discovered from a network interface
|
|
|
|
and it has a preferred lifetime configured.
|
2023-04-30 01:15:27 +00:00
|
|
|
.It Ic valid lifetime Ar seconds
|
|
|
|
The valid lifetime (vltime) in seconds for addresses generated from this
|
|
|
|
prefix.
|
|
|
|
The default is 5400.
|
2024-06-01 00:51:48 +00:00
|
|
|
This option is ignored if the prefix is discovered from a network interface
|
|
|
|
and it has a valid lifetime configured.
|
2023-04-30 01:15:27 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /etc/examples/rad.conf -compact
|
|
|
|
.It Pa /etc/rad.conf
|
|
|
|
.Xr rad 8
|
|
|
|
configuration file.
|
|
|
|
.It Pa /etc/examples/rad.conf
|
|
|
|
Example configuration file.
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
|
|
|
With the following example configuration,
|
|
|
|
.Xr rad 8
|
|
|
|
will pick a prefix from the ix1 interface and send router advertisements on it:
|
|
|
|
.Pp
|
|
|
|
.Dl interface ix1
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ractl 8 ,
|
|
|
|
.Xr rad 8 ,
|
|
|
|
.Xr rc.conf.local 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file format first appeared in
|
|
|
|
.Ox 6.4 .
|