2024-07-05 02:44:07 +00:00
|
|
|
.\" $OpenBSD: radiusd.conf.5,v 1.27 2024/07/04 13:14:26 sobrado Exp $
|
2023-04-30 01:15:27 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2014 Esdenera Networks GmbH
|
2023-09-08 20:30:31 +00:00
|
|
|
.\" Copyright (c) 2014, 2023 Internet Initiative Japan Inc.
|
2023-04-30 01:15:27 +00:00
|
|
|
.\"
|
|
|
|
.\" 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-07-05 02:44:07 +00:00
|
|
|
.Dd $Mdocdate: July 4 2024 $
|
2023-04-30 01:15:27 +00:00
|
|
|
.Dt RADIUSD.CONF 5
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm radiusd.conf
|
|
|
|
.Nd RADIUS daemon configuration file
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
is the configuration file for the RADIUS daemon,
|
|
|
|
.Xr radiusd 8 .
|
|
|
|
It has the following format:
|
|
|
|
.Pp
|
|
|
|
Empty lines and lines beginning with the
|
|
|
|
.Sq #
|
|
|
|
character are ignored.
|
|
|
|
.Pp
|
|
|
|
Keywords may be specified multiple times within the configuration file.
|
|
|
|
The configuration options are as follows:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Xo
|
2024-07-05 02:44:07 +00:00
|
|
|
.Ic listen on Ar address Oo Ic accounting Oc Oo Ic port Ar port Oc
|
2023-04-30 01:15:27 +00:00
|
|
|
.Xc
|
|
|
|
Specify an
|
|
|
|
.Ar address
|
|
|
|
and a
|
|
|
|
.Ar port
|
|
|
|
to listen on.
|
2024-07-02 03:24:35 +00:00
|
|
|
When
|
2024-07-03 01:50:11 +00:00
|
|
|
.Ar accounting
|
2024-07-02 03:24:35 +00:00
|
|
|
is specified,
|
|
|
|
it is used for waiting for RADIUS accounting messages.
|
|
|
|
The default port number is 1812 for authentication and 1813 for accounting.
|
2023-04-30 01:15:27 +00:00
|
|
|
.It Ic client Ar address/mask Brq ...
|
|
|
|
Allow access to a client with the specified
|
|
|
|
.Ar address
|
|
|
|
and
|
|
|
|
.Ar mask .
|
|
|
|
It is followed by a block of options enclosed in curly brackets:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Ic secret Ar secret
|
|
|
|
The shared secret with the clients.
|
|
|
|
This option cannot be omitted.
|
|
|
|
.It Ic msgauth-required Ar yes | no
|
|
|
|
Specify if message authentication is required.
|
|
|
|
The default is to require message authentication.
|
|
|
|
.El
|
2024-07-02 03:24:35 +00:00
|
|
|
.It Ic module Ar name Oo Ar path Oc Op Brq ...
|
|
|
|
Load a module.
|
|
|
|
Specify one of the predefined names for
|
|
|
|
.Ar name ,
|
|
|
|
or specify
|
|
|
|
.Ar name
|
|
|
|
and
|
|
|
|
.Ar path .
|
|
|
|
When multiple modules of the same path are loaded with different names,
|
|
|
|
each module can have configurations respectively and work independently.
|
|
|
|
.Pp
|
2024-07-03 01:50:11 +00:00
|
|
|
The following modules are predefined:
|
2023-04-30 01:15:27 +00:00
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Do bsdauth Dc module
|
|
|
|
The
|
|
|
|
.Dq bsdauth
|
2024-07-02 03:24:35 +00:00
|
|
|
module
|
|
|
|
provides authentication from the local system's
|
2023-04-30 01:15:27 +00:00
|
|
|
.Xr authenticate 3
|
2024-07-02 03:24:35 +00:00
|
|
|
interface.
|
|
|
|
See
|
|
|
|
.Xr radiusd_bsdauth 8 .
|
2023-04-30 01:15:27 +00:00
|
|
|
.It Do radius Dc module
|
|
|
|
The
|
|
|
|
.Dq radius
|
|
|
|
module provides authentication from upstream RADIUS servers.
|
2024-07-02 03:24:35 +00:00
|
|
|
See
|
|
|
|
.Xr radiusd_radius 8 .
|
2023-09-08 20:30:31 +00:00
|
|
|
.It Do standard Dc module
|
|
|
|
The
|
|
|
|
.Dq standard
|
2024-07-02 03:24:35 +00:00
|
|
|
module provides standard decorations for RADIUS messages.
|
|
|
|
See
|
|
|
|
.Xr radiusd_standard 8 .
|
2023-04-30 01:15:27 +00:00
|
|
|
.El
|
2024-07-02 03:24:35 +00:00
|
|
|
.Pp
|
|
|
|
It is optionally followed by a block of options enclosed in curly brackets.
|
|
|
|
The following option can be used in the block:
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Ic set Ar key value ...
|
2023-04-30 01:15:27 +00:00
|
|
|
Configure the module specific configurations by
|
|
|
|
.Ar key
|
|
|
|
and
|
|
|
|
.Ar value
|
|
|
|
for the module specified by
|
|
|
|
.Ar module .
|
|
|
|
Notice that
|
2024-07-03 01:50:11 +00:00
|
|
|
.Ar key
|
2023-04-30 01:15:27 +00:00
|
|
|
and
|
|
|
|
.Ar value
|
2024-07-02 03:24:35 +00:00
|
|
|
must be quoted to be distinguished from the reserved word if needed.
|
2023-09-08 20:30:31 +00:00
|
|
|
.El
|
2024-07-05 02:44:07 +00:00
|
|
|
.It Xo
|
|
|
|
.Ic authenticate
|
|
|
|
.Ar username-pattern ...
|
|
|
|
.Ic by Ar auth
|
|
|
|
.Op Ic decorate-by Ar deco ...
|
|
|
|
.Xc
|
2023-04-30 01:15:27 +00:00
|
|
|
Specify an authentication configuration for the users specified by
|
2024-07-03 01:50:11 +00:00
|
|
|
.Ar username-pattern .
|
|
|
|
The users matched by the pattern are authenticated by the module
|
2024-07-02 03:24:35 +00:00
|
|
|
specified by
|
|
|
|
.Ar auth .
|
2023-04-30 01:15:27 +00:00
|
|
|
Use shell globbing rules for the pattern;
|
|
|
|
multiple patterns can be specified by separating with space characters.
|
|
|
|
When multiple
|
|
|
|
.Ic authenticate
|
|
|
|
lines are specified, the first
|
|
|
|
.Ic authenticate
|
|
|
|
setting whose
|
|
|
|
.Ar username-pattern
|
|
|
|
matches an authenticating user is used.
|
2024-07-02 03:24:35 +00:00
|
|
|
.Pp
|
|
|
|
Optionally decoration modules can be specified by
|
|
|
|
.Ar deco .
|
|
|
|
The specified modules decorate the RADIUS messages in the configured order.
|
2024-07-05 02:44:07 +00:00
|
|
|
.It Xo
|
|
|
|
.Ic account
|
|
|
|
.Op Ic quick
|
|
|
|
.Ar username-pattern ...
|
|
|
|
.Ic to Ar module
|
|
|
|
.Op Ic decorate-by Ar deco ...
|
|
|
|
.Xc
|
2024-07-02 03:24:35 +00:00
|
|
|
Specify an accounting configuration for the users specified by
|
|
|
|
.Ar username-pattern .
|
|
|
|
The accounting messages for the users matched by the pattern are handled
|
|
|
|
by the module specified by the
|
|
|
|
.Ar module .
|
|
|
|
Use shell globbing rules for the patterns;
|
|
|
|
multiple patterns can be determined by separating them with space characters.
|
|
|
|
When multiple
|
|
|
|
.Ic account
|
2024-07-05 02:44:07 +00:00
|
|
|
configurations are specified,
|
|
|
|
all matches are used;
|
|
|
|
if the user matches a pattern with the
|
|
|
|
.Ic quick
|
|
|
|
option, then processing stops after that configuration.
|
2024-07-02 03:24:35 +00:00
|
|
|
.Pp
|
|
|
|
Optionally decoration modules can be specified by
|
|
|
|
.Ar deco .
|
|
|
|
The specified modules decorate the RADIUS messages in the configured order.
|
2023-04-30 01:15:27 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
2024-07-02 03:24:35 +00:00
|
|
|
.Bl -tag -width "/etc/examples/radiusd.conf" -compact
|
2023-04-30 01:15:27 +00:00
|
|
|
.It Pa /etc/radiusd.conf
|
|
|
|
Default
|
|
|
|
.Xr radiusd 8
|
|
|
|
configuration file.
|
|
|
|
.It Pa /etc/examples/radiusd.conf
|
|
|
|
Example configuration file.
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
listen on 0.0.0.0
|
2024-07-02 03:24:35 +00:00
|
|
|
listen on 0.0.0.0 accounting
|
2023-09-08 20:30:31 +00:00
|
|
|
listen on ::
|
2024-07-02 03:24:35 +00:00
|
|
|
listen on :: accounting
|
2023-04-30 01:15:27 +00:00
|
|
|
|
|
|
|
client 127.0.0.1/32 {
|
2024-07-02 03:24:35 +00:00
|
|
|
secret "secret"
|
|
|
|
msgauth-required no
|
2023-04-30 01:15:27 +00:00
|
|
|
}
|
|
|
|
client 192.168.0.0/24 {
|
2024-07-02 03:24:35 +00:00
|
|
|
secret "secret"
|
2023-04-30 01:15:27 +00:00
|
|
|
}
|
|
|
|
|
2024-07-02 03:24:35 +00:00
|
|
|
module bsdauth {
|
|
|
|
set restrict-group operator
|
|
|
|
}
|
2023-09-08 20:30:31 +00:00
|
|
|
|
2024-07-02 03:24:35 +00:00
|
|
|
module radius {
|
|
|
|
set secret "testing123"
|
|
|
|
set server "127.0.0.1"
|
2023-04-30 01:15:27 +00:00
|
|
|
}
|
2024-07-02 03:24:35 +00:00
|
|
|
|
2024-07-04 01:05:14 +00:00
|
|
|
module standard
|
|
|
|
|
2024-07-02 03:24:35 +00:00
|
|
|
module strip-realm "/usr/libexec/radiusd/radiusd_standard" {
|
|
|
|
set strip-atmark-realm true
|
2023-04-30 01:15:27 +00:00
|
|
|
}
|
2024-07-02 03:24:35 +00:00
|
|
|
|
|
|
|
authenticate *@local by bsdauth decorate-by strip-realm
|
|
|
|
|
|
|
|
authenticate * by radius
|
|
|
|
|
|
|
|
account * to standard
|
2023-04-30 01:15:27 +00:00
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
2024-07-02 03:24:35 +00:00
|
|
|
.Xr radiusd 8 ,
|
|
|
|
.Xr radiusd_bsdauth 8 ,
|
|
|
|
.Xr radiusd_radius 8 ,
|
|
|
|
.Xr radiusd_standard 8
|