Skip to content

Commit 231828f

Browse files
committed
testing: Config changes for FreeRADIUS 3.0
Also includes some changes for jessie's version of FreeRADIUS 2 (was previously a custom version). Besides the move to a subdir the config files were adapted for 3.0. The rlm_sim_files module was removed with FreeRADIUS 3 and Debian's package of FreeRADIUS 2 does not ship it, so we now replicate it using the files module (via users file, which is actually a symlink to mods-config/files/authorize in the default installation of FreeRADIUS 3). Another approach was tried using rlm_passwd, however, that module does not read binary/hex data, only printable strings, which would require changing the triplets. For 2.x a hack in the site config is necessary to make the attributes available to the EAP-SIM module.
1 parent a8112cc commit 231828f

File tree

104 files changed

+1284
-68
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1284
-68
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
client moon {
2+
ipaddr = 10.1.0.1
3+
secret = gv6URkSs
4+
require_message_authenticator = yes
5+
}
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# radiusd.conf -- FreeRADIUS server configuration file.
2+
3+
prefix = /usr
4+
exec_prefix = /usr
5+
sysconfdir = /etc
6+
localstatedir = /var
7+
sbindir = ${exec_prefix}/sbin
8+
logdir = /var/log/freeradius
9+
raddbdir = /etc/freeradius/3.0
10+
radacctdir = ${logdir}/radacct
11+
12+
# name of the running server. See also the "-n" command-line option.
13+
name = freeradius
14+
15+
# Location of config and logfiles.
16+
confdir = ${raddbdir}
17+
modconfdir = ${confdir}/mods-config
18+
certdir = ${sysconfdir}/raddb/certs
19+
cadir = ${sysconfdir}/raddb/certs
20+
run_dir = ${localstatedir}/run/${name}
21+
22+
# Should likely be ${localstatedir}/lib/radiusd
23+
db_dir = ${raddbdir}
24+
25+
# libdir: Where to find the rlm_* modules.
26+
libdir = ${exec_prefix}/lib
27+
28+
# pidfile: Where to place the PID of the RADIUS server.
29+
pidfile = ${run_dir}/${name}.pid
30+
31+
# correct_escapes: use correct backslash escaping
32+
correct_escapes = true
33+
34+
# max_request_time: The maximum time (in seconds) to handle a request.
35+
max_request_time = 30
36+
37+
# cleanup_delay: The time to wait (in seconds) before cleaning up
38+
cleanup_delay = 5
39+
40+
# max_requests: The maximum number of requests which the server keeps
41+
max_requests = 1024
42+
43+
# hostname_lookups: Log the names of clients or just their IP addresses
44+
hostname_lookups = no
45+
46+
# Logging section
47+
log {
48+
destination = files
49+
colourise = yes
50+
file = ${logdir}/radius.log
51+
syslog_facility = daemon
52+
stripped_names = no
53+
auth = yes
54+
auth_badpass = yes
55+
auth_goodpass = yes
56+
}
57+
58+
# The program to execute to do concurrency checks.
59+
checkrad = ${sbindir}/checkrad
60+
61+
# SECURITY CONFIGURATION
62+
security {
63+
user = freerad
64+
group = freerad
65+
allow_core_dumps = no
66+
max_attributes = 200
67+
reject_delay = 1
68+
status_server = yes
69+
}
70+
71+
# PROXY CONFIGURATION
72+
proxy_requests = yes
73+
$INCLUDE proxy.conf
74+
75+
# CLIENTS CONFIGURATION
76+
$INCLUDE clients.conf
77+
78+
# THREAD POOL CONFIGURATION
79+
thread pool {
80+
start_servers = 5
81+
max_servers = 32
82+
min_spare_servers = 3
83+
max_spare_servers = 10
84+
max_requests_per_server = 0
85+
auto_limit_acct = no
86+
}
87+
88+
# MODULE CONFIGURATION
89+
modules {
90+
$INCLUDE ${confdir}/mods-enabled/
91+
}
92+
93+
# Policies
94+
policy {
95+
$INCLUDE policy.d/
96+
}
97+
98+
# Include all enabled virtual hosts
99+
$INCLUDE sites-enabled/

testing/hosts/alice/etc/freeradius/radiusd.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ thread pool {
101101
modules {
102102
$INCLUDE ${confdir}/modules/
103103
$INCLUDE eap.conf
104-
$INCLUDE sql.conf
105-
$INCLUDE sql/mysql/counter.conf
106104
}
107105

108106
# Instantiation
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
eap {
2+
default_eap_type = md5
3+
md5 {
4+
}
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
realm strongswan.org {
2+
type = radius
3+
authhost = LOCAL
4+
accthost = LOCAL
5+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
server default {
2+
3+
listen {
4+
type = auth
5+
ipaddr = 10.1.0.10
6+
port = 0
7+
}
8+
9+
authorize {
10+
suffix
11+
files
12+
eap {
13+
ok = return
14+
}
15+
}
16+
17+
authenticate {
18+
eap
19+
}
20+
21+
preacct {
22+
preprocess
23+
acct_unique
24+
suffix
25+
files
26+
}
27+
28+
accounting {
29+
detail
30+
unix
31+
radutmp
32+
exec
33+
attr_filter.accounting_response
34+
}
35+
36+
session {
37+
radutmp
38+
}
39+
40+
post-auth {
41+
exec
42+
Post-Auth-Type REJECT {
43+
attr_filter.access_reject
44+
eap
45+
remove_reply_message_if_eap
46+
}
47+
}
48+
49+
pre-proxy {
50+
}
51+
52+
post-proxy {
53+
eap
54+
}
55+
56+
}

testing/tests/ikev1/xauth-rsa-eap-md5-radius/hosts/alice/etc/freeradius/3.0/sites-available/inner-tunnel

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
carol Cleartext-Password := "4iChxLT3"

testing/tests/ikev1/xauth-rsa-radius/hosts/alice/etc/freeradius/3.0/mods-available/eap

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
realm strongswan.org {
2+
type = radius
3+
authhost = LOCAL
4+
accthost = LOCAL
5+
}

0 commit comments

Comments
 (0)