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.
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
eap {
|
||||
default_eap_type = sim
|
||||
sim {
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
server default {
|
||||
|
||||
listen {
|
||||
type = auth
|
||||
ipaddr = 10.1.0.10
|
||||
port = 0
|
||||
}
|
||||
|
||||
authorize {
|
||||
preprocess
|
||||
files
|
||||
eap {
|
||||
ok = return
|
||||
}
|
||||
expiration
|
||||
logintime
|
||||
}
|
||||
|
||||
authenticate {
|
||||
eap
|
||||
}
|
||||
|
||||
preacct {
|
||||
preprocess
|
||||
acct_unique
|
||||
suffix
|
||||
files
|
||||
}
|
||||
|
||||
accounting {
|
||||
detail
|
||||
unix
|
||||
radutmp
|
||||
exec
|
||||
attr_filter.accounting_response
|
||||
}
|
||||
|
||||
session {
|
||||
radutmp
|
||||
}
|
||||
|
||||
post-auth {
|
||||
exec
|
||||
Post-Auth-Type REJECT {
|
||||
attr_filter.access_reject
|
||||
eap
|
||||
remove_reply_message_if_eap
|
||||
}
|
||||
}
|
||||
|
||||
pre-proxy {
|
||||
}
|
||||
|
||||
post-proxy {
|
||||
eap
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
228060123456001 EAP-Type := SIM, EAP-Sim-RAND1 := 0x30000000000000000000000000000000, EAP-Sim-SRES1 := 0x30112233, EAP-Sim-KC1 := 0x305566778899AABB, EAP-Sim-RAND2 := 0x31000000000000000000000000000000, EAP-Sim-SRES2 := 0x31112233, EAP-Sim-KC2 := 0x315566778899AABB, EAP-Sim-RAND3 := 0x32000000000000000000000000000000, EAP-Sim-SRES3 := 0x32112233, EAP-Sim-KC3 := 0x325566778899AABB
|
||||
228060123456002 EAP-Type := SIM, EAP-Sim-RAND1 := 0x33000000000000000000000000000000, EAP-Sim-SRES1 := 0x33112233, EAP-Sim-KC1 := 0x335566778899AABB, EAP-Sim-RAND2 := 0x34000000000000000000000000000000, EAP-Sim-SRES2 := 0x34112233, EAP-Sim-KC2 := 0x345566778899AABB, EAP-Sim-RAND3 := 0x35000000000000000000000000000000, EAP-Sim-SRES3 := 0x35112233, EAP-Sim-KC3 := 0x355566778899AABB
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
sim_files {
|
||||
simtriplets = "/etc/freeradius/triplets.dat"
|
||||
}
|
||||
+12
-2
@@ -2,13 +2,23 @@ authorize {
|
||||
preprocess
|
||||
chap
|
||||
mschap
|
||||
sim_files
|
||||
suffix
|
||||
files
|
||||
update reply {
|
||||
EAP-Sim-Rand1 := "%{control:EAP-Sim-Rand1}"
|
||||
EAP-Sim-Rand2 := "%{control:EAP-Sim-Rand2}"
|
||||
EAP-Sim-Rand3 := "%{control:EAP-Sim-Rand3}"
|
||||
EAP-Sim-SRES1 := "%{control:EAP-Sim-SRES1}"
|
||||
EAP-Sim-SRES2 := "%{control:EAP-Sim-SRES2}"
|
||||
EAP-Sim-SRES3 := "%{control:EAP-Sim-SRES3}"
|
||||
EAP-Sim-KC1 := "%{control:EAP-Sim-KC1}"
|
||||
EAP-Sim-KC2 := "%{control:EAP-Sim-KC2}"
|
||||
EAP-Sim-KC3 := "%{control:EAP-Sim-KC3}"
|
||||
}
|
||||
eap {
|
||||
ok = return
|
||||
}
|
||||
unix
|
||||
files
|
||||
expiration
|
||||
logintime
|
||||
pap
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
228060123456001,30000000000000000000000000000000,30112233,305566778899AABB
|
||||
228060123456001,31000000000000000000000000000000,31112233,315566778899AABB
|
||||
228060123456001,32000000000000000000000000000000,32112233,325566778899AABB
|
||||
228060123456002,33000000000000000000000000000000,33112233,335566778899AABB
|
||||
228060123456002,34000000000000000000000000000000,34112233,345566778899AABB
|
||||
228060123456002,35000000000000000000000000000000,35112233,355566778899AABB
|
||||
@@ -0,0 +1,2 @@
|
||||
228060123456001 EAP-Type := SIM, EAP-Sim-RAND1 := 0x30000000000000000000000000000000, EAP-Sim-SRES1 := 0x30112233, EAP-Sim-KC1 := 0x305566778899AABB, EAP-Sim-RAND2 := 0x31000000000000000000000000000000, EAP-Sim-SRES2 := 0x31112233, EAP-Sim-KC2 := 0x315566778899AABB, EAP-Sim-RAND3 := 0x32000000000000000000000000000000, EAP-Sim-SRES3 := 0x32112233, EAP-Sim-KC3 := 0x325566778899AABB
|
||||
228060123456002 EAP-Type := SIM, EAP-Sim-RAND1 := 0x33000000000000000000000000000000, EAP-Sim-SRES1 := 0x33112233, EAP-Sim-KC1 := 0x335566778899AABB, EAP-Sim-RAND2 := 0x34000000000000000000000000000000, EAP-Sim-SRES2 := 0x34112233, EAP-Sim-KC2 := 0x345566778899AABB, EAP-Sim-RAND3 := 0x35000000000000000000000000000000, EAP-Sim-SRES3 := 0x35112233, EAP-Sim-KC3 := 0x355566778899AABB
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
alice::cat /etc/freeradius/clients.conf
|
||||
alice::cat /etc/freeradius/eap.conf
|
||||
alice::cat /etc/freeradius/proxy.conf
|
||||
alice::cat /etc/freeradius/triplets.dat
|
||||
carol::cat /etc/ipsec.d/triplets.dat
|
||||
dave::cat /etc/ipsec.d/triplets.dat
|
||||
alice::freeradius
|
||||
|
||||
Reference in New Issue
Block a user