-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathradiusd.conf
83 lines (79 loc) · 1.49 KB
/
radiusd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name = freeradius
prefix = /usr
exec_prefix = /usr
sysconfdir = /etc
localstatedir = /var
sbindir = ${exec_prefix}/sbin
logdir = /var/log/freeradius
raddbdir = /etc/freeradius
radacctdir = ${logdir}/radacct
run_dir = ${localstatedir}/run/${name}
libdir = /usr/lib/freeradius
pidfile = ${run_dir}/${name}.pid
hostname_lookups = no
proxy_requests = no
modules {
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
}
pap {
normalise = yes
}
chap {
# no config
}
mschap {
#no config
}
sql {
driver = "rlm_sql_mysql"
dialect = "mysql"
server = "mysql-freeradius"
radius_db = "radius"
port = 3306
login = "raduser"
password = "radpass"
acct_table1 = "radacct"
acct_table2 = "radacct"
postauth_table = "radpostauth"
authcheck_table = "radcheck"
groupcheck_table = "radgroupcheck"
authreply_table = "radreply"
groupreply_table = "radgroupreply"
usergroup_table = "radusergroup"
read_clients = yes
client_table = "nas"
delete_stale_sessions = yes
group_attribute = "SQL-Group"
$INCLUDE ${confdir}/queries.conf
}
}
client default {
ipaddr = "127.0.0.1"
secret = "secret"
}
server default {
listen {
type = "auth"
ipv4addr = *
port = 1812
}
authorize {
chap
mschap
sql
pap
}
authenticate {
Auth-Type PAP {
pap
}
Auth-Type CHAP {
chap
}
Auth-Type MS-CHAP {
mschap
}
mschap
}
}