1
- # $OpenBSD: radiusd.conf,v 1.5 2023/09/24 06:09:35 yasuoka Exp $
1
+ # $OpenBSD: radiusd.conf,v 1.6 2025/03/10 04:05:14 yasuoka Exp $
2
2
3
3
listen on 0.0.0.0
4
+ listen on 0.0.0.0 accounting
4
5
#listen on ::
6
+ #listen on :: accounting
5
7
6
8
client 127.0.0.1/32 {
7
9
secret "secret"
@@ -13,20 +15,29 @@ client 192.168.0.0/24 {
13
15
secret "secret"
14
16
}
15
17
16
- module load bsdauth "/usr/libexec/radiusd/radiusd_bsdauth"
17
- #module set bsdauth restrict-group users
18
-
19
- module load radius "/usr/libexec/radiusd/radiusd_radius"
20
- module set radius secret "testing123"
21
- module set radius server "127.0.0.1"
18
+ module bsdauth {
19
+ set restrict-group users
20
+ # set restrict-group operator
21
+ }
22
22
23
- module load strip-realm "/usr/libexec/radiusd/radiusd_standard"
24
- module set strip-realm strip-atmark-realm true
23
+ module file {
24
+ set path "/etc/npppd/npppd-users"
25
+ }
25
26
26
- authenticate *@local {
27
- authenticate-by bsdauth
28
- decorate-by strip-realm
27
+ module radius {
28
+ set secret "testing123"
29
+ set server "127.0.0.1"
29
30
}
30
- authenticate *@example.com {
31
- authenticate-by radius
31
+
32
+ module standard
33
+
34
+ # Use a special name "strip-realm", then the path must be sepecified
35
+ module strip-realm "/usr/libexec/radiusd/radiusd_standard" {
36
+ set strip-atmark-realm true
32
37
}
38
+
39
+ authenticate *@local by bsdauth decorate-by strip-realm
40
+ authenticate *@file by file decorate-by strip-realm
41
+ authenticate * by radius
42
+
43
+ account * to standard
0 commit comments