Freeradius-Users
Threads by month
- ----- 2026 -----
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
July 2020
- 45 participants
- 49 discussions
Hello!
I just noticed something strange with 3.0.21 from buster-backports.
I have a custom policy in policy.d/thm_rada uses another policy from
policy.d/canonicalization and this works in my test system:
[...]
including files in directory /etc/freeradius/3.0/policy.d/
including configuration file /etc/freeradius/3.0/policy.d/control
including configuration file /etc/freeradius/3.0/policy.d/rfc7542
including configuration file /etc/freeradius/3.0/policy.d/canonicalization
including configuration file /etc/freeradius/3.0/policy.d/abfab-tr
including configuration file /etc/freeradius/3.0/policy.d/dhcp
including configuration file /etc/freeradius/3.0/policy.d/thm_rada
including configuration file /etc/freeradius/3.0/policy.d/debug
including configuration file /etc/freeradius/3.0/policy.d/accounting
including configuration file /etc/freeradius/3.0/policy.d/eap
including configuration file /etc/freeradius/3.0/policy.d/cui
including configuration file /etc/freeradius/3.0/policy.d/filter
including configuration file
/etc/freeradius/3.0/policy.d/moonshot-targeted-ids
including configuration file /etc/freeradius/3.0/policy.d/operator-name
including files in directory /etc/freeradius/3.0/sites-enabled/
including configuration file /etc/freeradius/3.0/sites-enabled/default
main {
security {
user = "freerad"
group = "freerad"
[...]
Now I tar'ed and copied the whole /etc/freeradius/ structure to my new
to-be-production system and this happens:
[...]
including files in directory /etc/freeradius/3.0/policy.d/
including configuration file /etc/freeradius/3.0/policy.d/eap
including configuration file /etc/freeradius/3.0/policy.d/control
including configuration file /etc/freeradius/3.0/policy.d/operator-name
including configuration file /etc/freeradius/3.0/policy.d/debug
including configuration file /etc/freeradius/3.0/policy.d/abfab-tr
including configuration file /etc/freeradius/3.0/policy.d/thm_rada
/etc/freeradius/3.0/policy.d/thm_rada[6]: Reference
"${policy.mac-addr-regexp}" not found
/etc/freeradius/3.0/policy.d/thm_rada[6]: Parse error expanding ${...}
in condition
Errors reading or parsing /etc/freeradius/3.0/radiusd.conf
[...]
Notice how the load-order is different? It seems freeradius does not
load the files in alphanumeric order but in the order the filesystem
presents them, breaking the parsing of policy.d/thm_rada in this case
because policy.d/canonicalization hasn't been parsed yet.
Is this known or am I doing something wrong?
The comment states "If policy A calls policy B, then B MUST be defined
before A." which I am doing here, because "t" comes after "c" but it
clearly isn't doing that.
Grüße,
Sven
4
17
15 Jul '20
Lololol
On July 15, 2020, at 4:32 PM, marki <jm+freeradiususer(a)roth.lu> wrote:
This is hilarious. I am grabbing popcorn as we speak.
On July 15, 2020 10:20:09 PM GMT+02:00, Maile Halatuituia <maile.halatuituia(a)tcc.to> wrote:
>Hi List
>
>Appreciate if someone would give some hint on the above subject.
>
>
>Thanks
>
>[TCC]
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
1
0
> I've attached a patch which _may_ help Please test. And if so,
I'll push it to the v3.0.x branch.
>
> Alan DeKok.
Hi Alan,
this did the trick. Many thanks!
Jonas
(Used another mail address - Mailfence seems to be not working properly
at the moment...)
2
1
Hello,
I’m using Grandstream and Aruba APs. I’m trying to kick out clients from
Wifi from Radius and also I’m trying to setup the timeout from Radius.
Could you guide me on how to do this? if you could point me out into the
right documentation.
Thanks
Eric
2
1
Hi there, I'm new to freeradius and I'm trying to configure it to
authenticate on a AD domain using mschap and ntlm_auth. From a client I
have put domain, username and password in variables to be sure that
there are no typing errors, then I run:
> # ntlm_auth --allow-mschapv2 --domain=$domain --username=$username --password=$password && radtest -t mschap "$domain\\$username" $password 127.0.0.1 0 testing123
> NT_STATUS_OK: The operation completed successfully. (0x0)
> Sent Access-Request Id 58 from 0.0.0.0:55359 to 127.0.0.1:1812 length 139
> User-Name = "CSATEST\\user1"
> MS-CHAP-Password = "Alfa.2020"
> NAS-IP-Address = 192.168.64.10
> NAS-Port = 0
> Message-Authenticator = 0x00
> Cleartext-Password = "Alfa.2020"
> MS-CHAP-Challenge = 0x6b4e461a0c35c8da
> MS-CHAP-Response = 0x0001000000000000000000000000000000000000000000000000fa5ab330052688e78de5ccbba7d9d954abf1e1b85596b385
> Received Access-Reject Id 58 from 127.0.0.1:1812 to 127.0.0.1:55359 length 61
> MS-CHAP-Error = "\000E=691 R=1 C=373db952a357b248 V=2"
> (0) -: Expected Access-Accept got Access-Reject
From server side freeradius said:
> (5) Received Access-Request Id 58 from 127.0.0.1:55359 to 127.0.0.1:1812 length 139
> (5) User-Name = "CSATEST\\user1"
> (5) NAS-IP-Address = 192.168.64.10
> (5) NAS-Port = 0
> (5) Message-Authenticator = 0x20d737038881440d2585fa1b63641a0f
> (5) MS-CHAP-Challenge = 0x6b4e461a0c35c8da
> (5) MS-CHAP-Response = 0x0001000000000000000000000000000000000000000000000000fa5ab330052688e78de5ccbba7d9d954abf1e1b85596b385
> (5) # Executing section authorize from file /etc/freeradius/3.0/sites-enabled/default
> (5) authorize {
> (5) policy filter_username {
> (5) if (&User-Name) {
> (5) if (&User-Name) -> TRUE
> (5) if (&User-Name) {
> (5) if (&User-Name =~ / /) {
> (5) if (&User-Name =~ / /) -> FALSE
> (5) if (&User-Name =~ /@[^@]*@/ ) {
> (5) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
> (5) if (&User-Name =~ /\.\./ ) {
> (5) if (&User-Name =~ /\.\./ ) -> FALSE
> (5) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
> (5) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
> (5) if (&User-Name =~ /\.$/) {
> (5) if (&User-Name =~ /\.$/) -> FALSE
> (5) if (&User-Name =~ /(a)\./) {
> (5) if (&User-Name =~ /(a)\./) -> FALSE
> (5) } # if (&User-Name) = notfound
> (5) } # policy filter_username = notfound
> (5) [preprocess] = ok
> (5) [chap] = noop
> (5) mschap: Found MS-CHAP attributes. Setting 'Auth-Type = mschap'
> (5) [mschap] = ok
> (5) [digest] = noop
> (5) suffix: Checking for suffix after "@"
> (5) suffix: No '@' in User-Name = "CSATEST\user1", looking up realm NULL
> (5) suffix: No such realm "NULL"
> (5) [suffix] = noop
> (5) eap: No EAP-Message, not doing EAP
> (5) [eap] = noop
> (5) [files] = noop
> (5) [expiration] = noop
> (5) [logintime] = noop
> (5) pap: WARNING: No "known good" password found for the user. Not setting Auth-Type
> (5) pap: WARNING: Authentication will fail unless a "known good" password is available
> (5) [pap] = noop
> (5) } # authorize = ok
> (5) Found Auth-Type = mschap
> (5) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
> (5) authenticate {
> (5) mschap: Client is using MS-CHAPv1 with NT-Password
> (5) mschap: Executing: /usr/bin/ntlm_auth --request-nt-key --allow-mschapv2 --domain=%{mschap:NT-Domain} --username=%{mschap:User-Name}:
> (5) mschap: EXPAND --domain=%{mschap:NT-Domain}
> (5) mschap: --> --domain=CSATEST
> (5) mschap: EXPAND --username=%{mschap:User-Name}
> (5) mschap: --> --username=user1
> (5) mschap: ERROR: Program returned code (1) and output 'Password: NT_STATUS_WRONG_PASSWORD: When trying to update a password, this return status indicates that the value provided as the current password is not correct. (0xc000006a)'
> (5) mschap: External script failed
> (5) mschap: ERROR: External script says: Password: NT_STATUS_WRONG_PASSWORD: When trying to update a password, this return status indicates that the value provided as the current password is not correct. (0xc000006a)
> (5) mschap: ERROR: MS-CHAP2-Response is incorrect
> (5) [mschap] = reject
> (5) } # authenticate = reject
> (5) Failed to authenticate the user
> (5) Using Post-Auth-Type Reject
> (5) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
> (5) Post-Auth-Type REJECT {
> (5) attr_filter.access_reject: EXPAND %{User-Name}
> (5) attr_filter.access_reject: --> CSATEST\\user1
> (5) attr_filter.access_reject: Matched entry DEFAULT at line 11
> (5) [attr_filter.access_reject] = updated
> (5) [eap] = noop
> (5) policy remove_reply_message_if_eap {
> (5) if (&reply:EAP-Message && &reply:Reply-Message) {
> (5) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
> (5) else {
> (5) [noop] = noop
> (5) } # else = noop
> (5) } # policy remove_reply_message_if_eap = noop
> (5) } # Post-Auth-Type REJECT = updated
> (5) Login incorrect (mschap: Program returned code (1) and output 'Password: NT_STATUS_WRONG_PASSWORD: When trying to update a password, this return status indicates that the value provided as the current password is not correct. (0xc000006a)'): [CSATEST\user1] (from client localhost port 0)
> (5) Delaying response for 1.000000 seconds
> Waking up in 0.2 seconds.
> Waking up in 0.7 seconds.
> (5) Sending delayed response
> (5) Sent Access-Reject Id 58 from 127.0.0.1:1812 to 127.0.0.1:55359 length 61
> (5) MS-CHAP-Error = "\000E=691 R=1 C=373db952a357b248 V=2"
> Waking up in 3.9 seconds.
> (5) Cleaning up request packet ID 58 with timestamp +927
Someone can help me to understand where I wrong?
Piviul
4
18
Hi Alan,
this did the trick. Many thanks!
Jonas
1
0
Hi,
I’m trying to replace radsecproxy to use the RadSec capabilities of the current versions of FR. All in all it works – but I still have a problem with proxy fail-over (similar, I think, to this one: https://github.com/FreeRADIUS/freeradius-server/issues/2284) If the first server isn’t available radiusd doesn’t even try to look for the second one.
I've compiled 3.0.21 (using CentOS 7) but still the proxying won't work.
The debug output (radiusd -fxx -l stdout because of TLS; rad-dev is 192.168.89.56 and rad-dev-02 is 192.168.89.58):
FreeRADIUS Version 3.0.21
Copyright (C) 1999-2019 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/local/share/freeradius/dictionary
including dictionary file /usr/local/share/freeradius/dictionary.dhcp
including dictionary file /usr/local/share/freeradius/dictionary.vqp
including dictionary file /usr/local/etc/raddb/dictionary
including configuration file /usr/local/etc/raddb/radiusd.conf
including configuration file /usr/local/etc/raddb/proxy.conf
including configuration file /usr/local/etc/raddb/clients.conf
including files in directory /usr/local/etc/raddb/mods-enabled/
including configuration file /usr/local/etc/raddb/mods-enabled/ldap
including configuration file /usr/local/etc/raddb/mods-enabled/files
including configuration file /usr/local/etc/raddb/mods-enabled/utf8
including configuration file /usr/local/etc/raddb/mods-enabled/radutmp
including configuration file /usr/local/etc/raddb/mods-enabled/mschap
including configuration file /usr/local/etc/raddb/mods-enabled/realm
including configuration file /usr/local/etc/raddb/mods-enabled/dhcp
including configuration file /usr/local/etc/raddb/mods-enabled/unix
including configuration file /usr/local/etc/raddb/mods-enabled/detail
including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp
including configuration file /usr/local/etc/raddb/mods-enabled/eap
including configuration file /usr/local/etc/raddb/mods-enabled/echo
including configuration file /usr/local/etc/raddb/mods-enabled/soh
including configuration file /usr/local/etc/raddb/mods-enabled/ntlm_auth
including configuration file /usr/local/etc/raddb/mods-enabled/digest
including configuration file /usr/local/etc/raddb/mods-enabled/preprocess
including configuration file /usr/local/etc/raddb/mods-enabled/replicate
including configuration file /usr/local/etc/raddb/mods-enabled/unpack
including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap
including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter
including configuration file /usr/local/etc/raddb/mods-enabled/passwd
including configuration file /usr/local/etc/raddb/mods-enabled/dynamic_clients
including configuration file /usr/local/etc/raddb/mods-enabled/exec
including configuration file /usr/local/etc/raddb/mods-enabled/detail.log
including configuration file /usr/local/etc/raddb/mods-enabled/expr
including configuration file /usr/local/etc/raddb/mods-enabled/date
including configuration file /usr/local/etc/raddb/mods-enabled/always
including configuration file /usr/local/etc/raddb/mods-enabled/pap
including configuration file /usr/local/etc/raddb/mods-enabled/logintime
including configuration file /usr/local/etc/raddb/mods-enabled/expiration
including configuration file /usr/local/etc/raddb/mods-enabled/linelog
including configuration file /usr/local/etc/raddb/mods-enabled/chap
including files in directory /usr/local/etc/raddb/policy.d/
including configuration file /usr/local/etc/raddb/policy.d/dhcp
including configuration file /usr/local/etc/raddb/policy.d/debug
including configuration file /usr/local/etc/raddb/policy.d/control
including configuration file /usr/local/etc/raddb/policy.d/eap
including configuration file /usr/local/etc/raddb/policy.d/cui
including configuration file /usr/local/etc/raddb/policy.d/accounting
including configuration file /usr/local/etc/raddb/policy.d/filter
including configuration file /usr/local/etc/raddb/policy.d/operator-name
including configuration file /usr/local/etc/raddb/policy.d/canonicalization
including files in directory /usr/local/etc/raddb/sites-enabled/
including configuration file /usr/local/etc/raddb/sites-enabled/***-test
including configuration file /usr/local/etc/raddb/sites-enabled/inner-tunnel
including configuration file /usr/local/etc/raddb/sites-enabled/default
main {
security {
allow_core_dumps = no
}
name = "radiusd"
prefix = "/usr/local"
localstatedir = "/usr/local/var"
logdir = "/usr/local/var/log/radius"
run_dir = "/usr/local/var/run/radiusd"
}
main {
name = "radiusd"
prefix = "/usr/local"
localstatedir = "/usr/local/var"
sbindir = "/usr/local/sbin"
logdir = "/usr/local/var/log/radius"
run_dir = "/usr/local/var/run/radiusd"
libdir = "/usr/local/lib"
radacctdir = "/usr/local/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 16384
pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
checkrad = "/usr/local/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
allow_vulnerable_openssl = "no"
}
}
radiusd: #### Loading Realms and Home Servers ####
home_server rad-dev {
ipaddr = rad-dev.*** IPv4 address [192.168.89.56]
port = 2083
type = "auth+acct"
proto = "tcp"
response_window = 30.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "none"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
tls {
verify_depth = 0
pem_file_type = yes
private_key_file = "/usr/local/etc/raddb/certs/***.key.pem"
certificate_file = "/usr/local/etc/raddb/certs/***.cert.pem"
ca_file = "/usr/local/etc/raddb/certs/***.cert.pem"
fragment_size = 8192
include_length = yes
check_crl = no
ecdh_curve = "prime256v1"
tls_max_version = ""
tls_min_version = "1.0"
}
The configuration allows TLS 1.0 and/or TLS 1.1. We STRONGLY recommned using only TLS 1.2 for security
Please set: tls_min_version = "1.2"
home_server rad-dev-02 {
ipaddr = rad-dev-02.*** IPv4 address [192.168.89.58]
port = 2083
type = "auth+acct"
proto = "tcp"
response_window = 5.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "none"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
tls {
verify_depth = 0
pem_file_type = yes
private_key_file = "/usr/local/etc/raddb/certs/***.key.pem"
certificate_file = "/usr/local/etc/raddb/certs/***.cert.pem"
ca_file = "/usr/local/etc/raddb/certs/***.cert.pem"
fragment_size = 8192
include_length = yes
check_crl = no
ecdh_curve = "prime256v1"
tls_max_version = ""
tls_min_version = "1.0"
}
The configuration allows TLS 1.0 and/or TLS 1.1. We STRONGLY recommned using only TLS 1.2 for security
Please set: tls_min_version = "1.2"
home_server_pool rad-dev-pool {
type = fail-over
home_server = rad-dev
home_server = rad-dev-02
}
realm proxy.test {
auth_pool = rad-dev-pool
nostrip
}
radiusd: #### Loading Clients ####
client *** {
ipaddr = 192.168.89.0/24
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debugger not attached
# Creating Auth-Type = eap-***
# Creating Auth-Type = mschap
# Creating Auth-Type = eap
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_ldap
# Loading module "ldap" from file /usr/local/etc/raddb/mods-enabled/ldap
ldap {
server = "ldap.***"
identity = "cn=manager,dc=***"
password = <<< secret >>>
sasl {
}
user {
scope = "sub"
access_positive = yes
sasl {
}
}
group {
filter = "(objectClass=posixGroup)"
scope = "sub"
name_attribute = "cn"
membership_attribute = "memberOf"
cacheable_name = no
cacheable_dn = no
allow_dangling_group_ref = no
}
client {
filter = "(objectClass=radiusClient)"
scope = "sub"
base_dn = "dc=***"
}
profile {
}
options {
ldap_debug = 40
chase_referrals = yes
rebind = yes
net_timeout = 1
res_timeout = 10
srv_timelimit = 3
idle = 60
probes = 3
interval = 3
}
tls {
start_tls = no
}
}
Creating attribute LDAP-Group
# Loaded module rlm_files
# Loading module "files" from file /usr/local/etc/raddb/mods-enabled/files
files {
filename = "/usr/local/etc/raddb/mods-config/files/authorize"
acctusersfile = "/usr/local/etc/raddb/mods-config/files/accounting"
preproxy_usersfile = "/usr/local/etc/raddb/mods-config/files/pre-proxy"
}
# Loaded module rlm_utf8
# Loading module "utf8" from file /usr/local/etc/raddb/mods-enabled/utf8
# Loaded module rlm_radutmp
# Loading module "radutmp" from file /usr/local/etc/raddb/mods-enabled/radutmp
radutmp {
filename = "/usr/local/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /usr/local/etc/raddb/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loaded module rlm_realm
# Loading module "IPASS" from file /usr/local/etc/raddb/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /usr/local/etc/raddb/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /usr/local/etc/raddb/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /usr/local/etc/raddb/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_dhcp
# Loading module "dhcp" from file /usr/local/etc/raddb/mods-enabled/dhcp
# Loaded module rlm_unix
# Loading module "unix" from file /usr/local/etc/raddb/mods-enabled/unix
unix {
radwtmp = "/usr/local/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_detail
# Loading module "detail" from file /usr/local/etc/raddb/mods-enabled/detail
detail {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "sradutmp" from file /usr/local/etc/raddb/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/usr/local/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_eap
# Loading module "eap" from file /usr/local/etc/raddb/mods-enabled/eap
eap {
default_eap_type = "peap"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 16384
}
# Loading module "eap-***" from file /usr/local/etc/raddb/mods-enabled/eap
eap eap-*** {
default_eap_type = "tls"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 16384
}
# Loaded module rlm_exec
# Loading module "echo" from file /usr/local/etc/raddb/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loaded module rlm_soh
# Loading module "soh" from file /usr/local/etc/raddb/mods-enabled/soh
soh {
dhcp = yes
}
# Loading module "ntlm_auth" from file /usr/local/etc/raddb/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_digest
# Loading module "digest" from file /usr/local/etc/raddb/mods-enabled/digest
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /usr/local/etc/raddb/mods-enabled/preprocess
preprocess {
huntgroups = "/usr/local/etc/raddb/mods-config/preprocess/huntgroups"
hints = "/usr/local/etc/raddb/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_replicate
# Loading module "replicate" from file /usr/local/etc/raddb/mods-enabled/replicate
# Loaded module rlm_unpack
# Loading module "unpack" from file /usr/local/etc/raddb/mods-enabled/unpack
# Loaded module rlm_cache
# Loading module "cache_eap" from file /usr/local/etc/raddb/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /usr/local/etc/raddb/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file /usr/local/etc/raddb/mods-enabled/dynamic_clients
# Loading module "exec" from file /usr/local/etc/raddb/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loading module "auth_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail auth_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail reply_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail post_proxy_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_expr
# Loading module "expr" from file /usr/local/etc/raddb/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loaded module rlm_date
# Loading module "date" from file /usr/local/etc/raddb/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loaded module rlm_always
# Loading module "reject" from file /usr/local/etc/raddb/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /usr/local/etc/raddb/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /usr/local/etc/raddb/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /usr/local/etc/raddb/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /usr/local/etc/raddb/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /usr/local/etc/raddb/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /usr/local/etc/raddb/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /usr/local/etc/raddb/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /usr/local/etc/raddb/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_pap
# Loading module "pap" from file /usr/local/etc/raddb/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_logintime
# Loading module "logintime" from file /usr/local/etc/raddb/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_expiration
# Loading module "expiration" from file /usr/local/etc/raddb/mods-enabled/expiration
# Loaded module rlm_linelog
# Loading module "linelog" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog {
filename = "/usr/local/var/log/radius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog log_accounting {
filename = "/usr/local/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loading module "linelog_recv_request" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog linelog_recv_request {
filename = "syslog"
escape_filenames = no
syslog_facility = "local0"
syslog_severity = "debug"
permissions = 384
format = "action = Recv-Request, %{pairs:request:}"
}
# Loading module "linelog_send_accept" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog linelog_send_accept {
filename = "syslog"
escape_filenames = no
syslog_facility = "local0"
syslog_severity = "debug"
permissions = 384
format = "action = Send-Accept, %{pairs:request:}"
}
# Loading module "linelog_send_reject" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog linelog_send_reject {
filename = "syslog"
escape_filenames = no
syslog_facility = "local0"
syslog_severity = "debug"
permissions = 384
format = "action = Send-Reject, %{pairs:request:}"
}
# Loading module "linelog_send_proxy_request" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog linelog_send_proxy_request {
filename = "syslog"
escape_filenames = no
syslog_facility = "local0"
syslog_severity = "debug"
permissions = 384
format = "action = Send-Proxy-Request, %{pairs:proxy-request:}"
}
# Loading module "linelog_recv_proxy_response" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog linelog_recv_proxy_response {
filename = "syslog"
escape_filenames = no
syslog_facility = "local0"
syslog_severity = "debug"
permissions = 384
reference = "messages.%{proxy-reply:Response-Packet-Type}"
}
# Loading module "linelog_not_anonymous" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog linelog_not_anonymous {
filename = "syslog"
escape_filenames = no
syslog_facility = "local0"
syslog_severity = "debug"
permissions = 384
format = "Outer identity not anonymous: %{User-Name}"
}
# Loaded module rlm_chap
# Loading module "chap" from file /usr/local/etc/raddb/mods-enabled/chap
instantiate {
}
# Instantiating module "ldap" from file /usr/local/etc/raddb/mods-enabled/ldap
rlm_ldap: libldap vendor: OpenLDAP, version: 20444
accounting {
reference = "%{tolower:type.%{Acct-Status-Type}}"
}
post-auth {
reference = "."
}
rlm_ldap (ldap): Initialising connection pool
pool {
start = 5
min = 3
max = 32
spare = 10
uses = 0
lifetime = 0
cleanup_interval = 30
idle_timeout = 60
retry_delay = 30
spread = no
}
rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used
rlm_ldap (ldap): Connecting to ldap://ldap.***:389
TLSMC: MozNSS compatibility interception begins.
tlsmc_convert: INFO: cannot open the NSS DB, expecting PEM configuration is present.
tlsmc_intercept_initialization: INFO: successfully intercepted TLS initialization. Continuing with OpenSSL only.
TLSMC: MozNSS compatibility interception ends.
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): Opening additional connection (1), 1 of 31 pending slots used
rlm_ldap (ldap): Connecting to ldap://ldap.***:389
TLSMC: MozNSS compatibility interception begins.
tlsmc_convert: INFO: cannot open the NSS DB, expecting PEM configuration is present.
tlsmc_intercept_initialization: INFO: successfully intercepted TLS initialization. Continuing with OpenSSL only.
TLSMC: MozNSS compatibility interception ends.
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): Opening additional connection (2), 1 of 30 pending slots used
rlm_ldap (ldap): Connecting to ldap://ldap.***:389
TLSMC: MozNSS compatibility interception begins.
tlsmc_convert: INFO: cannot open the NSS DB, expecting PEM configuration is present.
tlsmc_intercept_initialization: INFO: successfully intercepted TLS initialization. Continuing with OpenSSL only.
TLSMC: MozNSS compatibility interception ends.
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): Opening additional connection (3), 1 of 29 pending slots used
rlm_ldap (ldap): Connecting to ldap://ldap.***:389
TLSMC: MozNSS compatibility interception begins.
tlsmc_convert: INFO: cannot open the NSS DB, expecting PEM configuration is present.
tlsmc_intercept_initialization: INFO: successfully intercepted TLS initialization. Continuing with OpenSSL only.
TLSMC: MozNSS compatibility interception ends.
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): Opening additional connection (4), 1 of 28 pending slots used
rlm_ldap (ldap): Connecting to ldap://ldap.***:389
TLSMC: MozNSS compatibility interception begins.
tlsmc_convert: INFO: cannot open the NSS DB, expecting PEM configuration is present.
tlsmc_intercept_initialization: INFO: successfully intercepted TLS initialization. Continuing with OpenSSL only.
TLSMC: MozNSS compatibility interception ends.
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind successful
# Instantiating module "files" from file /usr/local/etc/raddb/mods-enabled/files
reading pairlist file /usr/local/etc/raddb/mods-config/files/authorize
reading pairlist file /usr/local/etc/raddb/mods-config/files/accounting
reading pairlist file /usr/local/etc/raddb/mods-config/files/pre-proxy
# Instantiating module "mschap" from file /usr/local/etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "IPASS" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "suffix" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "realmpercent" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "ntdomain" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "detail" from file /usr/local/etc/raddb/mods-enabled/detail
# Instantiating module "eap" from file /usr/local/etc/raddb/mods-enabled/eap
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/usr/local/etc/raddb/certs/"
pem_file_type = yes
private_key_file = "/usr/local/etc/raddb/certs/***.key.pem"
certificate_file = "/usr/local/etc/raddb/certs/***.cert.pem"
ca_file = "/usr/local/etc/raddb/certs/***.cert.pem"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
cipher_list = "DEFAULT"
cipher_server_preference = no
ecdh_curve = "prime256v1"
tls_max_version = ""
tls_min_version = "1.0"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = no
use_nonce = yes
timeout = 0
softfail = no
}
}
The configuration allows TLS 1.0 and/or TLS 1.1. We STRONGLY recommned using only TLS 1.2 for security
Please set: tls_min_version = "1.2"
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = yes
use_tunneled_reply = yes
virtual_server = "eduroam-inner-tunnel"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = yes
use_tunneled_reply = yes
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = yes
}
# Instantiating module "eap-***" from file /usr/local/etc/raddb/mods-enabled/eap
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/usr/local/etc/raddb/certs/"
pem_file_type = yes
private_key_file = "/usr/local/etc/raddb/certs/***.key.pem"
certificate_file = "/usr/local/etc/raddb/certs/***.cert.pem"
ca_file = "/usr/local/etc/raddb/certs/***.cert.pem"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
cipher_list = "DEFAULT"
cipher_server_preference = no
ecdh_curve = "prime256v1"
tls_max_version = ""
tls_min_version = "1.0"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = no
use_nonce = yes
timeout = 0
softfail = no
}
}
The configuration allows TLS 1.0 and/or TLS 1.1. We STRONGLY recommned using only TLS 1.2 for security
Please set: tls_min_version = "1.2"
# Instantiating module "preprocess" from file /usr/local/etc/raddb/mods-enabled/preprocess
reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/hints
# Instantiating module "cache_eap" from file /usr/local/etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
# Instantiating module "attr_filter.post-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/access_reject
[/usr/local/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay" found in filter list for realm "DEFAULT".
[/usr/local/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay-USec" found in filter list for realm "DEFAULT".
# Instantiating module "attr_filter.access_challenge" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "etc_passwd" from file /usr/local/etc/raddb/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "auth_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
# Instantiating module "reply_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "reject" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "fail" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "ok" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "handled" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "invalid" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "userlock" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "notfound" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "noop" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "updated" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "pap" from file /usr/local/etc/raddb/mods-enabled/pap
# Instantiating module "logintime" from file /usr/local/etc/raddb/mods-enabled/logintime
# Instantiating module "expiration" from file /usr/local/etc/raddb/mods-enabled/expiration
# Instantiating module "linelog" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "log_accounting" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "linelog_recv_request" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "linelog_send_accept" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "linelog_send_reject" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "linelog_send_proxy_request" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "linelog_recv_proxy_response" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "linelog_not_anonymous" from file /usr/local/etc/raddb/mods-enabled/linelog
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /usr/local/etc/raddb/radiusd.conf
} # server
server ***-test { # from file /usr/local/etc/raddb/sites-enabled/***-test
# Loading authenticate {...}
# Loading authorize {...}
} # server ***-test
server inner-tunnel { # from file /usr/local/etc/raddb/sites-enabled/inner-tunnel
# Loading authenticate {...}
# Loading authorize {...}
# Loading session {...}
# Loading post-auth {...}
# Skipping contents of 'if' as it is always 'false' -- /usr/local/etc/raddb/sites-enabled/inner-tunnel:73
} # server inner-tunnel
server default { # from file /usr/local/etc/raddb/sites-enabled/default
# Loading authenticate {...}
# Loading authorize {...}
# Loading preacct {...}
# Loading accounting {...}
# Loading session {...}
# Loading post-auth {...}
} # server default
thread pool {
start_servers = 5
max_servers = 32
min_spare_servers = 3
max_spare_servers = 10
max_requests_per_server = 0
cleanup_delay = 5
max_queue_size = 65536
auto_limit_acct = no
}
Thread spawned new child 1. Total threads in pool: 1
Thread 1 waiting to be assigned a request
Thread spawned new child 2. Total threads in pool: 2
Thread 2 waiting to be assigned a request
Thread spawned new child 3. Total threads in pool: 3
Thread 3 waiting to be assigned a request
Thread spawned new child 4. Total threads in pool: 4
Thread 4 waiting to be assigned a request
Thread spawned new child 5. Total threads in pool: 5
Thread 5 waiting to be assigned a request
Thread pool initialized
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = 10.0.89.54
port = 0
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
listen {
type = "auth"
ipaddr = 192.168.89.54
port = 1812
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = 192.168.89.54
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "auth+acct"
ipaddr = 192.168.89.54
port = 2083
proto = "tcp"
tls {
verify_depth = 0
pem_file_type = yes
private_key_file = "/usr/local/etc/raddb/certs/***.key.pem"
certificate_file = "/usr/local/etc/raddb/certs/***.cert.pem"
ca_file = "/usr/local/etc/raddb/certs/***.cert.pem"
fragment_size = 8192
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
ecdh_curve = "prime256v1"
tls_max_version = ""
tls_min_version = "1.0"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = no
use_nonce = yes
timeout = 0
softfail = no
}
}
The configuration allows TLS 1.0 and/or TLS 1.1. We STRONGLY recommned using only TLS 1.2 for security
Please set: tls_min_version = "1.2"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
clients = "radsec"
client rad-dev {
ipaddr = rad-dev.*** IPv4 address [192.168.89.56]
require_message_authenticator = no
proto = "tls"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client rad-dev-02 {
ipaddr = rad-dev-02.*** IPv4 address [192.168.89.58]
require_message_authenticator = no
proto = "tls"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
}
Listening on auth address 10.0.89.54 port 1812 bound to server ***-test
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on auth address 192.168.89.54 port 1812 bound to server default
Listening on acct address 192.168.89.54 port 1813 bound to server default
Listening on auth+acct proto tcp address 192.168.89.54 port 2083 (TLS) bound to server default
Ready to process requests
Threads: total/active/spare threads = 5/0/5
Waking up in 0.3 seconds.
Thread 5 got semaphore
Thread 5 handling request 0, (1 handled so far)
(0) Received Access-Request Id 0 from 192.168.89.56:45861 to 192.168.89.54:1812 length 150
(0) User-Name = "anonymous(a)test.org"
(0) NAS-IP-Address = 127.0.0.1
(0) Calling-Station-Id = "02-00-00-00-00-01"
(0) Framed-MTU = 1400
(0) NAS-Port-Type = Wireless-802.11
(0) Service-Type = Framed-User
(0) Connect-Info = "CONNECT 11Mbps 802.11b"
(0) EAP-Message = 0x023e001701616e6f6e796d6f757340746573742e6f7267
(0) Message-Authenticator = 0x0373fb0566cd1b0c80eb0e3f442363ba
(0) # Executing section authorize from file /usr/local/etc/raddb/sites-enabled/default
(0) authorize {
(0) [preprocess] = ok
(0) [mschap] = noop
(0) policy split_username_nai {
(0) if (&User-Name && (&User-Name =~ /^([^@]*)(@([-[:alnum:]]+\.[-[:alnum:].]+))?$/)) {
(0) if (&User-Name && (&User-Name =~ /^([^@]*)(@([-[:alnum:]]+\.[-[:alnum:].]+))?$/)) -> TRUE
(0) if (&User-Name && (&User-Name =~ /^([^@]*)(@([-[:alnum:]]+\.[-[:alnum:].]+))?$/)) {
(0) update request {
(0) EXPAND %{1}
(0) --> anonymous
(0) &Stripped-User-Name := anonymous
(0) EXPAND %{3}
(0) --> test.org
(0) &Stripped-User-Domain = test.org
(0) } # update request = noop
(0) [updated] = updated
(0) } # if (&User-Name && (&User-Name =~ /^([^@]*)(@([-[:alnum:]]+\.[-[:alnum:].]+))?$/)) = updated
(0) ... skipping else: Preceding "if" was taken
(0) } # policy split_username_nai = updated
(0) if (&Stripped-User-Domain == "myabc.com") {
(0) if (&Stripped-User-Domain == "myabc.com") -> FALSE
(0) elsif (&User-Name =~ /.*@.*@.*$/) {
(0) elsif (&User-Name =~ /.*@.*@.*$/) -> FALSE
(0) elsif (&User-Name =~ /.*@.*$/) {
(0) elsif (&User-Name =~ /.*@.*$/) -> TRUE
(0) elsif (&User-Name =~ /.*@.*$/) {
(0) update {
(0) control:Proxy-To-Realm := "proxy.test"
(0) } # update = noop
(0) } # elsif (&User-Name =~ /.*@.*$/) = noop
(0) eap: Request is supposed to be proxied to Realm proxy.test. Not doing EAP.
(0) [eap] = noop
(0) } # authorize = updated
(0) Starting proxy to home server 192.168.89.56 port 2083
(0) server default {
(0) }
Failed opening new proxy socket 'proxy (0.0.0.0, 0) -> home_server (192.168.89.56, 2083)' : Failed connecting socket: Connection refused
(0) Failed to insert request into the proxy list
(0) There was no response configured: rejecting request
(0) Using Post-Auth-Type Reject
(0) # Executing group from file /usr/local/etc/raddb/sites-enabled/default
(0) Post-Auth-Type REJECT {
(0) attr_filter.access_reject: EXPAND %{User-Name}
(0) attr_filter.access_reject: --> anonymous(a)test.org
(0) attr_filter.access_reject: Matched entry DEFAULT at line 11
(0) [attr_filter.access_reject] = updated
(0) linelog_send_reject: EXPAND action = Send-Reject, %{pairs:request:}
(0) linelog_send_reject: --> action = Send-Reject, User-Name = "anonymous(a)test.org", NAS-IP-Address = 127.0.0.1, Calling-Station-Id = "02-00-00-00-00-01", Framed-MTU = 1400, NAS-Port-Type = Wireless-802.11, Service-Type = Framed-User, Connect-Info = "CONNECT 11Mbps 802.11b", EAP-Message = 0x023e001701616e6f6e796d6f757340746573742e6f7267, Message-Authenticator = 0x0373fb0566cd1b0c80eb0e3f442363ba, Event-Timestamp = "Jul 13 2020 23:19:48 CEST", Stripped-User-Name = "anonymous", Stripped-User-Domain = "test.org", EAP-Type = Identity, Realm = "proxy.test"
(0) [linelog_send_reject] = ok
(0) } # Post-Auth-Type REJECT = updated
(0) Sent Access-Reject Id 0 from 192.168.89.54:1812 to 192.168.89.56:45861 length 0
(0) Finished request
Thread 5 waiting to be assigned a request
Waking up in 4.6 seconds.
Marking home server 192.168.89.56 port 2083 as dead.
PING: Reviving home server rad-dev in 300 seconds
(0) Cleaning up request packet ID 0 with timestamp +3
Waking up in 299.9 seconds.
2
1
Using radclient version 3.0.15. I'm new freeradius and I'm trying to get the radclient utility (running it from the freeraduis server) to work so I can test a new user that was recently added. Running radclient results in Access-Reject. Te results of the command are as follows:
Sent Access-Request Id 119 from 0.0.0.0:58583 to 127.0.0.1:1812 length 66
User-Name = "testuser1"
User-Password = "testpassword123"
Cleartext-Password = "testpassword123"
Received Access-Reject Id 119 from 127.0.0.1:1812 to 0.0.0.0:0 length 20
(0) -: Expected Access-Accept got Access-Reject
Packet summary:
Accepted : 0
Rejected : 1
Lost : 0
Passed filter : 0
Failed filter : 1
I've google searched "radclient" + "Failed filter" and I can find very little info about what this "Failed filter" means. I've read the man pages for radclient and found no info on "Failed filter." Can someone tell me what "Failed filter" means?
Rick
3
2
Here is a copy of my users file, with all comments remove:
DEFAULT Framed-Protocol == PPP
Framed-Protocol = PPP,
Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT Hint == "CSLIP"
Framed-Protocol = SLIP,
Framed-Compression = Van-Jacobson-TCP-IP
DEFAULT Hint == "SLIP"
Framed-Protocol = SLIP
abcXYZ User-Password != "MyPassword1"
abcXYZ Cleartext-Password := "MyPassword1"
MyAttrTag = "One"
abcxyz User-Password != "MyPassword2"
abcxyz Cleartext-Password := "MyPassword2"
MyAttrTag = "Two"
And here's debugging information obtained at the FreeRADIUS server,
launched with -sxXf when a client is requesting to be authenticated as
abcXYZ over SSH, but using the password assigned to abcxyz in the users
file. A line that reads EXPAND
%{%{Stripped-User-Name}:-%{tolower:%{User-Name}}} would seem to reveal that
the received username is indeed converted to all lowercase by the
FreeRADIUS server. I searched for references to the above in the FreeRADIUS
files, and here is what I found:
../raddb/mods-available/couchbase: user_key =
"raduser_%{md5:%{tolower:%{%{Stripped-User-Name}:-%{User-Name}}}}"
../raddb/mods-available/couchbase:# simul_vkey =
"%{tolower:%{%{Stripped-User-Name}:-%{User-Name}}}"
../raddb/mods-available/files: key =
"%{%{Stripped-User-Name}:-%{tolower:%{User-Name}}}"
Is it just a matter of getting rid of the 'key' line in the files directory?
Fri Jul 10 07:49:59 2020 : Debug: (39) Received Access-Request Id 57 from
192.168.0.67:44859 to 192.168.0.23:1812 length 92
Fri Jul 10 07:49:59 2020 : Debug: (39) User-Name = "abcXYZ"
Fri Jul 10 07:49:59 2020 : Debug: (39) User-Password = "MyPassword2"
Fri Jul 10 07:49:59 2020 : Debug: (39) NAS-IP-Address = 192.168.0.67
Fri Jul 10 07:49:59 2020 : Debug: (39) NAS-Identifier = "sshd"
Fri Jul 10 07:49:59 2020 : Debug: (39) NAS-Port = 22973
Fri Jul 10 07:49:59 2020 : Debug: (39) NAS-Port-Type = Virtual
Fri Jul 10 07:49:59 2020 : Debug: (39) Service-Type = Authenticate-Only
Fri Jul 10 07:49:59 2020 : Debug: (39) Calling-Station-Id = "192.168.0.23"
Fri Jul 10 07:49:59 2020 : Debug: (39) session-state: No State attribute
Fri Jul 10 07:49:59 2020 : Debug: (39) # Executing section authorize from
file /usr/local/freeradius-server-3.0.20/etc/raddb/sites-enabled/default
Fri Jul 10 07:49:59 2020 : Debug: (39) authorize {
Fri Jul 10 07:49:59 2020 : Debug: (39) policy filter_username {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name) -> TRUE
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ / /) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ / /) ->
FALSE
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ /@[^@]*@/
) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ /@[^@]*@/
) -> FALSE
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ /\.\./ ) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ /\.\./ )
-> FALSE
Fri Jul 10 07:49:59 2020 : Debug: (39) if ((&User-Name =~ /@/) &&
(&User-Name !~ /(a)(.+)\.(.+)$/)) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if ((&User-Name =~ /@/) &&
(&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ /\.$/) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ /\.$/)
-> FALSE
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ /(a)\./) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&User-Name =~ /(a)\./)
-> FALSE
Fri Jul 10 07:49:59 2020 : Debug: (39) } # if (&User-Name) = notfound
Fri Jul 10 07:49:59 2020 : Debug: (39) } # policy filter_username =
notfound
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
preprocess (rlm_preprocess)
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from preprocess (rlm_preprocess)
Fri Jul 10 07:49:59 2020 : Debug: (39) [preprocess] = ok
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
chap (rlm_chap)
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from chap (rlm_chap)
Fri Jul 10 07:49:59 2020 : Debug: (39) [chap] = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
mschap (rlm_mschap)
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from mschap (rlm_mschap)
Fri Jul 10 07:49:59 2020 : Debug: (39) [mschap] = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
digest (rlm_digest)
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from digest (rlm_digest)
Fri Jul 10 07:49:59 2020 : Debug: (39) [digest] = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
suffix(rlm_realm)
Fri Jul 10 07:49:59 2020 : Debug: (39) suffix: Checking for suffix after "@"
Fri Jul 10 07:49:59 2020 : Debug: (39) suffix: No '@' in User-Name =
"abcXYZ", looking up realm NULL
Fri Jul 10 07:49:59 2020 : Debug: (39) suffix: No such realm "NULL"
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from suffix (rlm_realm)
Fri Jul 10 07:49:59 2020 : Debug: (39) [suffix] = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
eap (rlm_eap)
Fri Jul 10 07:49:59 2020 : Debug: (39) eap: No EAP-Message, not doing EAP
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from eap (rlm_eap)
Fri Jul 10 07:49:59 2020 : Debug: (39) [eap] = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
files (rlm_files)
Fri Jul 10 07:49:59 2020 : Debug:
%{%{Stripped-User-Name}:-%{tolower:%{User-Name}}}
Fri Jul 10 07:49:59 2020 : Debug: Parsed xlat tree:
Fri Jul 10 07:49:59 2020 : Debug: XLAT-IF {
Fri Jul 10 07:49:59 2020 : Debug: attribute --> Stripped-User-Name
Fri Jul 10 07:49:59 2020 : Debug: }
Fri Jul 10 07:49:59 2020 : Debug: XLAT-ELSE {
Fri Jul 10 07:49:59 2020 : Debug: xlat --> tolower
Fri Jul 10 07:49:59 2020 : Debug: {
Fri Jul 10 07:49:59 2020 : Debug: attribute --> User-Name
Fri Jul 10 07:49:59 2020 : Debug: }
Fri Jul 10 07:49:59 2020 : Debug: }
Fri Jul 10 07:49:59 2020 : Debug: (39) files: EXPAND
%{%{Stripped-User-Name}:-%{tolower:%{User-Name}}}
Fri Jul 10 07:49:59 2020 : Debug: (39) files: --> abcxyz
Fri Jul 10 07:49:59 2020 : Debug: (39) files: users: Matched entry abcxyz
at line 16
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from files (rlm_files)
Fri Jul 10 07:49:59 2020 : Debug: (39) [files] = ok
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
expiration (rlm_expiration)
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from expiration (rlm_expiration)
Fri Jul 10 07:49:59 2020 : Debug: (39) [expiration] = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
logintime (rlm_logintime)
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from logintime (rlm_logintime)
Fri Jul 10 07:49:59 2020 : Debug: (39) [logintime] = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: calling
pap (rlm_pap)
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authorize]: returned
from pap (rlm_pap)
Fri Jul 10 07:49:59 2020 : Debug: (39) [pap] = updated
Fri Jul 10 07:49:59 2020 : Debug: (39) } # authorize = updated
Fri Jul 10 07:49:59 2020 : Debug: (39) Found Auth-Type = PAP
Fri Jul 10 07:49:59 2020 : Debug: (39) # Executing group from file
/usr/local/freeradius-server-3.0.20/etc/raddb/sites-enabled/default
Fri Jul 10 07:49:59 2020 : Debug: (39) Auth-Type PAP {
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authenticate]: calling
pap(rlm_pap)
Fri Jul 10 07:49:59 2020 : Debug: (39) pap: Login attempt with password
"MyPassword2" (9)
Fri Jul 10 07:49:59 2020 : Debug: (39) pap: Comparing with "known good"
Cleartext-Password "MyPassword2" (9)
Fri Jul 10 07:49:59 2020 : Debug: (39) pap: User authenticated successfully
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[authenticate]:
returned from pap (rlm_pap)
Fri Jul 10 07:49:59 2020 : Debug: (39) [pap] = ok
Fri Jul 10 07:49:59 2020 : Debug: (39) } # Auth-Type PAP = ok
Fri Jul 10 07:49:59 2020 : Debug: (39) # Executing section post-auth from
file /usr/local/freeradius-server-3.0.20/etc/raddb/sites-enabled/default
Fri Jul 10 07:49:59 2020 : Debug: (39) post-auth {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (session-state:User-Name &&
reply:User-Name && request:User-Name && (reply:User-Name ==
request:User-Name)) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (session-state:User-Name &&
reply:User-Name && request:User-Name && (reply:User-Name ==
request:User-Name)) -> FALSE
Fri Jul 10 07:49:59 2020 : Debug: (39) update {
Fri Jul 10 07:49:59 2020 : Debug: (39) No attributes updated for RHS
&session-state:
Fri Jul 10 07:49:59 2020 : Debug: (39) } # update = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[post-auth]: calling
exec (rlm_exec)
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[post-auth]: returned
from exec (rlm_exec)
Fri Jul 10 07:49:59 2020 : Debug: (39) [exec] = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) policy
remove_reply_message_if_eap {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&reply:EAP-Message &&
&reply:Reply-Message) {
Fri Jul 10 07:49:59 2020 : Debug: (39) if (&reply:EAP-Message &&
&reply:Reply-Message) -> FALSE
Fri Jul 10 07:49:59 2020 : Debug: (39) else {
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[post-auth]:
calling noop (rlm_always)
Fri Jul 10 07:49:59 2020 : Debug: (39) modsingle[post-auth]:
returned from noop (rlm_always)
Fri Jul 10 07:49:59 2020 : Debug: (39) [noop] = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) } # else = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) } # policy
remove_reply_message_if_eap = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) } # post-auth = noop
Fri Jul 10 07:49:59 2020 : Debug: (39) Sent Access-Accept Id 57 from
192.168.0.23:1812 to 192.168.123.67:44859 length 0
Fri Jul 10 07:49:59 2020 : Debug: (39) MyAttrTag = "Two"
Fri Jul 10 07:49:59 2020 : Debug: (39) Finished request
Fri Jul 10 07:49:59 2020 : Debug: Waking up in 4.9 seconds.
Fri Jul 10 07:50:04 2020 : Debug: (39) Cleaning up request packet ID 57
with timestamp +150091
Fri Jul 10 07:50:04 2020 : Info: Ready to process requests
On Thu, Jul 9, 2020 at 12:19 PM <
freeradius-users-request(a)lists.freeradius.org> wrote:
>
> On Jul 9, 2020, at 11:12 AM, Luveh Keraph <1.41421(a)gmail.com> wrote:
> >
> > I have a FreeRADIUS 3.0.20 server with the following entries in
> > /etc/raddb/users:
> >
> > abcXYZ User-Password != "MyPassword1"
> > abcXYZ Cleartext-Password := "MyPassword1"
> > MyAttrTag = "One"
> >
> > abcxyz User-Password != "MyPassword2"
> > abcxyz Cleartext-Password := "MyPassword2"
> > MyAttrTag = "Two"
> >
> > MyAttrTag is a VSA of my own, which both client and server are aware of.
>
> OK.
>
> > When I try to authenticate abcXYZ against this server (with radtest, or
> by
> > SSH through PAM) the password I have to supply is MyPassword2 -
> MyPassword1
> > will not work. When the authentication is successfully completed, I can
> see
> > that the value of MyAttrTag sent by the server is always "Two", which is
> of
> > course consistent with the above.
> >
> > In fact, I can try different camel-case versions of abcxyz, not
> necessarily
> > with matching entries in /etc/raddb/users, and in all cases my server
> will
> > just use the entry for abcxyz in that file. I.e. my FreeRADIUS server
> > processes user names case-insensitively.
>
> The default configuration for the "users" file is to be case sensitive.
> So if it is case INsensitive, you changed something in your local
> configuration.
>
> > Can my FreeRADIUS server be configured so that it processes user names
> (not
> > passwords) in a case-sensitive way? In the example above, abcxyz and
> abcXYZ
> > would be two different users, with two different passwords. I have seen
> a
> > few suggestions on the net, but they seem to be constrained to version
> 2.*
> > servers.
>
> http://wiki.freeradius.org/list-help
>
> Post the debug output. We say this EVERYWHERE in the documentation, and
> pretty much daily on the list.
>
> Alan DeKok.
>
>
>
>
2
2
Hi
I have freeradius and Active Directory. I have configured the eap module
In /etc/freeradius/mods-enabled/eap
eap {
default_eap_type = ttls
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = ${max_requests}
tls-config tls-common {
private_key_file = /etc/freeradius/certs/ssl-cert-snakeoil.key
certificate_file = /etc/freeradius/certs/ssl-cert-snakeoil.pem
ca_file = /etc/freeradius/certs/ca-certificates.crt
dh_file = ${certdir}/dh
ca_path = ${cadir}
cipher_list = "HIGH"
cipher_server_preference = no
disable_tlsv1_2 = no
disable_tlsv1_1 = no
disable_tlsv1 = no
tls_min_version = "1.0"
tls_max_version = "1.2"
ecdh_curve = "prime256v1"
}
tls {
tls = tls-common
}
}
In /etc/freeradius/sites-enabled/default
authorize {
filter_username
preprocess
mschap
suffix
eap {
ok = return
}
files
ldap
if ((ok || updated) && User-Password) {
update {
control:Auth-Type := ldap
}
}
pap
expiration
logintime
}
authenticate {
Auth-Type LDAP {
ldap
}
Auth-Type eap {
eap
}
pap
}
preacct {
preprocess
acct_unique
suffix
files
}
accounting {
detail
unix
exec
attr_filter.accounting_response
}
post-auth {
update {
&reply: += &session-state:
}
exec
}
post-proxy {
eap
}
In /etc/freeradius/sites-enabled/inner-tunnel
server inner-tunnel {
authorize {
filter_username
filter_inner_identity
pap
suffix
update control {
&Proxy-To-Realm := LOCAL
}
if ((ok || updated) && User-Password) {
update {
control:Auth-Type := ldap
}
}
files
ldap
expiration
logintime
}
authenticate {
Auth-Type eap {
eap
}
}
Auth-Type PAP {
pap
}
ldap
post-auth {
if (0) {
update reply {
User-Name !* ANY
Message-Authenticator !* ANY
EAP-Message !* ANY
Proxy-State !* ANY
MS-MPPE-Encryption-Types !* ANY
MS-MPPE-Encryption-Policy !* ANY
MS-MPPE-Send-Key !* ANY
MS-MPPE-Recv-Key !* ANY
}
update {
&outer.session-state: += &reply:
}
}
Post-Auth-Type REJECT {
attr_filter.access_reject
update outer.session-state {
&Module-Failure-Message := &request:Module-Failure-Message
}
}
}
post-proxy {
eap
}
}
Added ca to trusted root certificates and configured the ttls/pap client on windows. But the freeradius LDAP module is not accessed
freeradius -x in the attachment
I will accept any ideas with gratitude )
4
12
Hi Alan,
I hope you are well.
Could you please help me understand the example in section 9.1 (page 46) of rfc6929 the extract of which I have copied/pasted below.
9.1<https://tools.ietf.org/html/rfc6929#section-9.1>. Extended Type
(example 1)
Attribute encapsulating textual data:
241.1 "bob"
-> f1 06 01 62 6f 62
(example 2)
Attribute encapsulating a TLV with TLV-Type of one (1):
241.2 { 1 23 45 }
-> f1 07 02 01 04 23 45
I understand the example-1 fine - but my question is about example-2.
2/
a) in the sentence what does it mean TLV-Type of one (1) ?
b) do the values in {} represent type-length-data ?
c) f1 07 02 01 04 23 45
does this represent
f1=241 (=type),
07=length
02=extended-type, (as in the 2 in 241.2)
01=tlv-type?
04=length of tlv data ?
but 23 and 45 ? not sure
Thank you in advance for your help.
Kind Regards,
Robert.
2
4
I have a FreeRADIUS 3.0.20 server with the following entries in
/etc/raddb/users:
abcXYZ User-Password != "MyPassword1"
abcXYZ Cleartext-Password := "MyPassword1"
MyAttrTag = "One"
abcxyz User-Password != "MyPassword2"
abcxyz Cleartext-Password := "MyPassword2"
MyAttrTag = "Two"
MyAttrTag is a VSA of my own, which both client and server are aware of.
When I try to authenticate abcXYZ against this server (with radtest, or by
SSH through PAM) the password I have to supply is MyPassword2 - MyPassword1
will not work. When the authentication is successfully completed, I can see
that the value of MyAttrTag sent by the server is always "Two", which is of
course consistent with the above.
In fact, I can try different camel-case versions of abcxyz, not necessarily
with matching entries in /etc/raddb/users, and in all cases my server will
just use the entry for abcxyz in that file. I.e. my FreeRADIUS server
processes user names case-insensitively.
Can my FreeRADIUS server be configured so that it processes user names (not
passwords) in a case-sensitive way? In the example above, abcxyz and abcXYZ
would be two different users, with two different passwords. I have seen a
few suggestions on the net, but they seem to be constrained to version 2.*
servers.
2
1
How can the same user have logged in to two controllers (Zone Director and Virtual SmartZone) at the same time?
by CESAR MURILO DA SILVA JUNIOR 09 Jul '20
by CESAR MURILO DA SILVA JUNIOR 09 Jul '20
09 Jul '20
Hello,
How can the same user have logged in to two controllers (Zone Director and
Virtual SmartZone) at the same time?
FreeRADIUS Version 2.2.3
Virtual Smartzone High Scale: 3.6.0.222
Zone Director ZD3025: 9.12.3.0 build 105
We were migrating the APs from ZD to VSZ, but as the pandemic emerged and
everyone is at home now, we stopped the migration and the two controllers
are in operation.
In the corresponding radacct of each controller, I found the chronological
order:
Tue Jun 9 09:47:11 2020
Acct-Session-Id = "5EDF8325-2E943C01"
Acct-Status-Type = Start
Acct-Authentic = RADIUS
User-Name = "x"
NAS-IP-Address = IP_VSZ
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 802.11b/g/n"
Event-Timestamp = "Jun 9 2020 09:40:07 -03"
Ruckus-SSID = "Y"
Tue Jun 9 09:48:45 2020
User-Name = "x"
Acct-Status-Type = Start
Acct-Authentic = RADIUS
NAS-IP-Address = IP_ZD
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 802.11g/n"
Acct-Session-Id = "5C108A3D-0458941E"
Acct-Multi-Session-Id = "2ce6cc39d168687d6b0eb2b35edf852cc33a"
Ruckus-SSID = "Y"
Event-Timestamp = "Jun 9 2020 09:48:45 -03"
Tue Jun 9 09:55:40 2020
User-Name = "x"
Acct-Status-Type = Stop
Acct-Authentic = RADIUS
NAS-IP-Address = IP_ZD
NAS-Port-Type = Wireless-802.11
NAS-Identifier = "2C-E6-CC-39-D1-68"
Connect-Info = "CONNECT 802.11g/n"
Acct-Session-Id = "5C108A3D-0458941E"
Acct-Multi-Session-Id = "2ce6cc39d168687d6b0eb2b35edf852cc33a"
Ruckus-SSID = "Y"
Event-Timestamp = "Jun 9 2020 09:55:40 -03"
Acct-Terminate-Cause = Idle-Timeout T
imestamp = 1591707340
Tue Jun 9 10:08:06 2020
Acct-Session-Id = "5EDF8325-2E943C01"
Acct-Multi-Session-Id = "743e2b370028d077146daa375edf8325ba1a"
Acct-Link-Count = 1
Acct-Status-Type = Stop
Acct-Authentic = RADIUS
User-Name = "x"
NAS-IP-Address = IP_VSZ
NAS-Port-Type = Wireless-802.11
Connect-Info = "CONNECT 802.11b/g/n"
Event-Timestamp = "Jun 9 2020 10:01:02 -03"
Ruckus-SSID = "X"
Att
*César Murilo da Silva Júnior*
*Téc. Oper. Monit. Computadores Help Desk | Redes e Segurança*
*UNIPAM - Centro Universitário de Patos de Minas*
*T1: 34 3823 0131 | T2: 34 3823 0120 | T3: 34 3823 0356 | C: 34 9 9220 5681*
*cesarsj(a)unipam.edu.br <cesarsj(a)unipam.edu.br>*
<https://www.unipam.edu.br/index.php/> <https://www.facebook.com/unipam>
<https://www.instagram.com/unipamnet/?hl=pt> <https://twitter.com/UNIPAMNET>
<https://www.youtube.com/user/CanalUNIPAM>
<https://www.linkedin.com/school/centro-universit-rio-de-patos-de-minas---un…>
<https://api.whatsapp.com/send?phone=5534999776622>
3
2
Good Day,
Our FreeRadius server seems to be ignoring authentication requests. I
confirmed that the requests are being received via `radsniff -i en18`:
Access-Request Id 187 40.231.3.9:54182 -> 10.129.1.5:1812 +2222.346
User-Name = "bob"
User-Password = "ٞP\322\n\159\34175\760\376%\250\366x\402"
NAS-Identifier = "cor1"
Calling-Station-Id = "10.129.1.20"
NAS-IP-Address = 40.231.3.9
However, `radiusd -X` doesn't show that it's processing it. What is
the plausible cause for this?
radiusd -X:
radiusd: FreeRADIUS Version 2.2.6, for host x86_64-redhat-linux-gnu,
built on Sep 22 2015 at 15:27:25
Copyright (C) 1999-2013 The FreeRADIUS server project and contributors.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License.
For more information about these matters, see the file named COPYRIGHT.
Starting - reading configuration files ...
including configuration file /etc/raddb/radiusd.conf
including configuration file /etc/raddb/proxy.conf
including configuration file /etc/raddb/clients.conf
including files in directory /etc/raddb/modules/
including configuration file /etc/raddb/modules/detail
including configuration file /etc/raddb/modules/linelog
including configuration file /etc/raddb/modules/echo
including configuration file /etc/raddb/modules/replicate
including configuration file /etc/raddb/modules/detail.log
including configuration file /etc/raddb/modules/logintime
including configuration file /etc/raddb/modules/policy
including configuration file /etc/raddb/modules/sqlcounter_expire_on_login
including configuration file /etc/raddb/modules/dynamic_clients
including configuration file /etc/raddb/modules/detail.example.com
including configuration file /etc/raddb/modules/digest
including configuration file /etc/raddb/modules/otp
including configuration file /etc/raddb/modules/rediswho
including configuration file /etc/raddb/modules/inner-eap
including configuration file /etc/raddb/modules/sql_log
including configuration file /etc/raddb/modules/attr_filter
including configuration file /etc/raddb/modules/sradutmp
including configuration file /etc/raddb/modules/radutmp
including configuration file /etc/raddb/modules/counter
including configuration file /etc/raddb/modules/preprocess
including configuration file /etc/raddb/modules/mschap
including configuration file /etc/raddb/modules/ippool
including configuration file /etc/raddb/modules/soh
including configuration file /etc/raddb/modules/perl
including configuration file /etc/raddb/modules/passwd
including configuration file /etc/raddb/modules/cache
including configuration file /etc/raddb/modules/realm
including configuration file /etc/raddb/modules/chap
including configuration file /etc/raddb/modules/smsotp
including configuration file /etc/raddb/modules/smbpasswd
including configuration file /etc/raddb/modules/pap
including configuration file /etc/raddb/modules/files
including configuration file /etc/raddb/modules/mac2ip
including configuration file /etc/raddb/modules/acct_unique
including configuration file /etc/raddb/modules/wimax
including configuration file /etc/raddb/modules/radrelay
including configuration file /etc/raddb/modules/always
including configuration file /etc/raddb/modules/expr
including configuration file /etc/raddb/modules/dhcp_sqlippool
including configuration file /etc/raddb/modules/pam
including configuration file /etc/raddb/modules/etc_group
including configuration file /etc/raddb/modules/expiration
including configuration file /etc/raddb/modules/exec
including configuration file /etc/raddb/modules/opendirectory
including configuration file /etc/raddb/modules/attr_rewrite
including configuration file /etc/raddb/modules/unix
including configuration file /etc/raddb/modules/krb5
including configuration file /etc/raddb/modules/redis
including configuration file /etc/raddb/modules/checkval
including configuration file /etc/raddb/modules/mac2vlan
including configuration file /etc/raddb/modules/cui
including configuration file /etc/raddb/modules/ntlm_auth
including configuration file /etc/raddb/eap.conf
including configuration file /etc/raddb/policy.conf
including files in directory /etc/raddb/sites-enabled/
including configuration file /etc/raddb/sites-enabled/control-socket
including configuration file /etc/raddb/sites-enabled/default
including configuration file /etc/raddb/sites-enabled/inner-tunnel
main {
user = "radiusd"
group = "radiusd"
allow_core_dumps = no
}
including dictionary file /etc/raddb/dictionary
main {
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
sbindir = "/usr/sbin"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
libdir = "/usr/lib64/freeradius"
radacctdir = "/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 1024
pidfile = "/var/run/radiusd/radiusd.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
}
security {
max_attributes = 200
reject_delay = 1
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
home_server localhost {
ipaddr = 127.0.0.1
port = 1812
type = "auth"
secret = "testing123"
response_window = 20.000000
response_timeouts = 1
max_outstanding = 65536
require_message_authenticator = yes
zombie_period = 40
status_check = "status-server"
ping_interval = 30
check_interval = 30
num_answers_to_alive = 3
num_pings_to_alive = 3
revive_interval = 120
status_check_timeout = 4
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = "testing123"
nastype = "other"
}
client 10.129.1.1 {
require_message_authenticator = no
secret = "mysecret"
shortname = "device-test"
nastype = "cisco"
}
radiusd: #### Instantiating modules ####
instantiate {
Module: Linked to module rlm_exec
Module: Instantiating module "exec" from file /etc/raddb/modules/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
Module: Linked to module rlm_expr
Module: Instantiating module "expr" from file /etc/raddb/modules/expr
Module: Linked to module rlm_expiration
Module: Instantiating module "expiration" from file
/etc/raddb/modules/expiration
expiration {
reply-message = "Password Has Expired "
}
Module: Linked to module rlm_logintime
Module: Instantiating module "logintime" from file /etc/raddb/modules/logintime
logintime {
reply-message = "You are calling outside your allowed timespan "
minimum-timeout = 60
}
}
radiusd: #### Loading Virtual Servers ####
server { # from file
modules {
Module: Creating Auth-Type = digest
Module: Creating Post-Auth-Type = REJECT
Module: Checking authenticate {...} for more modules to load
Module: Linked to module rlm_krb5
Module: Instantiating module "krb5" from file /etc/raddb/modules/krb5
krb5 {
keytab = "/etc/krb5.keytab"
service_principal = "host/freeradius.foo.bar"
cache = yes
}
rlm_krb5: krb5_init ok
Module: Linked to module rlm_pap
Module: Instantiating module "pap" from file /etc/raddb/modules/pap
pap {
encryption_scheme = "auto"
auto_header = no
}
Module: Linked to module rlm_chap
Module: Instantiating module "chap" from file /etc/raddb/modules/chap
Module: Linked to module rlm_mschap
Module: Instantiating module "mschap" from file /etc/raddb/modules/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = no
allow_retry = yes
}
Module: Linked to module rlm_digest
Module: Instantiating module "digest" from file /etc/raddb/modules/digest
Module: Linked to module rlm_unix
Module: Instantiating module "unix" from file /etc/raddb/modules/unix
unix {
radwtmp = "/var/log/radius/radwtmp"
}
Module: Linked to module rlm_eap
Module: Instantiating module "eap" from file /etc/raddb/eap.conf
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 1024
}
Module: Linked to sub-module rlm_eap_md5
Module: Instantiating eap-md5
Module: Linked to sub-module rlm_eap_leap
Module: Instantiating eap-leap
Module: Linked to sub-module rlm_eap_gtc
Module: Instantiating eap-gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
Module: Linked to sub-module rlm_eap_tls
Module: Instantiating eap-tls
tls {
rsa_key_exchange = no
dh_key_exchange = yes
rsa_key_length = 512
dh_key_length = 512
verify_depth = 0
CA_path = "/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/etc/raddb/certs/server.pem"
certificate_file = "/etc/raddb/certs/server.pem"
CA_file = "/etc/raddb/certs/ca.pem"
private_key_password = "whatever"
dh_file = "/etc/raddb/certs/dh"
fragment_size = 1024
include_length = yes
check_crl = no
cipher_list = "DEFAULT"
ecdh_curve = "prime256v1"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
Module: Linked to sub-module rlm_eap_ttls
Module: Instantiating eap-ttls
ttls {
default_eap_type = "md5"
copy_request_to_tunnel = no
use_tunneled_reply = no
virtual_server = "inner-tunnel"
include_length = yes
}
Module: Linked to sub-module rlm_eap_peap
Module: Instantiating eap-peap
peap {
default_eap_type = "mschapv2"
copy_request_to_tunnel = no
use_tunneled_reply = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
}
Module: Linked to sub-module rlm_eap_mschapv2
Module: Instantiating eap-mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
Module: Checking authorize {...} for more modules to load
Module: Linked to module rlm_preprocess
Module: Instantiating module "preprocess" from file
/etc/raddb/modules/preprocess
preprocess {
huntgroups = "/etc/raddb/huntgroups"
hints = "/etc/raddb/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
reading pairlist file /etc/raddb/huntgroups
reading pairlist file /etc/raddb/hints
Module: Linked to module rlm_realm
Module: Instantiating module "suffix" from file /etc/raddb/modules/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
Module: Linked to module rlm_files
Module: Instantiating module "files" from file /etc/raddb/modules/files
files {
usersfile = "/etc/raddb/users"
acctusersfile = "/etc/raddb/acct_users"
preproxy_usersfile = "/etc/raddb/preproxy_users"
compat = "no"
}
reading pairlist file /etc/raddb/users
reading pairlist file /etc/raddb/acct_users
reading pairlist file /etc/raddb/preproxy_users
Module: Checking preacct {...} for more modules to load
Module: Linked to module rlm_acct_unique
Module: Instantiating module "acct_unique" from file
/etc/raddb/modules/acct_unique
acct_unique {
key = "User-Name, Acct-Session-Id, NAS-IP-Address, NAS-Identifier, NAS-Port"
}
Module: Checking accounting {...} for more modules to load
Module: Linked to module rlm_detail
Module: Instantiating module "detail" from file /etc/raddb/modules/detail
detail {
detailfile = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
detailperm = 384
dirperm = 493
locking = no
log_packet_header = no
}
Module: Linked to module rlm_attr_filter
Module: Instantiating module "attr_filter.accounting_response" from
file /etc/raddb/modules/attr_filter
attr_filter attr_filter.accounting_response {
attrsfile = "/etc/raddb/attrs.accounting_response"
key = "%{User-Name}"
relaxed = no
}
reading pairlist file /etc/raddb/attrs.accounting_response
Module: Checking session {...} for more modules to load
Module: Linked to module rlm_radutmp
Module: Instantiating module "radutmp" from file /etc/raddb/modules/radutmp
radutmp {
filename = "/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
perm = 384
callerid = yes
}
Module: Checking post-proxy {...} for more modules to load
Module: Checking post-auth {...} for more modules to load
Module: Instantiating module "attr_filter.access_reject" from file
/etc/raddb/modules/attr_filter
attr_filter attr_filter.access_reject {
attrsfile = "/etc/raddb/attrs.access_reject"
key = "%{User-Name}"
relaxed = no
}
reading pairlist file /etc/raddb/attrs.access_reject
} # modules
} # server
server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel
modules {
Module: Checking authenticate {...} for more modules to load
Module: Checking authorize {...} for more modules to load
Module: Checking session {...} for more modules to load
Module: Checking post-proxy {...} for more modules to load
Module: Checking post-auth {...} for more modules to load
} # modules
} # server
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
}
listen {
type = "acct"
ipaddr = *
port = 0
}
listen {
type = "control"
listen {
socket = "/var/run/radiusd/radiusd.sock"
}
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
... adding new socket proxy address * port 45294
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on command file /var/run/radiusd/radiusd.sock
Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
Listening on proxy address * port 1814
Ready to process requests.
2
1
08 Jul '20
I have a freeradius server set up to use ldap.google.com as an ldap server,
and I'm using an if statement in post-auth to verify group membership.
It seems with certain accounts, and only most of the time, freeradius
reports "no group membership attribute(s) found in user object" Other users
never seem to have the issue. Has anybody seen this kind of flaky behavior
with google's ldap servers? I can't duplicate the issue using ldapsearch.
With that I get the memberof attributes every time even with the problem
accounts.
Also, I'm checking for membership of one of two groups and I noticed in
interactive mode that it is actually binding and looking up the user account
twice, once for each group membership check. Sometimes with the flaky
accounts it actually fails to see the memberof attribute once and succeeds
the other time. Is there a way to make this more efficient and just do one
bind? My if statement is formatted thus:
if (LDAP-Group == "group1") || (LDAP-Group == "group2") {
noop
}
else {
reject
}
Any insight would be appreciated.
2
1
Are the tarballs from ftp.freeradius.org mirrored anywhere using HTTP that isn't GitHub? The GitHub tarballs have a differently named root folder, so the signature checking is failing. Hashes show they're different:
$ shasum -a 256 freeradius-server-*
2bf914d471d4409fd72e708e308fa32ca8d01d698c518497a1d4b867d50132ae freeradius-server-3.0.21.tar.gz
b2014372948a92f86cfe2cf43c58ef47921c03af05666eb9d6416bdc6eeaedc2 freeradius-server-release_3_0_21.tar.gz
I'm migrating our RPM builds from $OLD_CI to $NEW_CI, but $NEW_CI doesn't support ftp for grabbing source. I'd like to avoid creating a special case just for a single build job (or manually verifying and uploading the tarball) if possible.
Many Thanks,
Adam Bishop
gpg: E75B 1F92 6407 DFDF 9F1C BF10 C993 2504 6609 D460
jisc.ac.uk
Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under company number. 05747339, VAT number GB 197 0632 86. Jisc’s registered office is: 4 Portwall Lane, Bristol, BS1 6NB. T 0203 697 5800.
Jisc Services Limited is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under company number 02881024, VAT number GB 197 0632 86. The registered office is: 4 Portwall Lane, Bristol, BS1 6NB. T 0203 697 5800.
Jisc Commercial Limited is a wholly owned Jisc subsidiary and a company limited by shares which is registered in England under company number 09316933, VAT number GB 197 0632 86. The registered office is: 4 Portwall Lane, Bristol, BS1 6NB. T 0203 697 5800.
For more details on how Jisc handles your data see our privacy notice here: https://www.jisc.ac.uk/website/privacy-notice
4
8
Hello,
I seem to have an issue where the runtime config will not update, calling
the module after an update to control with Cache-TTL/Cache-Status-Only does
not yield the expected result. Same config works fine with rbtree backend.
Has anyone experienced the same issue?
Thanks
FreeRADIUS Version 3.0.21
Copyright (C) 1999-2019 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/share/freeradius/dictionary
including dictionary file /usr/share/freeradius/dictionary.dhcp
including dictionary file /usr/share/freeradius/dictionary.vqp
including dictionary file /etc/freeradius/dictionary
including configuration file /etc/freeradius/radiusd.conf
including configuration file /etc/freeradius/proxy.conf
including configuration file /etc/freeradius/clients.conf
including files in directory /etc/freeradius/mods-enabled/
including configuration file /etc/freeradius/mods-enabled/always
including configuration file /etc/freeradius/mods-enabled/attr_filter
including configuration file /etc/freeradius/mods-enabled/cache_eap
including configuration file /etc/freeradius/mods-enabled/chap
including configuration file /etc/freeradius/mods-enabled/date
including configuration file /etc/freeradius/mods-enabled/detail
including configuration file /etc/freeradius/mods-enabled/detail.log
including configuration file /etc/freeradius/mods-enabled/digest
including configuration file /etc/freeradius/mods-enabled/dynamic_clients
including configuration file /etc/freeradius/mods-enabled/eap
including configuration file /etc/freeradius/mods-enabled/echo
including configuration file /etc/freeradius/mods-enabled/exec
including configuration file /etc/freeradius/mods-enabled/expiration
including configuration file /etc/freeradius/mods-enabled/expr
including configuration file /etc/freeradius/mods-enabled/files
including configuration file /etc/freeradius/mods-enabled/linelog
including configuration file /etc/freeradius/mods-enabled/logintime
including configuration file /etc/freeradius/mods-enabled/mschap
including configuration file /etc/freeradius/mods-enabled/ntlm_auth
including configuration file /etc/freeradius/mods-enabled/pap
including configuration file /etc/freeradius/mods-enabled/passwd
including configuration file /etc/freeradius/mods-enabled/preprocess
including configuration file /etc/freeradius/mods-enabled/radutmp
including configuration file /etc/freeradius/mods-enabled/realm
including configuration file /etc/freeradius/mods-enabled/replicate
including configuration file /etc/freeradius/mods-enabled/soh
including configuration file /etc/freeradius/mods-enabled/sradutmp
including configuration file /etc/freeradius/mods-enabled/unix
including configuration file /etc/freeradius/mods-enabled/unpack
including configuration file /etc/freeradius/mods-enabled/utf8
including configuration file /etc/freeradius/mods-enabled/cache
including configuration file /etc/freeradius/mods-enabled/redis
including configuration file /etc/freeradius/mods-enabled/rediswho
including files in directory /etc/freeradius/policy.d/
including configuration file /etc/freeradius/policy.d/abfab-tr
including configuration file /etc/freeradius/policy.d/accounting
including configuration file /etc/freeradius/policy.d/canonicalization
including configuration file /etc/freeradius/policy.d/control
including configuration file /etc/freeradius/policy.d/cui
including configuration file /etc/freeradius/policy.d/debug
including configuration file /etc/freeradius/policy.d/dhcp
including configuration file /etc/freeradius/policy.d/eap
including configuration file /etc/freeradius/policy.d/filter
including configuration file /etc/freeradius/policy.d/moonshot-targeted-ids
including configuration file /etc/freeradius/policy.d/operator-name
including configuration file /etc/freeradius/policy.d/rfc7542
including configuration file /etc/freeradius/policy.d/essesnsys
including files in directory /etc/freeradius/sites-enabled/
including configuration file /etc/freeradius/sites-enabled/inner-tunnel
including configuration file /etc/freeradius/sites-enabled/control-socket
including configuration file /etc/freeradius/sites-enabled/essensys
including configuration file /etc/freeradius/sites-enabled/tls-cache
main {
security {
user = "freerad"
group = "freerad"
allow_core_dumps = no
}
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
}
main {
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
sbindir = "/usr/sbin"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
libdir = "/usr/lib64/freeradius"
radacctdir = "/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 640000
pidfile = "/var/run/radiusd/radiusd.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = yes
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
home_server essensys_qa {
ipaddr = 10.100.1.214
port = 1812
type = "auth"
secret = <<< secret >>>
response_window = 30.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "none"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool essensys_qa_pool {
type = fail-over
home_server = essensys_qa
}
realm offsite {
auth_pool = essensys_qa_pool
}
radiusd: #### Loading Clients ####
client essensys-sg {
ipaddr = 192.168.232.0/21
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client proxy-lon {
ipaddr = 10.100.1.252/32
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debug state unknown (cap_sys_ptrace capability not set)
systemd watchdog is disabled
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
# Creating Auth-Type = digest
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_always
# Loading module "reject" from file /etc/freeradius/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /etc/freeradius/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /etc/freeradius/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /etc/freeradius/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /etc/freeradius/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /etc/freeradius/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /etc/freeradius/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /etc/freeradius/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /etc/freeradius/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file
/etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file
/etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file
/etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/etc/freeradius/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file
/etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename =
"/etc/freeradius/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file
/etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename =
"/etc/freeradius/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_cache
# Loading module "cache_eap" from file
/etc/freeradius/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_chap
# Loading module "chap" from file /etc/freeradius/mods-enabled/chap
# Loaded module rlm_date
# Loading module "date" from file /etc/freeradius/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file /etc/freeradius/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_detail
# Loading module "detail" from file /etc/freeradius/mods-enabled/detail
detail {
filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "auth_log" from file
/etc/freeradius/mods-enabled/detail.log
detail auth_log {
filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file
/etc/freeradius/mods-enabled/detail.log
detail reply_log {
filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file
/etc/freeradius/mods-enabled/detail.log
detail pre_proxy_log {
filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file
/etc/freeradius/mods-enabled/detail.log
detail post_proxy_log {
filename =
"/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_digest
# Loading module "digest" from file /etc/freeradius/mods-enabled/digest
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file
/etc/freeradius/mods-enabled/dynamic_clients
# Loaded module rlm_eap
# Loading module "eap" from file /etc/freeradius/mods-enabled/eap
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 640000
}
# Loaded module rlm_exec
# Loading module "echo" from file /etc/freeradius/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loading module "exec" from file /etc/freeradius/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_expiration
# Loading module "expiration" from file
/etc/freeradius/mods-enabled/expiration
# Loaded module rlm_expr
# Loading module "expr" from file /etc/freeradius/mods-enabled/expr
expr {
safe_characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:
/äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loaded module rlm_files
# Loading module "files" from file /etc/freeradius/mods-enabled/files
files {
filename = "/etc/freeradius/mods-config/files/authorize"
acctusersfile = "/etc/freeradius/mods-config/files/accounting"
preproxy_usersfile = "/etc/freeradius/mods-config/files/pre-proxy"
}
# Loaded module rlm_linelog
# Loading module "linelog" from file /etc/freeradius/mods-enabled/linelog
linelog {
filename = "/var/log/radius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file
/etc/freeradius/mods-enabled/linelog
linelog log_accounting {
filename = "/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_logintime
# Loading module "logintime" from file
/etc/freeradius/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /etc/freeradius/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loading module "ntlm_auth" from file
/etc/freeradius/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN
--username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_pap
# Loading module "pap" from file /etc/freeradius/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file
/etc/freeradius/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file
/etc/freeradius/mods-enabled/preprocess
preprocess {
huntgroups = "/etc/freeradius/mods-config/preprocess/huntgroups"
hints = "/etc/freeradius/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_radutmp
# Loading module "radutmp" from file /etc/freeradius/mods-enabled/radutmp
radutmp {
filename = "/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_realm
# Loading module "IPASS" from file /etc/freeradius/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /etc/freeradius/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "bangpath" from file /etc/freeradius/mods-enabled/realm
realm bangpath {
format = "prefix"
delimiter = "!"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file
/etc/freeradius/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /etc/freeradius/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_replicate
# Loading module "replicate" from file
/etc/freeradius/mods-enabled/replicate
# Loaded module rlm_soh
# Loading module "soh" from file /etc/freeradius/mods-enabled/soh
soh {
dhcp = yes
}
# Loading module "sradutmp" from file
/etc/freeradius/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_unix
# Loading module "unix" from file /etc/freeradius/mods-enabled/unix
unix {
radwtmp = "/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_unpack
# Loading module "unpack" from file /etc/freeradius/mods-enabled/unpack
# Loaded module rlm_utf8
# Loading module "utf8" from file /etc/freeradius/mods-enabled/utf8
# Loading module "cache" from file /etc/freeradius/mods-enabled/cache
cache {
driver = "rlm_cache_memcached"
key = "%{Calling-Station-Id}:%{NAS-Identifier}"
ttl = 43200
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_redis
# Loading module "redis" from file /etc/freeradius/mods-enabled/redis
redis {
server = "radius-cache"
port = 6379
database = 0
query_timeout = 5
}
rlm_redis: libhiredis version: 0.13.3
# Loaded module rlm_rediswho
# Loading module "rediswho" from file
/etc/freeradius/mods-enabled/rediswho
rediswho {
redis_module_instance = "redis"
trim_count = 15
Start {
insert = "LPUSH %{User-Name}
%l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
trim = "LTRIM %{User-Name} 0 15"
expire = "EXPIRE %{User-Name} 86400"
}
Interim-Update {
insert = "LPUSH %{User-Name}
%l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
trim = "LTRIM %{User-Name} 0 15"
expire = "EXPIRE %{User-Name} 86400"
}
Stop {
insert = "LPUSH %{User-Name}
%l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
trim = "LTRIM %{User-Name} 0 15"
expire = "EXPIRE %{User-Name} 86400"
}
}
instantiate {
}
# Instantiating module "reject" from file
/etc/freeradius/mods-enabled/always
# Instantiating module "fail" from file
/etc/freeradius/mods-enabled/always
# Instantiating module "ok" from file /etc/freeradius/mods-enabled/always
# Instantiating module "handled" from file
/etc/freeradius/mods-enabled/always
# Instantiating module "invalid" from file
/etc/freeradius/mods-enabled/always
# Instantiating module "userlock" from file
/etc/freeradius/mods-enabled/always
# Instantiating module "notfound" from file
/etc/freeradius/mods-enabled/always
# Instantiating module "noop" from file
/etc/freeradius/mods-enabled/always
# Instantiating module "updated" from file
/etc/freeradius/mods-enabled/always
# Instantiating module "attr_filter.post-proxy" from file
/etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file
/etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file
/etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/access_reject
# Instantiating module "attr_filter.access_challenge" from file
/etc/freeradius/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file
/etc/freeradius/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/mods-config/attr_filter/accounting_response
# Instantiating module "cache_eap" from file
/etc/freeradius/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree)
loaded and linked
# Instantiating module "detail" from file
/etc/freeradius/mods-enabled/detail
# Instantiating module "auth_log" from file
/etc/freeradius/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in
detail output
# Instantiating module "reply_log" from file
/etc/freeradius/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file
/etc/freeradius/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file
/etc/freeradius/mods-enabled/detail.log
# Instantiating module "eap" from file /etc/freeradius/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
# Linked to sub-module rlm_eap_leap
# Linked to sub-module rlm_eap_gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/etc/freeradius/certs"
pem_file_type = yes
private_key_file = "/etc/freeradius/certs/server.key"
certificate_file = "/etc/freeradius/certs/server.pem"
ca_file = "/etc/freeradius/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/etc/freeradius/certs/dh"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
cipher_list = "DEFAULT"
ecdh_curve = "prime256v1"
tls_max_version = ""
tls_min_version = "1.0"
cache {
enable = yes
lifetime = 24
name = "%{EAP-Type}%{Virtual-Server}"
max_entries = 255
persist_dir = "/var/log/radius/tlscache"
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
The configuration allows TLS 1.0 and/or TLS 1.1. We STRONGLY recommned
using only TLS 1.2 for security
Please set: tls_min_version = "1.2"
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "md5"
copy_request_to_tunnel = yes
use_tunneled_reply = yes
virtual_server = "inner-tunnel"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = yes
use_tunneled_reply = yes
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "expiration" from file
/etc/freeradius/mods-enabled/expiration
# Instantiating module "files" from file
/etc/freeradius/mods-enabled/files
reading pairlist file /etc/freeradius/mods-config/files/authorize
reading pairlist file /etc/freeradius/mods-config/files/accounting
reading pairlist file /etc/freeradius/mods-config/files/pre-proxy
# Instantiating module "linelog" from file
/etc/freeradius/mods-enabled/linelog
# Instantiating module "log_accounting" from file
/etc/freeradius/mods-enabled/linelog
# Instantiating module "logintime" from file
/etc/freeradius/mods-enabled/logintime
# Instantiating module "mschap" from file
/etc/freeradius/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "pap" from file /etc/freeradius/mods-enabled/pap
# Instantiating module "etc_passwd" from file
/etc/freeradius/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "preprocess" from file
/etc/freeradius/mods-enabled/preprocess
reading pairlist file /etc/freeradius/mods-config/preprocess/huntgroups
reading pairlist file /etc/freeradius/mods-config/preprocess/hints
# Instantiating module "IPASS" from file
/etc/freeradius/mods-enabled/realm
# Instantiating module "suffix" from file
/etc/freeradius/mods-enabled/realm
# Instantiating module "bangpath" from file
/etc/freeradius/mods-enabled/realm
# Instantiating module "realmpercent" from file
/etc/freeradius/mods-enabled/realm
# Instantiating module "ntdomain" from file
/etc/freeradius/mods-enabled/realm
# Instantiating module "cache" from file
/etc/freeradius/mods-enabled/cache
rlm_cache (cache): Driver rlm_cache_memcached (module rlm_cache_memcached)
loaded and linked
rlm_cache_memcached: libmemcached version: 1.0.18
memcached {
options = "--SERVER=radius-tls-cache"
}
rlm_cache (cache): Initialising connection pool
pool {
start = 5
min = 3
max = 32
spare = 10
uses = 0
lifetime = 0
cleanup_interval = 30
idle_timeout = 60
retry_delay = 1
spread = no
}
rlm_cache (cache): Opening additional connection (0), 1 of 32 pending slots
used
rlm_cache (cache): Opening additional connection (1), 1 of 31 pending slots
used
rlm_cache (cache): Opening additional connection (2), 1 of 30 pending slots
used
rlm_cache (cache): Opening additional connection (3), 1 of 29 pending slots
used
rlm_cache (cache): Opening additional connection (4), 1 of 28 pending slots
used
# Instantiating module "redis" from file
/etc/freeradius/mods-enabled/redis
rlm_redis (redis): Initialising connection pool
pool {
start = 5
min = 3
max = 32
spare = 10
uses = 0
lifetime = 86400
cleanup_interval = 300
idle_timeout = 600
retry_delay = 30
spread = no
}
rlm_redis (redis): Opening additional connection (0), 1 of 32 pending slots
used
rlm_redis (redis): Opening additional connection (1), 1 of 31 pending slots
used
rlm_redis (redis): Opening additional connection (2), 1 of 30 pending slots
used
rlm_redis (redis): Opening additional connection (3), 1 of 29 pending slots
used
rlm_redis (redis): Opening additional connection (4), 1 of 28 pending slots
used
# Instantiating module "rediswho" from file
/etc/freeradius/mods-enabled/rediswho
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/freeradius/radiusd.conf
} # server
server inner-tunnel { # from file /etc/freeradius/sites-enabled/inner-tunnel
# Loading authenticate {...}
# Loading authorize {...}
# Loading post-proxy {...}
# Loading post-auth {...}
} # server inner-tunnel
server essensys { # from file /etc/freeradius/sites-enabled/essensys
# Loading authenticate {...}
# Loading authorize {...}
# Loading preacct {...}
# Loading accounting {...}
# Loading post-proxy {...}
# Loading post-auth {...}
} # server essensys
server tls-cache { # from file /etc/freeradius/sites-enabled/tls-cache
} # server tls-cache
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "control"
listen {
socket = "/var/run/radiusd/radiusd.sock"
mode = "rw"
peercred = yes
}
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
listen {
type = "auth"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Listening on command file /var/run/radiusd/radiusd.sock
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on auth address * port 1812 bound to server essensys
Listening on proxy address * port 51948
Ready to process requests
(0) Received Access-Request Id 0 from 192.168.232.130:39449 to
172.22.0.4:1812 length 183
(0) User-Name = "XXX"
(0) NAS-IP-Address = 127.0.0.1
(0) Framed-MTU = 1400
(0) NAS-Port-Type = Wireless-802.11
(0) Service-Type = Framed-User
(0) Connect-Info = "CONNECT 11Mbps 802.11b"
(0) NAS-Identifier = "249-10321"
(0) Calling-Station-Id = "84-85-06-96-E4-96"
(0) EAP-Message =
0x026c00220173636f74742e6a6f686e73746f6e40657373656e7379732e636f2e756b
(0) Message-Authenticator = 0x9599b178097269c62574699bfd7c8377
(0) # Executing section authorize from file
/etc/freeradius/sites-enabled/essensys
(0) authorize {
(0) [preprocess] = ok
(0) [chap] = noop
(0) [mschap] = noop
(0) [digest] = noop
(0) update control {
(0) Cache-Status-Only = yes
(0) } # update control = noop
(0) cache: EXPAND %{Calling-Station-Id}:%{NAS-Identifier}
(0) cache: --> 84-85-06-96-E4-96:249-10321
rlm_cache (cache): Reserved connection (0)
(0) cache: Retrieved 321 bytes from memcached
(0) cache: &Cache-Expires = 1593834784 &Cache-Created = 1593791584
&control:User-Name := 'XXX' &control:Simultaneous-Use := 3
&reply:Tunnel-Type:-128 := VLAN &reply:Tunnel-Medium-Type:-128 := IEEE-802
&reply:Tunnel-Private-Group-Id:-128 := '2176'
(0) cache: ERROR: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN
rlm_cache (cache): Released connection (0)
Need 5 more connections to reach 10 spares
rlm_cache (cache): Opening additional connection (5), 1 of 27 pending slots
used
(0) [cache] = fail
(0) } # authorize = fail
(0) Invalid user (cache: Failed parsing pair: &reply:Tunnel-Type:-128 :=
VLAN): [XXX] (from client essensys-sg port 0 cli 84-85-06-96-E4-96)
(0) Using Post-Auth-Type Reject
(0) # Executing group from file /etc/freeradius/sites-enabled/essensys
(0) Post-Auth-Type REJECT {
(0) update control {
(0) Cache-TTL = 0
(0) } # update control = noop
(0) [updated] = updated
(0) cache: EXPAND %{Calling-Station-Id}:%{NAS-Identifier}
(0) cache: --> 84-85-06-96-E4-96:249-10321
rlm_cache (cache): Reserved connection (1)
(0) cache: Retrieved 321 bytes from memcached
(0) cache: &Cache-Expires = 1593834784 &Cache-Created = 1593791584
&control:User-Name := 'XXX' &control:Simultaneous-Use := 3
&reply:Tunnel-Type:-128 := VLAN &reply:Tunnel-Medium-Type:-128 := IEEE-802
&reply:Tunnel-Private-Group-Id:-128 := '2176'
(0) cache: ERROR: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN
rlm_cache (cache): Released connection (1)
(0) [cache] = fail
(0) } # Post-Auth-Type REJECT = fail
(0) Rejected in post-auth: [XXX] (from client XXX-sg port 0 cli
84-85-06-96-E4-96)
(0) Login incorrect (cache: Failed parsing pair: &reply:Tunnel-Type:-128 :=
VLAN): [XXX] (from client essensys-sg port 0 cli 84-85-06-96-E4-96)
(0) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.6 seconds.
(0) Sending delayed response
(0) Sent Access-Reject Id 0 from 172.22.0.4:1812 to 192.168.232.130:39449
length 20
Waking up in 3.9 seconds.
(0) Cleaning up request packet ID 0 with timestamp +4
2
3
All right I got freeradius working in a dial up pool
until one persn reported in and said could not connect.
I switched back (step backward) but for debuggin Radius -X or
send to a file?
--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
https://www.empire.kred/ROOTNK?t=94a1f39b
A full cup must be carried steadily. -English proverb
1
0
Just following the defaults and I get:
Sun Jul 5 22:23:27 2020 : Info: Loaded virtual server inner-tunnel
Sun Jul 5 22:23:27 2020 : Info: Ready to process requests
Sun Jul 5 22:26:36 2020 : Error: Ignoring request to auth address 127.0.0.1 port 18120 from unknown client 127.0.0.1 port 23866 proto tcp
Sun Jul 5 22:26:39 2020 : Error: Ignoring request to auth address 127.0.0.1 port 18120 from unknown client 127.0.0.1 port 23866 proto tcp
Sun Jul 5 22:26:42 2020 : Error: Ignoring request to auth address 127.0.0.1 port 18120 from unknown client 127.0.0.1 port 23866 proto tcp
Sun Jul 5 22:26:45 2020 : Error: Ignoring request to acct address 127.0.0.1 port 18121 from unknown client 127.0.0.1 port 49736 proto tcp
Sun Jul 5 22:26:48 2020 : Error: Ignoring request to acct address 127.0.0.1 port 18121 from unknown client 127.0.0.1 port 49736 proto tcp
Sun Jul 5 22:26:51 2020 : Error: Ignoring request to acct address 127.0.0.1 port 18121 from unknown client 127.0.0.1 port 49736 proto tcp
Sun Jul 5 22:26:54 2020 : Error: Ignoring request to acct address 127.0.0.1 port 18121 from unknown client 127.0.0.1 port 13207 proto tcp
Sun Jul 5 22:26:57 2020 : Error: Ignoring request to acct address 127.0.0.1 port 18121 from unknown client 127.0.0.1 port 13207 proto tcp
Sun Jul 5 22:27:00 2020 : Error: Ignoring request to acct address 127.0.0.1 port 18121 from unknown client 127.0.0.1 port 13207 proto tcp
Sun Jul 5 22:27:47 2020 : Error: Ignoring request to auth address 127.0.0.1 port 18120 from unknown client 127.0.0.1 port 42287 proto tcp
Sun Jul 5 22:27:50 2020 : Error: Ignoring request to auth address 127.0.0.1 port 18120 from unknown client 127.0.0.1 port 42287 proto tcp
Sun Jul 5 22:27:53 2020 : Error: Ignoring request to auth address 127.0.0.1 port 18120 from unknown client 127.0.0.1 port 42287 proto tcp
TCP? I thought the default was udp.
--
Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising!
https://www.empire.kred/ROOTNK?t=94a1f39b
A full cup must be carried steadily. -English proverb
1
0
Hello,
I seem to be having issues with the Memcached module, the updating the control e.g. “Cache-Status-Only” and “Cache-TTL” does seem to work. The same config with “rbtree” will work correctly.
Please see radiusd -X output below (note the request at the bottom fails for a different reason that I will raise separately)
Thanks
Scott
FreeRADIUS Version 3.0.21
Copyright (C) 1999-2019 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/share/freeradius/dictionary
including dictionary file /usr/share/freeradius/dictionary.dhcp
including dictionary file /usr/share/freeradius/dictionary.vqp
including dictionary file /etc/freeradius/dictionary
including configuration file /etc/freeradius/radiusd.conf
including configuration file /etc/freeradius/proxy.conf
including configuration file /etc/freeradius/clients.conf
including files in directory /etc/freeradius/mods-enabled/
including configuration file /etc/freeradius/mods-enabled/always
including configuration file /etc/freeradius/mods-enabled/attr_filter
including configuration file /etc/freeradius/mods-enabled/cache_eap
including configuration file /etc/freeradius/mods-enabled/chap
including configuration file /etc/freeradius/mods-enabled/date
including configuration file /etc/freeradius/mods-enabled/detail
including configuration file /etc/freeradius/mods-enabled/detail.log
including configuration file /etc/freeradius/mods-enabled/digest
including configuration file /etc/freeradius/mods-enabled/dynamic_clients
including configuration file /etc/freeradius/mods-enabled/eap
including configuration file /etc/freeradius/mods-enabled/echo
including configuration file /etc/freeradius/mods-enabled/exec
including configuration file /etc/freeradius/mods-enabled/expiration
including configuration file /etc/freeradius/mods-enabled/expr
including configuration file /etc/freeradius/mods-enabled/files
including configuration file /etc/freeradius/mods-enabled/linelog
including configuration file /etc/freeradius/mods-enabled/logintime
including configuration file /etc/freeradius/mods-enabled/mschap
including configuration file /etc/freeradius/mods-enabled/ntlm_auth
including configuration file /etc/freeradius/mods-enabled/pap
including configuration file /etc/freeradius/mods-enabled/passwd
including configuration file /etc/freeradius/mods-enabled/preprocess
including configuration file /etc/freeradius/mods-enabled/radutmp
including configuration file /etc/freeradius/mods-enabled/realm
including configuration file /etc/freeradius/mods-enabled/replicate
including configuration file /etc/freeradius/mods-enabled/soh
including configuration file /etc/freeradius/mods-enabled/sradutmp
including configuration file /etc/freeradius/mods-enabled/unix
including configuration file /etc/freeradius/mods-enabled/unpack
including configuration file /etc/freeradius/mods-enabled/utf8
including configuration file /etc/freeradius/mods-enabled/cache
including configuration file /etc/freeradius/mods-enabled/redis
including configuration file /etc/freeradius/mods-enabled/rediswho
including files in directory /etc/freeradius/policy.d/
including configuration file /etc/freeradius/policy.d/abfab-tr
including configuration file /etc/freeradius/policy.d/accounting
including configuration file /etc/freeradius/policy.d/canonicalization
including configuration file /etc/freeradius/policy.d/control
including configuration file /etc/freeradius/policy.d/cui
including configuration file /etc/freeradius/policy.d/debug
including configuration file /etc/freeradius/policy.d/dhcp
including configuration file /etc/freeradius/policy.d/eap
including configuration file /etc/freeradius/policy.d/filter
including configuration file /etc/freeradius/policy.d/moonshot-targeted-ids
including configuration file /etc/freeradius/policy.d/operator-name
including configuration file /etc/freeradius/policy.d/rfc7542
including configuration file /etc/freeradius/policy.d/essesnsys
including files in directory /etc/freeradius/sites-enabled/
including configuration file /etc/freeradius/sites-enabled/inner-tunnel
including configuration file /etc/freeradius/sites-enabled/control-socket
including configuration file /etc/freeradius/sites-enabled/essensys
including configuration file /etc/freeradius/sites-enabled/tls-cache
main {
security {
user = "freerad"
group = "freerad"
allow_core_dumps = no
}
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
}
main {
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
sbindir = "/usr/sbin"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
libdir = "/usr/lib64/freeradius"
radacctdir = "/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 640000
pidfile = "/var/run/radiusd/radiusd.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = yes
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
home_server essensys_qa {
ipaddr = 10.100.1.214
port = 1812
type = "auth"
secret = <<< secret >>>
response_window = 30.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "none"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool essensys_qa_pool {
type = fail-over
home_server = essensys_qa
}
realm offsite {
auth_pool = essensys_qa_pool
}
radiusd: #### Loading Clients ####
client essensys-sg {
ipaddr = 192.168.232.0/21
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client proxy-lon {
ipaddr = 10.100.1.252/32
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debug state unknown (cap_sys_ptrace capability not set)
systemd watchdog is disabled
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
# Creating Auth-Type = digest
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_always
# Loading module "reject" from file /etc/freeradius/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /etc/freeradius/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /etc/freeradius/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /etc/freeradius/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /etc/freeradius/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /etc/freeradius/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /etc/freeradius/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /etc/freeradius/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /etc/freeradius/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/etc/freeradius/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/etc/freeradius/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/etc/freeradius/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_cache
# Loading module "cache_eap" from file /etc/freeradius/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_chap
# Loading module "chap" from file /etc/freeradius/mods-enabled/chap
# Loaded module rlm_date
# Loading module "date" from file /etc/freeradius/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file /etc/freeradius/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_detail
# Loading module "detail" from file /etc/freeradius/mods-enabled/detail
detail {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "auth_log" from file /etc/freeradius/mods-enabled/detail.log
detail auth_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /etc/freeradius/mods-enabled/detail.log
detail reply_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
detail post_proxy_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_digest
# Loading module "digest" from file /etc/freeradius/mods-enabled/digest
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file /etc/freeradius/mods-enabled/dynamic_clients
# Loaded module rlm_eap
# Loading module "eap" from file /etc/freeradius/mods-enabled/eap
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 640000
}
# Loaded module rlm_exec
# Loading module "echo" from file /etc/freeradius/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loading module "exec" from file /etc/freeradius/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_expiration
# Loading module "expiration" from file /etc/freeradius/mods-enabled/expiration
# Loaded module rlm_expr
# Loading module "expr" from file /etc/freeradius/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loaded module rlm_files
# Loading module "files" from file /etc/freeradius/mods-enabled/files
files {
filename = "/etc/freeradius/mods-config/files/authorize"
acctusersfile = "/etc/freeradius/mods-config/files/accounting"
preproxy_usersfile = "/etc/freeradius/mods-config/files/pre-proxy"
}
# Loaded module rlm_linelog
# Loading module "linelog" from file /etc/freeradius/mods-enabled/linelog
linelog {
filename = "/var/log/radius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /etc/freeradius/mods-enabled/linelog
linelog log_accounting {
filename = "/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_logintime
# Loading module "logintime" from file /etc/freeradius/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /etc/freeradius/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loading module "ntlm_auth" from file /etc/freeradius/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_pap
# Loading module "pap" from file /etc/freeradius/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /etc/freeradius/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /etc/freeradius/mods-enabled/preprocess
preprocess {
huntgroups = "/etc/freeradius/mods-config/preprocess/huntgroups"
hints = "/etc/freeradius/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_radutmp
# Loading module "radutmp" from file /etc/freeradius/mods-enabled/radutmp
radutmp {
filename = "/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_realm
# Loading module "IPASS" from file /etc/freeradius/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /etc/freeradius/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "bangpath" from file /etc/freeradius/mods-enabled/realm
realm bangpath {
format = "prefix"
delimiter = "!"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /etc/freeradius/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /etc/freeradius/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_replicate
# Loading module "replicate" from file /etc/freeradius/mods-enabled/replicate
# Loaded module rlm_soh
# Loading module "soh" from file /etc/freeradius/mods-enabled/soh
soh {
dhcp = yes
}
# Loading module "sradutmp" from file /etc/freeradius/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_unix
# Loading module "unix" from file /etc/freeradius/mods-enabled/unix
unix {
radwtmp = "/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_unpack
# Loading module "unpack" from file /etc/freeradius/mods-enabled/unpack
# Loaded module rlm_utf8
# Loading module "utf8" from file /etc/freeradius/mods-enabled/utf8
# Loading module "cache" from file /etc/freeradius/mods-enabled/cache
cache {
driver = "rlm_cache_memcached"
key = "%{Calling-Station-Id}:%{NAS-Identifier}"
ttl = 43200
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_redis
# Loading module "redis" from file /etc/freeradius/mods-enabled/redis
redis {
server = "radius-cache"
port = 6379
database = 0
query_timeout = 5
}
rlm_redis: libhiredis version: 0.13.3
# Loaded module rlm_rediswho
# Loading module "rediswho" from file /etc/freeradius/mods-enabled/rediswho
rediswho {
redis_module_instance = "redis"
trim_count = 15
Start {
insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
trim = "LTRIM %{User-Name} 0 15"
expire = "EXPIRE %{User-Name} 86400"
}
Interim-Update {
insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
trim = "LTRIM %{User-Name} 0 15"
expire = "EXPIRE %{User-Name} 86400"
}
Stop {
insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
trim = "LTRIM %{User-Name} 0 15"
expire = "EXPIRE %{User-Name} 86400"
}
}
instantiate {
}
# Instantiating module "reject" from file /etc/freeradius/mods-enabled/always
# Instantiating module "fail" from file /etc/freeradius/mods-enabled/always
# Instantiating module "ok" from file /etc/freeradius/mods-enabled/always
# Instantiating module "handled" from file /etc/freeradius/mods-enabled/always
# Instantiating module "invalid" from file /etc/freeradius/mods-enabled/always
# Instantiating module "userlock" from file /etc/freeradius/mods-enabled/always
# Instantiating module "notfound" from file /etc/freeradius/mods-enabled/always
# Instantiating module "noop" from file /etc/freeradius/mods-enabled/always
# Instantiating module "updated" from file /etc/freeradius/mods-enabled/always
# Instantiating module "attr_filter.post-proxy" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/access_reject
# Instantiating module "attr_filter.access_challenge" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/accounting_response
# Instantiating module "cache_eap" from file /etc/freeradius/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
# Instantiating module "detail" from file /etc/freeradius/mods-enabled/detail
# Instantiating module "auth_log" from file /etc/freeradius/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
# Instantiating module "reply_log" from file /etc/freeradius/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
# Instantiating module "eap" from file /etc/freeradius/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
# Linked to sub-module rlm_eap_leap
# Linked to sub-module rlm_eap_gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/etc/freeradius/certs"
pem_file_type = yes
private_key_file = "/etc/freeradius/certs/server.key"
certificate_file = "/etc/freeradius/certs/server.pem"
ca_file = "/etc/freeradius/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/etc/freeradius/certs/dh"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
cipher_list = "DEFAULT"
ecdh_curve = "prime256v1"
tls_max_version = ""
tls_min_version = "1.0"
cache {
enable = yes
lifetime = 24
name = "%{EAP-Type}%{Virtual-Server}"
max_entries = 255
persist_dir = "/var/log/radius/tlscache"
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
The configuration allows TLS 1.0 and/or TLS 1.1. We STRONGLY recommned using only TLS 1.2 for security
Please set: tls_min_version = "1.2"
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "md5"
copy_request_to_tunnel = yes
use_tunneled_reply = yes
virtual_server = "inner-tunnel"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = yes
use_tunneled_reply = yes
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "expiration" from file /etc/freeradius/mods-enabled/expiration
# Instantiating module "files" from file /etc/freeradius/mods-enabled/files
reading pairlist file /etc/freeradius/mods-config/files/authorize
reading pairlist file /etc/freeradius/mods-config/files/accounting
reading pairlist file /etc/freeradius/mods-config/files/pre-proxy
# Instantiating module "linelog" from file /etc/freeradius/mods-enabled/linelog
# Instantiating module "log_accounting" from file /etc/freeradius/mods-enabled/linelog
# Instantiating module "logintime" from file /etc/freeradius/mods-enabled/logintime
# Instantiating module "mschap" from file /etc/freeradius/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "pap" from file /etc/freeradius/mods-enabled/pap
# Instantiating module "etc_passwd" from file /etc/freeradius/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "preprocess" from file /etc/freeradius/mods-enabled/preprocess
reading pairlist file /etc/freeradius/mods-config/preprocess/huntgroups
reading pairlist file /etc/freeradius/mods-config/preprocess/hints
# Instantiating module "IPASS" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "suffix" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "bangpath" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "realmpercent" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "ntdomain" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "cache" from file /etc/freeradius/mods-enabled/cache
rlm_cache (cache): Driver rlm_cache_memcached (module rlm_cache_memcached) loaded and linked
rlm_cache_memcached: libmemcached version: 1.0.18
memcached {
options = "--SERVER=radius-tls-cache"
}
rlm_cache (cache): Initialising connection pool
pool {
start = 5
min = 3
max = 32
spare = 10
uses = 0
lifetime = 0
cleanup_interval = 30
idle_timeout = 60
retry_delay = 1
spread = no
}
rlm_cache (cache): Opening additional connection (0), 1 of 32 pending slots used
rlm_cache (cache): Opening additional connection (1), 1 of 31 pending slots used
rlm_cache (cache): Opening additional connection (2), 1 of 30 pending slots used
rlm_cache (cache): Opening additional connection (3), 1 of 29 pending slots used
rlm_cache (cache): Opening additional connection (4), 1 of 28 pending slots used
# Instantiating module "redis" from file /etc/freeradius/mods-enabled/redis
rlm_redis (redis): Initialising connection pool
pool {
start = 5
min = 3
max = 32
spare = 10
uses = 0
lifetime = 86400
cleanup_interval = 300
idle_timeout = 600
retry_delay = 30
spread = no
}
rlm_redis (redis): Opening additional connection (0), 1 of 32 pending slots used
rlm_redis (redis): Opening additional connection (1), 1 of 31 pending slots used
rlm_redis (redis): Opening additional connection (2), 1 of 30 pending slots used
rlm_redis (redis): Opening additional connection (3), 1 of 29 pending slots used
rlm_redis (redis): Opening additional connection (4), 1 of 28 pending slots used
# Instantiating module "rediswho" from file /etc/freeradius/mods-enabled/rediswho
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/freeradius/radiusd.conf
} # server
server inner-tunnel { # from file /etc/freeradius/sites-enabled/inner-tunnel
# Loading authenticate {...}
# Loading authorize {...}
# Loading post-proxy {...}
# Loading post-auth {...}
} # server inner-tunnel
server essensys { # from file /etc/freeradius/sites-enabled/essensys
# Loading authenticate {...}
# Loading authorize {...}
# Loading preacct {...}
# Loading accounting {...}
# Loading post-proxy {...}
# Loading post-auth {...}
} # server essensys
server tls-cache { # from file /etc/freeradius/sites-enabled/tls-cache
} # server tls-cache
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "control"
listen {
socket = "/var/run/radiusd/radiusd.sock"
mode = "rw"
peercred = yes
}
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
listen {
type = "auth"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Listening on command file /var/run/radiusd/radiusd.sock
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on auth address * port 1812 bound to server essensys
Listening on proxy address * port 58792
Ready to process requests
(0) Received Access-Request Id 0 from 192.168.232.130:34736 to 172.22.0.4:1812 length 183
(0) User-Name = "scott.johnston(a)essensys.co.uk<mailto:scott.johnston@essensys.co.uk>"
(0) NAS-IP-Address = 127.0.0.1
(0) Framed-MTU = 1400
(0) NAS-Port-Type = Wireless-802.11
(0) Service-Type = Framed-User
(0) Connect-Info = "CONNECT 11Mbps 802.11b"
(0) NAS-Identifier = "249-10321"
(0) Calling-Station-Id = "84-85-06-96-E4-96"
(0) EAP-Message = 0x022600220173636f74742e6a6f686e73746f6e40657373656e7379732e636f2e756b
(0) Message-Authenticator = 0x197f34d095aab62da275c02a55f74a23
(0) # Executing section authorize from file /etc/freeradius/sites-enabled/essensys
(0) authorize {
(0) [preprocess] = ok
(0) [chap] = noop
(0) [mschap] = noop
(0) [digest] = noop
(0) update control {
(0) Cache-Status-Only = yes
(0) } # update control = noop
(0) cache: EXPAND %{Calling-Station-Id}:%{NAS-Identifier}
(0) cache: --> 84-85-06-96-E4-96:249-10321
rlm_cache (cache): Reserved connection (0)
(0) cache: Retrieved 321 bytes from memcached
(0) cache: &Cache-Expires = 1593834784 &Cache-Created = 1593791584 &control:User-Name := 'scott.johnston(a)essensys.co.uk' &control:Simultaneous-Use := 3 &control:NT-Password := 0x3e678b266d1d449e531e92bec33b6d27 &reply:Tunnel-Type:-128 := VLAN &reply:Tunnel-Medium-Type:-128 := IEEE-802 &reply:Tunnel-Private-Group-Id:-128 := '2176'
(0) cache: ERROR: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN
rlm_cache (cache): Released connection (0)
Need 5 more connections to reach 10 spares
rlm_cache (cache): Opening additional connection (5), 1 of 27 pending slots used
(0) [cache] = fail
(0) } # authorize = fail
(0) Invalid user (cache: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN): [scott.johnston(a)essensys.co.uk] (from client essensys-sg port 0 cli 84-85-06-96-E4-96)
(0) Using Post-Auth-Type Reject
(0) # Executing group from file /etc/freeradius/sites-enabled/essensys
(0) Post-Auth-Type REJECT {
(0) update control {
(0) Cache-TTL = 1
(0) } # update control = noop
(0) cache: EXPAND %{Calling-Station-Id}:%{NAS-Identifier}
(0) cache: --> 84-85-06-96-E4-96:249-10321
rlm_cache (cache): Reserved connection (1)
(0) cache: Retrieved 321 bytes from memcached
(0) cache: &Cache-Expires = 1593834784 &Cache-Created = 1593791584 &control:User-Name := 'scott.johnston(a)essensys.co.uk' &control:Simultaneous-Use := 3 &control:NT-Password := 0x3e678b266d1d449e531e92bec33b6d27 &reply:Tunnel-Type:-128 := VLAN &reply:Tunnel-Medium-Type:-128 := IEEE-802 &reply:Tunnel-Private-Group-Id:-128 := '2176'
(0) cache: ERROR: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN
rlm_cache (cache): Released connection (1)
(0) [cache] = fail
(0) } # Post-Auth-Type REJECT = fail
(0) Rejected in post-auth: [scott.johnston(a)essensys.co.uk] (from client essensys-sg port 0 cli 84-85-06-96-E4-96)
(0) Login incorrect (cache: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN): [scott.johnston(a)essensys.co.uk] (from client essensys-sg port 0 cli 84-85-06-96-E4-96)
(0) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.6 seconds.
(0) Sending delayed response
(0) Sent Access-Reject Id 0 from 172.22.0.4:1812 to 192.168.232.130:34736 length 20
Waking up in 3.9 seconds.
(0) Cleaning up request packet ID 0 with timestamp +4
Ready to process requests
Ready to process requests
Signalled to terminate
Exiting normally
rlm_cache (cache): Removing connection pool
rlm_cache (cache): Closing connection (5)
rlm_cache (cache): Closing connection (4)
rlm_cache (cache): Closing connection (3)
rlm_cache (cache): Closing connection (2)
rlm_cache (cache): Closing connection (1)
rlm_cache (cache): Closing connection (0)
rlm_redis (redis): Removing connection pool
rlm_redis (redis): Closing connection (4)
rlm_redis (redis): Closing connection (3)
rlm_redis (redis): Closing connection (2)
rlm_redis (redis): Closing connection (1)
rlm_redis (redis): Closing connection (0)
FreeRADIUS Version 3.0.21
Copyright (C) 1999-2019 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/share/freeradius/dictionary
including dictionary file /usr/share/freeradius/dictionary.dhcp
including dictionary file /usr/share/freeradius/dictionary.vqp
including dictionary file /etc/freeradius/dictionary
including configuration file /etc/freeradius/radiusd.conf
including configuration file /etc/freeradius/proxy.conf
including configuration file /etc/freeradius/clients.conf
including files in directory /etc/freeradius/mods-enabled/
including configuration file /etc/freeradius/mods-enabled/always
including configuration file /etc/freeradius/mods-enabled/attr_filter
including configuration file /etc/freeradius/mods-enabled/cache_eap
including configuration file /etc/freeradius/mods-enabled/chap
including configuration file /etc/freeradius/mods-enabled/date
including configuration file /etc/freeradius/mods-enabled/detail
including configuration file /etc/freeradius/mods-enabled/detail.log
including configuration file /etc/freeradius/mods-enabled/digest
including configuration file /etc/freeradius/mods-enabled/dynamic_clients
including configuration file /etc/freeradius/mods-enabled/eap
including configuration file /etc/freeradius/mods-enabled/echo
including configuration file /etc/freeradius/mods-enabled/exec
including configuration file /etc/freeradius/mods-enabled/expiration
including configuration file /etc/freeradius/mods-enabled/expr
including configuration file /etc/freeradius/mods-enabled/files
including configuration file /etc/freeradius/mods-enabled/linelog
including configuration file /etc/freeradius/mods-enabled/logintime
including configuration file /etc/freeradius/mods-enabled/mschap
including configuration file /etc/freeradius/mods-enabled/ntlm_auth
including configuration file /etc/freeradius/mods-enabled/pap
including configuration file /etc/freeradius/mods-enabled/passwd
including configuration file /etc/freeradius/mods-enabled/preprocess
including configuration file /etc/freeradius/mods-enabled/radutmp
including configuration file /etc/freeradius/mods-enabled/realm
including configuration file /etc/freeradius/mods-enabled/replicate
including configuration file /etc/freeradius/mods-enabled/soh
including configuration file /etc/freeradius/mods-enabled/sradutmp
including configuration file /etc/freeradius/mods-enabled/unix
including configuration file /etc/freeradius/mods-enabled/unpack
including configuration file /etc/freeradius/mods-enabled/utf8
including configuration file /etc/freeradius/mods-enabled/cache
including configuration file /etc/freeradius/mods-enabled/redis
including configuration file /etc/freeradius/mods-enabled/rediswho
including files in directory /etc/freeradius/policy.d/
including configuration file /etc/freeradius/policy.d/abfab-tr
including configuration file /etc/freeradius/policy.d/accounting
including configuration file /etc/freeradius/policy.d/canonicalization
including configuration file /etc/freeradius/policy.d/control
including configuration file /etc/freeradius/policy.d/cui
including configuration file /etc/freeradius/policy.d/debug
including configuration file /etc/freeradius/policy.d/dhcp
including configuration file /etc/freeradius/policy.d/eap
including configuration file /etc/freeradius/policy.d/filter
including configuration file /etc/freeradius/policy.d/moonshot-targeted-ids
including configuration file /etc/freeradius/policy.d/operator-name
including configuration file /etc/freeradius/policy.d/rfc7542
including configuration file /etc/freeradius/policy.d/essesnsys
including files in directory /etc/freeradius/sites-enabled/
including configuration file /etc/freeradius/sites-enabled/inner-tunnel
including configuration file /etc/freeradius/sites-enabled/control-socket
including configuration file /etc/freeradius/sites-enabled/essensys
including configuration file /etc/freeradius/sites-enabled/tls-cache
main {
security {
user = "freerad"
group = "freerad"
allow_core_dumps = no
}
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
}
main {
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
sbindir = "/usr/sbin"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
libdir = "/usr/lib64/freeradius"
radacctdir = "/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 640000
pidfile = "/var/run/radiusd/radiusd.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = yes
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
home_server essensys_qa {
ipaddr = 10.100.1.214
port = 1812
type = "auth"
secret = <<< secret >>>
response_window = 30.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "none"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool essensys_qa_pool {
type = fail-over
home_server = essensys_qa
}
realm offsite {
auth_pool = essensys_qa_pool
}
radiusd: #### Loading Clients ####
client essensys-sg {
ipaddr = 192.168.232.0/21
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client proxy-lon {
ipaddr = 10.100.1.252/32
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debug state unknown (cap_sys_ptrace capability not set)
systemd watchdog is disabled
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
# Creating Auth-Type = digest
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_always
# Loading module "reject" from file /etc/freeradius/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /etc/freeradius/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /etc/freeradius/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /etc/freeradius/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /etc/freeradius/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /etc/freeradius/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /etc/freeradius/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /etc/freeradius/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /etc/freeradius/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/etc/freeradius/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/etc/freeradius/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/etc/freeradius/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_cache
# Loading module "cache_eap" from file /etc/freeradius/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_chap
# Loading module "chap" from file /etc/freeradius/mods-enabled/chap
# Loaded module rlm_date
# Loading module "date" from file /etc/freeradius/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file /etc/freeradius/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_detail
# Loading module "detail" from file /etc/freeradius/mods-enabled/detail
detail {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "auth_log" from file /etc/freeradius/mods-enabled/detail.log
detail auth_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /etc/freeradius/mods-enabled/detail.log
detail reply_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
detail post_proxy_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_digest
# Loading module "digest" from file /etc/freeradius/mods-enabled/digest
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file /etc/freeradius/mods-enabled/dynamic_clients
# Loaded module rlm_eap
# Loading module "eap" from file /etc/freeradius/mods-enabled/eap
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 640000
}
# Loaded module rlm_exec
# Loading module "echo" from file /etc/freeradius/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loading module "exec" from file /etc/freeradius/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_expiration
# Loading module "expiration" from file /etc/freeradius/mods-enabled/expiration
# Loaded module rlm_expr
# Loading module "expr" from file /etc/freeradius/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loaded module rlm_files
# Loading module "files" from file /etc/freeradius/mods-enabled/files
files {
filename = "/etc/freeradius/mods-config/files/authorize"
acctusersfile = "/etc/freeradius/mods-config/files/accounting"
preproxy_usersfile = "/etc/freeradius/mods-config/files/pre-proxy"
}
# Loaded module rlm_linelog
# Loading module "linelog" from file /etc/freeradius/mods-enabled/linelog
linelog {
filename = "/var/log/radius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /etc/freeradius/mods-enabled/linelog
linelog log_accounting {
filename = "/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_logintime
# Loading module "logintime" from file /etc/freeradius/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /etc/freeradius/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loading module "ntlm_auth" from file /etc/freeradius/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_pap
# Loading module "pap" from file /etc/freeradius/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /etc/freeradius/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /etc/freeradius/mods-enabled/preprocess
preprocess {
huntgroups = "/etc/freeradius/mods-config/preprocess/huntgroups"
hints = "/etc/freeradius/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_radutmp
# Loading module "radutmp" from file /etc/freeradius/mods-enabled/radutmp
radutmp {
filename = "/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_realm
# Loading module "IPASS" from file /etc/freeradius/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /etc/freeradius/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "bangpath" from file /etc/freeradius/mods-enabled/realm
realm bangpath {
format = "prefix"
delimiter = "!"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /etc/freeradius/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /etc/freeradius/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_replicate
# Loading module "replicate" from file /etc/freeradius/mods-enabled/replicate
# Loaded module rlm_soh
# Loading module "soh" from file /etc/freeradius/mods-enabled/soh
soh {
dhcp = yes
}
# Loading module "sradutmp" from file /etc/freeradius/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_unix
# Loading module "unix" from file /etc/freeradius/mods-enabled/unix
unix {
radwtmp = "/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_unpack
# Loading module "unpack" from file /etc/freeradius/mods-enabled/unpack
# Loaded module rlm_utf8
# Loading module "utf8" from file /etc/freeradius/mods-enabled/utf8
# Loading module "cache" from file /etc/freeradius/mods-enabled/cache
cache {
driver = "rlm_cache_memcached"
key = "%{Calling-Station-Id}:%{NAS-Identifier}"
ttl = 43200
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_redis
# Loading module "redis" from file /etc/freeradius/mods-enabled/redis
redis {
server = "radius-cache"
port = 6379
database = 0
query_timeout = 5
}
rlm_redis: libhiredis version: 0.13.3
# Loaded module rlm_rediswho
# Loading module "rediswho" from file /etc/freeradius/mods-enabled/rediswho
rediswho {
redis_module_instance = "redis"
trim_count = 15
Start {
insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
trim = "LTRIM %{User-Name} 0 15"
expire = "EXPIRE %{User-Name} 86400"
}
Interim-Update {
insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
trim = "LTRIM %{User-Name} 0 15"
expire = "EXPIRE %{User-Name} 86400"
}
Stop {
insert = "LPUSH %{User-Name} %l,%{Acct-Session-Id},%{NAS-IP-Address},%{Acct-Session-Time},%{Framed-IP-Address},%{%{Acct-Input-Gigawords}:-0},%{%{Acct-Output-Gigawords}:-0},%{%{Acct-Input-Octets}:-0},%{%{Acct-Output-Octets}:-0}"
trim = "LTRIM %{User-Name} 0 15"
expire = "EXPIRE %{User-Name} 86400"
}
}
instantiate {
}
# Instantiating module "reject" from file /etc/freeradius/mods-enabled/always
# Instantiating module "fail" from file /etc/freeradius/mods-enabled/always
# Instantiating module "ok" from file /etc/freeradius/mods-enabled/always
# Instantiating module "handled" from file /etc/freeradius/mods-enabled/always
# Instantiating module "invalid" from file /etc/freeradius/mods-enabled/always
# Instantiating module "userlock" from file /etc/freeradius/mods-enabled/always
# Instantiating module "notfound" from file /etc/freeradius/mods-enabled/always
# Instantiating module "noop" from file /etc/freeradius/mods-enabled/always
# Instantiating module "updated" from file /etc/freeradius/mods-enabled/always
# Instantiating module "attr_filter.post-proxy" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/access_reject
# Instantiating module "attr_filter.access_challenge" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/accounting_response
# Instantiating module "cache_eap" from file /etc/freeradius/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
# Instantiating module "detail" from file /etc/freeradius/mods-enabled/detail
# Instantiating module "auth_log" from file /etc/freeradius/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
# Instantiating module "reply_log" from file /etc/freeradius/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
# Instantiating module "eap" from file /etc/freeradius/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
# Linked to sub-module rlm_eap_leap
# Linked to sub-module rlm_eap_gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/etc/freeradius/certs"
pem_file_type = yes
private_key_file = "/etc/freeradius/certs/server.key"
certificate_file = "/etc/freeradius/certs/server.pem"
ca_file = "/etc/freeradius/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/etc/freeradius/certs/dh"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
cipher_list = "DEFAULT"
ecdh_curve = "prime256v1"
tls_max_version = ""
tls_min_version = "1.0"
cache {
enable = yes
lifetime = 24
name = "%{EAP-Type}%{Virtual-Server}"
max_entries = 255
persist_dir = "/var/log/radius/tlscache"
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
The configuration allows TLS 1.0 and/or TLS 1.1. We STRONGLY recommned using only TLS 1.2 for security
Please set: tls_min_version = "1.2"
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "md5"
copy_request_to_tunnel = yes
use_tunneled_reply = yes
virtual_server = "inner-tunnel"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = yes
use_tunneled_reply = yes
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "expiration" from file /etc/freeradius/mods-enabled/expiration
# Instantiating module "files" from file /etc/freeradius/mods-enabled/files
reading pairlist file /etc/freeradius/mods-config/files/authorize
reading pairlist file /etc/freeradius/mods-config/files/accounting
reading pairlist file /etc/freeradius/mods-config/files/pre-proxy
# Instantiating module "linelog" from file /etc/freeradius/mods-enabled/linelog
# Instantiating module "log_accounting" from file /etc/freeradius/mods-enabled/linelog
# Instantiating module "logintime" from file /etc/freeradius/mods-enabled/logintime
# Instantiating module "mschap" from file /etc/freeradius/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "pap" from file /etc/freeradius/mods-enabled/pap
# Instantiating module "etc_passwd" from file /etc/freeradius/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "preprocess" from file /etc/freeradius/mods-enabled/preprocess
reading pairlist file /etc/freeradius/mods-config/preprocess/huntgroups
reading pairlist file /etc/freeradius/mods-config/preprocess/hints
# Instantiating module "IPASS" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "suffix" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "bangpath" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "realmpercent" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "ntdomain" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "cache" from file /etc/freeradius/mods-enabled/cache
rlm_cache (cache): Driver rlm_cache_memcached (module rlm_cache_memcached) loaded and linked
rlm_cache_memcached: libmemcached version: 1.0.18
memcached {
options = "--SERVER=radius-tls-cache"
}
rlm_cache (cache): Initialising connection pool
pool {
start = 5
min = 3
max = 32
spare = 10
uses = 0
lifetime = 0
cleanup_interval = 30
idle_timeout = 60
retry_delay = 1
spread = no
}
rlm_cache (cache): Opening additional connection (0), 1 of 32 pending slots used
rlm_cache (cache): Opening additional connection (1), 1 of 31 pending slots used
rlm_cache (cache): Opening additional connection (2), 1 of 30 pending slots used
rlm_cache (cache): Opening additional connection (3), 1 of 29 pending slots used
rlm_cache (cache): Opening additional connection (4), 1 of 28 pending slots used
# Instantiating module "redis" from file /etc/freeradius/mods-enabled/redis
rlm_redis (redis): Initialising connection pool
pool {
start = 5
min = 3
max = 32
spare = 10
uses = 0
lifetime = 86400
cleanup_interval = 300
idle_timeout = 600
retry_delay = 30
spread = no
}
rlm_redis (redis): Opening additional connection (0), 1 of 32 pending slots used
rlm_redis (redis): Opening additional connection (1), 1 of 31 pending slots used
rlm_redis (redis): Opening additional connection (2), 1 of 30 pending slots used
rlm_redis (redis): Opening additional connection (3), 1 of 29 pending slots used
rlm_redis (redis): Opening additional connection (4), 1 of 28 pending slots used
# Instantiating module "rediswho" from file /etc/freeradius/mods-enabled/rediswho
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/freeradius/radiusd.conf
} # server
server inner-tunnel { # from file /etc/freeradius/sites-enabled/inner-tunnel
# Loading authenticate {...}
# Loading authorize {...}
# Loading post-proxy {...}
# Loading post-auth {...}
} # server inner-tunnel
server essensys { # from file /etc/freeradius/sites-enabled/essensys
# Loading authenticate {...}
# Loading authorize {...}
# Loading preacct {...}
# Loading accounting {...}
# Loading post-proxy {...}
# Loading post-auth {...}
} # server essensys
server tls-cache { # from file /etc/freeradius/sites-enabled/tls-cache
} # server tls-cache
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "control"
listen {
socket = "/var/run/radiusd/radiusd.sock"
mode = "rw"
peercred = yes
}
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
listen {
type = "auth"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Listening on command file /var/run/radiusd/radiusd.sock
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on auth address * port 1812 bound to server essensys
Listening on proxy address * port 51948
Ready to process requests
(0) Received Access-Request Id 0 from 192.168.232.130:39449 to 172.22.0.4:1812 length 183
(0) User-Name = "XXXX"
(0) NAS-IP-Address = 127.0.0.1
(0) Framed-MTU = 1400
(0) NAS-Port-Type = Wireless-802.11
(0) Service-Type = Framed-User
(0) Connect-Info = "CONNECT 11Mbps 802.11b"
(0) NAS-Identifier = "249-10321"
(0) Calling-Station-Id = "84-85-06-96-E4-96"
(0) EAP-Message = 0x026c00220173636f74742e6a6f686e73746f6e40657373656e7379732e636f2e756b
(0) Message-Authenticator = 0x9599b178097269c62574699bfd7c8377
(0) # Executing section authorize from file /etc/freeradius/sites-enabled/essensys
(0) authorize {
(0) [preprocess] = ok
(0) [chap] = noop
(0) [mschap] = noop
(0) [digest] = noop
(0) update control {
(0) Cache-Status-Only = yes
(0) } # update control = noop
(0) cache: EXPAND %{Calling-Station-Id}:%{NAS-Identifier}
(0) cache: --> 84-85-06-96-E4-96:249-10321
rlm_cache (cache): Reserved connection (0)
(0) cache: Retrieved 321 bytes from memcached
(0) cache: &Cache-Expires = 1593834784 &Cache-Created = 1593791584 &control:User-Name := 'XXX' &control:Simultaneous-Use := 3 &reply:Tunnel-Type:-128 := VLAN &reply:Tunnel-Medium-Type:-128 := IEEE-802 &reply:Tunnel-Private-Group-Id:-128 := '2176'
(0) cache: ERROR: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN
rlm_cache (cache): Released connection (0)
Need 5 more connections to reach 10 spares
rlm_cache (cache): Opening additional connection (5), 1 of 27 pending slots used
(0) [cache] = fail
(0) } # authorize = fail
(0) Invalid user (cache: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN): [XXX] (from client essensys-sg port 0 cli 84-85-06-96-E4-96)
(0) Using Post-Auth-Type Reject
(0) # Executing group from file /etc/freeradius/sites-enabled/essensys
(0) Post-Auth-Type REJECT {
(0) update control {
(0) Cache-TTL = 0
(0) } # update control = noop
(0) [updated] = updated
(0) cache: EXPAND %{Calling-Station-Id}:%{NAS-Identifier}
(0) cache: --> 84-85-06-96-E4-96:249-10321
rlm_cache (cache): Reserved connection (1)
(0) cache: Retrieved 321 bytes from memcached
(0) cache: &Cache-Expires = 1593834784 &Cache-Created = 1593791584 &control:User-Name := 'XXX' &control:Simultaneous-Use := 3 &reply:Tunnel-Type:-128 := VLAN &reply:Tunnel-Medium-Type:-128 := IEEE-802 &reply:Tunnel-Private-Group-Id:-128 := '2176'
(0) cache: ERROR: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN
rlm_cache (cache): Released connection (1)
(0) [cache] = fail
(0) } # Post-Auth-Type REJECT = fail
(0) Rejected in post-auth: [XXX] (from client XXX-sg port 0 cli 84-85-06-96-E4-96)
(0) Login incorrect (cache: Failed parsing pair: &reply:Tunnel-Type:-128 := VLAN): [XXX] (from client essensys-sg port 0 cli 84-85-06-96-E4-96)
(0) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.6 seconds.
(0) Sending delayed response
(0) Sent Access-Reject Id 0 from 172.22.0.4:1812 to 192.168.232.130:39449 length 20
Waking up in 3.9 seconds.
(0) Cleaning up request packet ID 0 with timestamp +4
Scott Johnston
Dev Ops Engineer
T: +44 (0) 203 102 5251
The content of this email is confidential. If you are not the addressee, you may not distribute, copy or disclose any part of it. If you receive this message in error, please delete this from your system and notify the sender immediately by reply.
essensys plc is a registered, public company in England and Wales. Registered Office: Aldgate Tower,
Leman Street, London, E1 8FA
essensys Inc is a Delaware company. Registered Office: 450 7th Avenue, New York, NY 10123
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more visit the Mimecast website.
1
0
Good Day,
I'm trying to connect my FreeRadius server to my Kerberos Server.
As per the documentation, I've followed what was directed here:
Also created a soft link for the krb module from raddb/mods-available
to raddb/mods-enabled. However, the FreeRadius Server doesn't seem to
be contacting the Kerberos server. Is there anything else I need to
setup?
Here's the `radiusd -X` logs:
FreeRADIUS Version 3.0.17
Copyright (C) 1999-2017 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/share/freeradius/dictionary
including dictionary file /usr/share/freeradius/dictionary.dhcp
including dictionary file /usr/share/freeradius/dictionary.vqp
including dictionary file /etc/raddb/dictionary
including configuration file /etc/raddb/radiusd.conf
including configuration file /etc/raddb/proxy.conf
including configuration file /etc/raddb/clients.conf
including files in directory /etc/raddb/mods-enabled/
including configuration file /etc/raddb/mods-enabled/always
including configuration file /etc/raddb/mods-enabled/attr_filter
including configuration file /etc/raddb/mods-enabled/cache_eap
including configuration file /etc/raddb/mods-enabled/chap
including configuration file /etc/raddb/mods-enabled/date
including configuration file /etc/raddb/mods-enabled/detail
including configuration file /etc/raddb/mods-enabled/detail.log
including configuration file /etc/raddb/mods-enabled/digest
including configuration file /etc/raddb/mods-enabled/dynamic_clients
including configuration file /etc/raddb/mods-enabled/eap
including configuration file /etc/raddb/mods-enabled/echo
including configuration file /etc/raddb/mods-enabled/exec
including configuration file /etc/raddb/mods-enabled/expiration
including configuration file /etc/raddb/mods-enabled/expr
including configuration file /etc/raddb/mods-enabled/files
including configuration file /etc/raddb/mods-enabled/linelog
including configuration file /etc/raddb/mods-enabled/logintime
including configuration file /etc/raddb/mods-enabled/mschap
including configuration file /etc/raddb/mods-enabled/ntlm_auth
including configuration file /etc/raddb/mods-enabled/pap
including configuration file /etc/raddb/mods-enabled/passwd
including configuration file /etc/raddb/mods-enabled/preprocess
including configuration file /etc/raddb/mods-enabled/radutmp
including configuration file /etc/raddb/mods-enabled/realm
including configuration file /etc/raddb/mods-enabled/replicate
including configuration file /etc/raddb/mods-enabled/soh
including configuration file /etc/raddb/mods-enabled/sradutmp
including configuration file /etc/raddb/mods-enabled/unix
including configuration file /etc/raddb/mods-enabled/unpack
including configuration file /etc/raddb/mods-enabled/utf8
including configuration file /etc/raddb/mods-enabled/krb5
including files in directory /etc/raddb/policy.d/
including configuration file /etc/raddb/policy.d/accounting
including configuration file /etc/raddb/policy.d/canonicalization
including configuration file /etc/raddb/policy.d/control
including configuration file /etc/raddb/policy.d/cui
including configuration file /etc/raddb/policy.d/debug
including configuration file /etc/raddb/policy.d/dhcp
including configuration file /etc/raddb/policy.d/eap
including configuration file /etc/raddb/policy.d/filter
including configuration file /etc/raddb/policy.d/operator-name
including files in directory /etc/raddb/sites-enabled/
including configuration file /etc/raddb/sites-enabled/default
including configuration file /etc/raddb/sites-enabled/inner-tunnel
main {
security {
user = "radiusd"
group = "radiusd"
allow_core_dumps = no
}
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
}
main {
name = "radiusd"
prefix = "/usr"
localstatedir = "/var"
sbindir = "/usr/sbin"
logdir = "/var/log/radius"
run_dir = "/var/run/radiusd"
libdir = "/usr/lib64/freeradius"
radacctdir = "/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 16384
pidfile = "/var/run/radiusd/radiusd.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
home_server localhost {
ipaddr = 127.0.0.1
port = 1812
type = "auth"
secret = <<< secret >>>
response_window = 20.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "status-server"
ping_interval = 30
check_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 120
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = <<< secret >>>
nas_type = "other"
proto = "*"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client localhost_ipv6 {
ipv6addr = ::1
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client 10.129.1.1 {
require_message_authenticator = no
secret = <<< secret >>>
shortname = "Mikrotik-Device"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
No 'ipaddr' or 'ipv4addr' or 'ipv6addr' field found in client
10.129.1.1. Please fix your configuration
Support for old-style clients will be removed in a future release
Debugger not attached
# Creating Auth-Type = mschap
# Creating Auth-Type = digest
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_always
# Loading module "reject" from file /etc/raddb/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /etc/raddb/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /etc/raddb/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /etc/raddb/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /etc/raddb/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /etc/raddb/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /etc/raddb/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /etc/raddb/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /etc/raddb/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file
/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/etc/raddb/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file
/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/etc/raddb/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file
/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/etc/raddb/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file
/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/etc/raddb/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file
/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/etc/raddb/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_cache
# Loading module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_chap
# Loading module "chap" from file /etc/raddb/mods-enabled/chap
# Loaded module rlm_date
# Loading module "date" from file /etc/raddb/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loaded module rlm_detail
# Loading module "detail" from file /etc/raddb/mods-enabled/detail
detail {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "auth_log" from file /etc/raddb/mods-enabled/detail.log
detail auth_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /etc/raddb/mods-enabled/detail.log
detail reply_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /etc/raddb/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log
detail post_proxy_log {
filename = "/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_digest
# Loading module "digest" from file /etc/raddb/mods-enabled/digest
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file
/etc/raddb/mods-enabled/dynamic_clients
# Loaded module rlm_eap
# Loading module "eap" from file /etc/raddb/mods-enabled/eap
eap {
default_eap_type = "md5"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 16384
}
# Loaded module rlm_exec
# Loading module "echo" from file /etc/raddb/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loading module "exec" from file /etc/raddb/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_expiration
# Loading module "expiration" from file /etc/raddb/mods-enabled/expiration
# Loaded module rlm_expr
# Loading module "expr" from file /etc/raddb/mods-enabled/expr
expr {
safe_characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:
/äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loaded module rlm_files
# Loading module "files" from file /etc/raddb/mods-enabled/files
files {
filename = "/etc/raddb/mods-config/files/authorize"
acctusersfile = "/etc/raddb/mods-config/files/accounting"
preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy"
}
# Loaded module rlm_linelog
# Loading module "linelog" from file /etc/raddb/mods-enabled/linelog
linelog {
filename = "/var/log/radius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /etc/raddb/mods-enabled/linelog
linelog log_accounting {
filename = "/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_logintime
# Loading module "logintime" from file /etc/raddb/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /etc/raddb/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loading module "ntlm_auth" from file /etc/raddb/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN
--username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_pap
# Loading module "pap" from file /etc/raddb/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /etc/raddb/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /etc/raddb/mods-enabled/preprocess
preprocess {
huntgroups = "/etc/raddb/mods-config/preprocess/huntgroups"
hints = "/etc/raddb/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_radutmp
# Loading module "radutmp" from file /etc/raddb/mods-enabled/radutmp
radutmp {
filename = "/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_realm
# Loading module "IPASS" from file /etc/raddb/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /etc/raddb/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /etc/raddb/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /etc/raddb/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_replicate
# Loading module "replicate" from file /etc/raddb/mods-enabled/replicate
# Loaded module rlm_soh
# Loading module "soh" from file /etc/raddb/mods-enabled/soh
soh {
dhcp = yes
}
# Loading module "sradutmp" from file /etc/raddb/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_unix
# Loading module "unix" from file /etc/raddb/mods-enabled/unix
unix {
radwtmp = "/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_unpack
# Loading module "unpack" from file /etc/raddb/mods-enabled/unpack
# Loaded module rlm_utf8
# Loading module "utf8" from file /etc/raddb/mods-enabled/utf8
# Loaded module rlm_krb5
# Loading module "krb5" from file /etc/raddb/mods-enabled/krb5
krb5 {
keytab = "/etc/krb5.keytab"
service_principal = "host/dev-freeradius.rise.net.ph"
}
instantiate {
}
# Instantiating module "reject" from file /etc/raddb/mods-enabled/always
# Instantiating module "fail" from file /etc/raddb/mods-enabled/always
# Instantiating module "ok" from file /etc/raddb/mods-enabled/always
# Instantiating module "handled" from file /etc/raddb/mods-enabled/always
# Instantiating module "invalid" from file /etc/raddb/mods-enabled/always
# Instantiating module "userlock" from file /etc/raddb/mods-enabled/always
# Instantiating module "notfound" from file /etc/raddb/mods-enabled/always
# Instantiating module "noop" from file /etc/raddb/mods-enabled/always
# Instantiating module "updated" from file /etc/raddb/mods-enabled/always
# Instantiating module "attr_filter.post-proxy" from file
/etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file
/etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file
/etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/access_reject
[/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item
"FreeRADIUS-Response-Delay" found in filter list for realm "DEFAULT".
[/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item
"FreeRADIUS-Response-Delay-USec" found in filter list for realm
"DEFAULT".
# Instantiating module "attr_filter.access_challenge" from file
/etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file
/etc/raddb/mods-enabled/attr_filter
reading pairlist file /etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "cache_eap" from file /etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module
rlm_cache_rbtree) loaded and linked
# Instantiating module "detail" from file /etc/raddb/mods-enabled/detail
# Instantiating module "auth_log" from file /etc/raddb/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in
detail output
# Instantiating module "reply_log" from file
/etc/raddb/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file
/etc/raddb/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file
/etc/raddb/mods-enabled/detail.log
# Instantiating module "eap" from file /etc/raddb/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
# Linked to sub-module rlm_eap_leap
# Linked to sub-module rlm_eap_gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/etc/raddb/certs/server.pem"
certificate_file = "/etc/raddb/certs/server.pem"
ca_file = "/etc/raddb/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/etc/raddb/certs/dh"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
cipher_list = "PROFILE=SYSTEM"
cipher_server_preference = no
ecdh_curve = "prime256v1"
tls_max_version = ""
tls_min_version = "1.0"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "md5"
copy_request_to_tunnel = no
use_tunneled_reply = no
virtual_server = "inner-tunnel"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = no
use_tunneled_reply = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "expiration" from file
/etc/raddb/mods-enabled/expiration
# Instantiating module "files" from file /etc/raddb/mods-enabled/files
reading pairlist file /etc/raddb/mods-config/files/authorize
reading pairlist file /etc/raddb/mods-config/files/accounting
reading pairlist file /etc/raddb/mods-config/files/pre-proxy
# Instantiating module "linelog" from file /etc/raddb/mods-enabled/linelog
# Instantiating module "log_accounting" from file
/etc/raddb/mods-enabled/linelog
# Instantiating module "logintime" from file /etc/raddb/mods-enabled/logintime
# Instantiating module "mschap" from file /etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "pap" from file /etc/raddb/mods-enabled/pap
# Instantiating module "etc_passwd" from file /etc/raddb/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "preprocess" from file
/etc/raddb/mods-enabled/preprocess
reading pairlist file /etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /etc/raddb/mods-config/preprocess/hints
# Instantiating module "IPASS" from file /etc/raddb/mods-enabled/realm
# Instantiating module "suffix" from file /etc/raddb/mods-enabled/realm
# Instantiating module "realmpercent" from file /etc/raddb/mods-enabled/realm
# Instantiating module "ntdomain" from file /etc/raddb/mods-enabled/realm
# Instantiating module "krb5" from file /etc/raddb/mods-enabled/krb5
Using MIT Kerberos library
rlm_krb5 (krb5): Using service principal "host/chef.rise.net.ph(a)RISE.NET.PH"
rlm_krb5 (krb5): Using keytab "FILE:/etc/krb5.keytab"
rlm_krb5 (krb5): Initialising connection pool
pool {
start = 5
min = 3
max = 32
spare = 10
uses = 0
lifetime = 0
cleanup_interval = 30
idle_timeout = 0
retry_delay = 1
spread = no
}
rlm_krb5 (krb5): Opening additional connection (0), 1 of 32 pending slots used
rlm_krb5 (krb5): Opening additional connection (1), 1 of 31 pending slots used
rlm_krb5 (krb5): Opening additional connection (2), 1 of 30 pending slots used
rlm_krb5 (krb5): Opening additional connection (3), 1 of 29 pending slots used
rlm_krb5 (krb5): Opening additional connection (4), 1 of 28 pending slots used
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/raddb/radiusd.conf
} # server
server default { # from file /etc/raddb/sites-enabled/default
# Loading authenticate {...}
# Loading authorize {...}
Ignoring "sql" (see raddb/mods-available/README.rst)
Ignoring "ldap" (see raddb/mods-available/README.rst)
# Loading preacct {...}
# Loading accounting {...}
# Loading post-proxy {...}
# Loading post-auth {...}
} # server default
server inner-tunnel { # from file /etc/raddb/sites-enabled/inner-tunnel
# Loading authenticate {...}
# Loading authorize {...}
# Loading session {...}
# Loading post-proxy {...}
# Loading post-auth {...}
# Skipping contents of 'if' as it is always 'false' --
/etc/raddb/sites-enabled/inner-tunnel:331
} # server inner-tunnel
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "auth"
ipv6addr = ::
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipv6addr = ::
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address :: port 1812 bound to server default
Listening on acct address :: port 1813 bound to server default
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on proxy address * port 47606
Listening on proxy address :: port 53526
Ready to process requests
(0) Received Access-Request Id 77 from 10.129.1.1:55055 to
10.129.2.19:1812 length 145
(0) Service-Type = Login-User
(0) User-Name = "bob"
(0) MS-CHAP-Challenge = 0x2fac175f8a7b17749c39b9d64e19f21d
(0) MS-CHAP2-Response =
0x00002d2bf61426d63eb3c2e752936784be960000000000000000a55bc6e5c0583ea6f2b5f5672c38e0e6c1c8103487b6ac51
(0) Calling-Station-Id = "10.129.23.46"
(0) NAS-Identifier = "czt1-sme2"
(0) NAS-IP-Address = 10.129.1.1
(0) # Executing section authorize from file /etc/raddb/sites-enabled/default
(0) authorize {
(0) policy filter_username {
(0) if (&User-Name) {
(0) if (&User-Name) -> TRUE
(0) if (&User-Name) {
(0) if (&User-Name =~ / /) {
(0) if (&User-Name =~ / /) -> FALSE
(0) if (&User-Name =~ /@[^@]*@/ ) {
(0) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(0) if (&User-Name =~ /\.\./ ) {
(0) if (&User-Name =~ /\.\./ ) -> FALSE
(0) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(0) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/))
-> FALSE
(0) if (&User-Name =~ /\.$/) {
(0) if (&User-Name =~ /\.$/) -> FALSE
(0) if (&User-Name =~ /(a)\./) {
(0) if (&User-Name =~ /(a)\./) -> FALSE
(0) } # if (&User-Name) = notfound
(0) } # policy filter_username = notfound
(0) [preprocess] = ok
(0) [chap] = noop
(0) mschap: Found MS-CHAP attributes. Setting 'Auth-Type = mschap'
(0) [mschap] = ok
(0) [digest] = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: No '@' in User-Name = "bob", looking up realm NULL
(0) suffix: No such realm "NULL"
(0) [suffix] = noop
(0) eap: No EAP-Message, not doing EAP
(0) [eap] = noop
(0) [files] = noop
(0) [expiration] = noop
(0) [logintime] = noop
(0) pap: WARNING: No "known good" password found for the user. Not
setting Auth-Type
(0) pap: WARNING: Authentication will fail unless a "known good"
password is available
(0) [pap] = noop
(0) } # authorize = ok
(0) Found Auth-Type = mschap
(0) # Executing group from file /etc/raddb/sites-enabled/default
(0) authenticate {
(0) mschap: WARNING: No Cleartext-Password configured. Cannot create
NT-Password
(0) mschap: WARNING: No Cleartext-Password configured. Cannot create
LM-Password
(0) mschap: Creating challenge hash with username: bob
(0) mschap: Client is using MS-CHAPv2
(0) mschap: ERROR: FAILED: No NT/LM-Password. Cannot perform authentication
(0) mschap: ERROR: MS-CHAP2-Response is incorrect
(0) [mschap] = reject
(0) } # authenticate = reject
(0) Failed to authenticate the user
(0) Using Post-Auth-Type Reject
(0) # Executing group from file /etc/raddb/sites-enabled/default
(0) Post-Auth-Type REJECT {
(0) attr_filter.access_reject: EXPAND %{User-Name}
(0) attr_filter.access_reject: --> bob
(0) attr_filter.access_reject: Matched entry DEFAULT at line 11
(0) [attr_filter.access_reject] = updated
(0) [eap] = noop
(0) policy remove_reply_message_if_eap {
(0) if (&reply:EAP-Message && &reply:Reply-Message) {
(0) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
(0) else {
(0) [noop] = noop
(0) } # else = noop
(0) } # policy remove_reply_message_if_eap = noop
(0) } # Post-Auth-Type REJECT = updated
(0) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.6 seconds.
(0) (0) Discarding duplicate request from client Mikrotik-Device port
55055 - ID: 77 due to delayed response
(0) Sending delayed response
(0) Sent Access-Reject Id 77 from 10.129.2.19:1812 to 10.129.1.1:55055
length 103
(0) MS-CHAP-Error = "\000E=691 R=1
C=649a1b461de710ee01e2845cc19ce0a4 V=3 M=Authentication rejected"
Waking up in 3.9 seconds.
(1) Received Access-Request Id 78 from 10.129.1.1:48537 to
10.129.2.19:1812 length 145
(1) Service-Type = Login-User
(1) User-Name = "bob"
(1) MS-CHAP-Challenge = 0x30d5f5bb510d2fed46e8c49401b6b22e
(1) MS-CHAP2-Response =
0x0000e1a843087f81bb41680dd4cf919366c10000000000000000c98351e85ce36a5255f40facf770363e940c37ebfa2f8235
(1) Calling-Station-Id = "10.129.23.46"
(1) NAS-Identifier = "czt1-sme2"
(1) NAS-IP-Address = 10.129.1.1
(1) # Executing section authorize from file /etc/raddb/sites-enabled/default
(1) authorize {
(1) policy filter_username {
(1) if (&User-Name) {
(1) if (&User-Name) -> TRUE
(1) if (&User-Name) {
(1) if (&User-Name =~ / /) {
(1) if (&User-Name =~ / /) -> FALSE
(1) if (&User-Name =~ /@[^@]*@/ ) {
(1) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(1) if (&User-Name =~ /\.\./ ) {
(1) if (&User-Name =~ /\.\./ ) -> FALSE
(1) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(1) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/))
-> FALSE
(1) if (&User-Name =~ /\.$/) {
(1) if (&User-Name =~ /\.$/) -> FALSE
(1) if (&User-Name =~ /(a)\./) {
(1) if (&User-Name =~ /(a)\./) -> FALSE
(1) } # if (&User-Name) = notfound
(1) } # policy filter_username = notfound
(1) [preprocess] = ok
(1) [chap] = noop
(1) mschap: Found MS-CHAP attributes. Setting 'Auth-Type = mschap'
(1) [mschap] = ok
(1) [digest] = noop
(1) suffix: Checking for suffix after "@"
(1) suffix: No '@' in User-Name = "bob", looking up realm NULL
(1) suffix: No such realm "NULL"
(1) [suffix] = noop
(1) eap: No EAP-Message, not doing EAP
(1) [eap] = noop
(1) [files] = noop
(1) [expiration] = noop
(1) [logintime] = noop
(1) pap: WARNING: No "known good" password found for the user. Not
setting Auth-Type
(1) pap: WARNING: Authentication will fail unless a "known good"
password is available
(1) [pap] = noop
(1) } # authorize = ok
(1) Found Auth-Type = mschap
(1) # Executing group from file /etc/raddb/sites-enabled/default
(1) authenticate {
(1) mschap: WARNING: No Cleartext-Password configured. Cannot create
NT-Password
(1) mschap: WARNING: No Cleartext-Password configured. Cannot create
LM-Password
(1) mschap: Creating challenge hash with username: bob
(1) mschap: Client is using MS-CHAPv2
(1) mschap: ERROR: FAILED: No NT/LM-Password. Cannot perform authentication
(1) mschap: ERROR: MS-CHAP2-Response is incorrect
(1) [mschap] = reject
(1) } # authenticate = reject
(1) Failed to authenticate the user
(1) Using Post-Auth-Type Reject
(1) # Executing group from file /etc/raddb/sites-enabled/default
(1) Post-Auth-Type REJECT {
(1) attr_filter.access_reject: EXPAND %{User-Name}
(1) attr_filter.access_reject: --> bob
(1) attr_filter.access_reject: Matched entry DEFAULT at line 11
(1) [attr_filter.access_reject] = updated
(1) [eap] = noop
(1) policy remove_reply_message_if_eap {
(1) if (&reply:EAP-Message && &reply:Reply-Message) {
(1) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
(1) else {
(1) [noop] = noop
(1) } # else = noop
(1) } # policy remove_reply_message_if_eap = noop
(1) } # Post-Auth-Type REJECT = updated
(1) Delaying response for 1.000000 seconds
Waking up in 0.3 seconds.
Waking up in 0.3 seconds.
(0) Cleaning up request packet ID 77 with timestamp +3
Waking up in 0.3 seconds.
(1) (1) Discarding duplicate request from client Mikrotik-Device port
48537 - ID: 78 due to delayed response
(1) Sending delayed response
(1) Sent Access-Reject Id 78 from 10.129.2.19:1812 to 10.129.1.1:48537
length 103
(1) MS-CHAP-Error = "\000E=691 R=1
C=a8996a9a02e1d2b461361ffc481f1f6a V=3 M=Authentication rejected"
Waking up in 3.9 seconds.
2
8
Hi,
I'm having issues when dealing with an Oracle database.
When running with -Xxx (timestamps are important here) I see the following:
Thu Jul 2 09:31:25 2020 : Debug: (55) if (Stripped-User-Domain ==
'<REDACTED>') -> TRUE
Thu Jul 2 09:31:25 2020 : Debug: (55) if (Stripped-User-Domain ==
'<REDACTED>') {
Thu Jul 2 09:31:25 2020 : Debug: (55) update control {
Thu Jul 2 09:31:25 2020 : Debug: (55) &Tmp-Integer-0 := 2
Thu Jul 2 09:31:25 2020 : Debug: (55) } # update control = noop
Thu Jul 2 09:31:25 2020 : Debug: (55) } # if (Stripped-User-Domain ==
'<REDACTED>') = noop
Thu Jul 2 09:31:25 2020 : Debug: (55) ... skipping elsif: Preceding
"if" was taken
Thu Jul 2 09:31:25 2020 : Debug: (55) ... skipping else: Preceding
"if" was taken
Thu Jul 2 09:31:25 2020 : Debug: (55) update control {
Thu Jul 2 09:31:25 2020 : Info: rlm_sql (sql_oracle_<REDACTED>): Closing
connection (25): Hit idle_timeout, was idle for 66328 seconds
Thu Jul 2 09:47:09 2020 : Debug: rlm_sql (sql_oracle_<REDACTED>): 0 of 0
connections in use. You may need to increase "spare"
Thu Jul 2 09:47:09 2020 : Info: rlm_sql (sql_oracle_<REDACTED>): Opening
additional connection (26), 1 of 16 pending slots used
Thu Jul 2 09:47:09 2020 : Debug: rlm_sql (sql_oracle_<REDACTED>): Reserved
connection (26)
Thu Jul 2 09:47:09 2020 : Debug: rlm_sql (sql_oracle_<REDACTED>): Released
connection (26)
Thu Jul 2 09:47:09 2020 : Debug: rlm_sql (sql_oracle_<REDACTED>): Reserved
connection (26)
Thu Jul 2 09:47:09 2020 : Debug: rlm_sql (sql_oracle_<REDACTED>): Released
connection (26)
Thu Jul 2 09:47:09 2020 : Debug: rlm_sql (sql_oracle_<REDACTED>): Reserved
connection (26)
Thu Jul 2 09:47:09 2020 : Debug: (55) Executing select query: SELECT
<REDACTED> FROM DUAL
Thu Jul 2 09:47:09 2020 : Debug: rlm_sql (sql_oracle_<REDACTED>): Released
connection (26)
It follows printing (with the same timestamp) all queued requests
processing (which are by then useless), and finally:
Thu Jul 2 09:47:14 2020 : Debug: (55) Cleaning up request packet ID 151
with timestamp +172989
Thu Jul 2 09:47:15 2020 : Debug: (57) Cleaning up request packet ID 152
with timestamp +173933
Thu Jul 2 09:47:15 2020 : Debug: (59) Cleaning up request packet ID 153
with timestamp +173934
Thu Jul 2 09:47:15 2020 : Debug: (60) Cleaning up request packet ID 154
with timestamp +173934
Thu Jul 2 09:47:15 2020 : Debug: (62) Cleaning up request packet ID 155
with timestamp +173934
Thu Jul 2 09:47:15 2020 : Debug: (64) Cleaning up request packet ID 156
with timestamp +173934
Thu Jul 2 09:47:15 2020 : Debug: (65) Cleaning up request packet ID 157
with timestamp +173934
Thu Jul 2 09:47:15 2020 : Debug: Waking up in 0.3 seconds.
Thu Jul 2 09:47:15 2020 : Debug: (82) Cleaning up request packet ID 96
with timestamp +173934
Thu Jul 2 09:47:15 2020 : Debug: Waking up in 4.8 seconds.
Thu Jul 2 09:47:20 2020 : Debug: (67) Cleaning up request packet ID 158
with timestamp +173934
Thu Jul 2 09:47:20 2020 : Debug: Waking up in 9.6 seconds.
Thu Jul 2 09:47:30 2020 : Debug: (56) Cleaning up request packet ID 75
with timestamp +173933
Thu Jul 2 09:47:30 2020 : Debug: (58) Cleaning up request packet ID 76
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (61) Cleaning up request packet ID 77
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (63) Cleaning up request packet ID 78
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (66) Cleaning up request packet ID 79
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: Waking up in 0.1 seconds.
Thu Jul 2 09:47:30 2020 : Debug: (68) Cleaning up request packet ID 80
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (69) Cleaning up request packet ID 81
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (70) Cleaning up request packet ID 82
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (71) Cleaning up request packet ID 83
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (72) Cleaning up request packet ID 84
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (73) Cleaning up request packet ID 85
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (74) Cleaning up request packet ID 86
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (75) Cleaning up request packet ID 87
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (76) Cleaning up request packet ID 88
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (77) Cleaning up request packet ID 89
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (78) Cleaning up request packet ID 90
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (79) Cleaning up request packet ID 91
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (80) Cleaning up request packet ID 92
with timestamp +173934
Thu Jul 2 09:47:30 2020 : Debug: (81) Cleaning up request packet ID 93
with timestamp +173934
That ~16 minutes delay seems to be consistent during these episodes:
Sun Jun 28 21:38:55 2020 : Debug: rlm_sql (sql_oracle_<REDACTED>): Closing
expired connection (145): Hit max_uses limit
Sun Jun 28 21:54:39 2020 : Debug: rlm_sql (sql_oracle_<REDACTED>): 0 of 0
connections in use. You may need to increase "spare"
Is it normal to block while closing a SQL connection? Is FreeRADIUS waiting
for something all that time?
Kind regards,
Alberto
2
1
02 Jul '20
Hi,
We encountered a radiusd crash, when it received unknown option-145 in the Request packet(which is not defined in dictionary). Expected behavior is to ignore any unknown options and continue processing the packet.
Also please ensure(from code) radiusd is not crashing if the some known options are malformed in an incoming packet. Expected behavior is to ignore the packet and continue running.
Debug output: (seems crash is related to perl module)
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Opcode = Client-Message
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Hardware-Type = Ethernet
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Hardware-Address-Length = 6
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Hop-Count = 0
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Transaction-Id = 376356509
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Number-of-Seconds = 65535
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Flags = 0
...
...
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Hostname = "HP26D9AC"
(1470) Tue Jun 30 06:21:11 2020 : Debug : Attr-145 = 0x01
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-V-I-Vendor-Class = 0x0000000b024850
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Parameter-Request-List = DHCP-Subnet-Mask
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Parameter-Request-List = DHCP-Classless-Static-Route
(1470) Tue Jun 30 06:21:11 2020 : Debug : DHCP-Parameter-Request-List = DHCP-Static-Routes
...
...
...
(1470) Tue Jun 30 06:21:11 2020 : Debug : perl - &request:DHCP-Parameter-Request-List += $RAD_REQUEST{'DHCP-Parameter-Requ
est-List'} -> 'DHCP-Domain-Search'
(1470) Tue Jun 30 06:21:11 2020 : Debug : perl - &request:DHCP-Parameter-Request-List += $RAD_REQUEST{'DHCP-Parameter-Requ
est-List'} -> 'DHCP-Site-specific-28'
(1470) Tue Jun 30 06:21:11 2020 : Debug : perl - &request:DHCP-DHCP-Maximum-Msg-Size = $RAD_REQUEST{'DHCP-DHCP-Maximum-Msg
-Size'} -> '1500'
(1470) Tue Jun 30 06:21:11 2020 : Debug : perl - &request:DHCP-Server-IP-Address = $RAD_REQUEST{'DHCP-Server-IP-Address'}
-> '0.0.0.0'
(1470) Tue Jun 30 06:21:11 2020 : Debug : perl - &request:DHCP-V-I-Vendor-Class = $RAD_REQUEST{'DHCP-V-I-Vendor-Class'} -> ''
CONSISTENCY CHECK FAILED src/lib/util/pair.c[883]: VALUE_PAIR (raw/unknown) attribute 0x314a3a0 "Attr-145" data type incorrect. Expected octets, got <INVALID>
ASSERT FAILED src/lib/util/pair.c[3050]: 0
CAUGHT SIGNAL: Aborted
Backtrace of last 18 frames:
/usr/lib64/freeradius/libfreeradius-util.so(fr_fault+0x1ae)[0x7f0aed10562e]
/usr/lib64/freeradius/libfreeradius-util.so(+0x148f9)[0x7f0aed1058f9]
/usr/lib64/freeradius/libfreeradius-util.so(fr_pair_verify+0x72d)[0x7f0aed11d60d]
/usr/lib64/freeradius/libfreeradius-util.so(fr_pair_add+0x27)[0x7f0aed11daf7]
/usr/lib64/freeradius/libfreeradius-util.so(fr_pair_make+0x148)[0x7f0aed11ea18]
/usr/lib64/freeradius/rlm_perl.so(+0x3169)[0x7f0ae3cb8169]
/usr/lib64/freeradius/rlm_perl.so(+0x33ec)[0x7f0ae3cb83ec]
/usr/lib64/freeradius/rlm_perl.so(+0x56f4)[0x7f0ae3cba6f4]
/usr/lib64/freeradius/libfreeradius-unlang.so(+0x118bc)[0x7f0aed58f8bc]
/usr/lib64/freeradius/libfreeradius-unlang.so(unlang_interpret+0x378)[0x7f0aed58c508]
/usr/lib64/freeradius/proto_dhcpv4_process.so(+0x156d)[0x7f0ae700e56d]
/usr/lib64/freeradius/libfreeradius-io.so(+0x14a83)[0x7f0aed36da83]
/usr/lib64/freeradius/libfreeradius-util.so(fr_event_service+0x23b)[0x7f0aed112bdb]
/usr/lib64/freeradius/libfreeradius-util.so(fr_event_loop+0x20)[0x7f0aed112fa0]
/usr/lib64/freeradius/libfreeradius-server.so(main_loop_start+0x4e)[0x7f0aed7e466e]
/usr/sbin/radiusd(main+0xe14)[0x404b64]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f0aeb123555]
/usr/sbin/radiusd[0x405021]
No panic action set
After we added 145 in the dictionary, it started processing the request packet successfully.
Regards,
Nagamani Chinnapaiyan
2
6
Hello,
I get stuck a little to find the solution in unlang; =) I admit that I
don't master at all.
I have this condition which works under Freeradius 2.x:
if ((Tunnel-Server-Endpoint: 0 [0]! = '192.168.1.1') && (User-Name = ~
/\\.local/) && (User-Name! ~ /network\\.local/) && ("%
{Packet-Src-IP-Address}" == "172.16.100.100")) {
I can't find the equivalent in Freeradius 3.0.17
I tried in particular
if ((& Tunnel-Server-Endpoint! = '192.168.1.1') && (User-Name = ~
/\\.local/) && (User-Name! ~ /network\\.local/) && ("% {
Packet-Src-IP-Address} "==" 172.16.100.100 ")) {
but that blocks, it is always at the level of the first condition that
there is the problem.
What I would like is:
Yes
Tunnel-Server-Endpoint * (0 1 or other) is not equal to 192.168.1.1
Or
Tunnel-Server-Endpoint * (0 1 or other) is not equal to 192.168.1.2
so he looks at the other conditions including User-Name and Packet-Src
Otherwise, would I have to do several if ? sample:
if ("%{Packet-Src-IP-Address}" == "172.16.100.100") {
if ((User-Name =~ /\\.local/) && (User-Name !~ /network\\.local/)) {
if (&Tunnel-Server-Endpoint* != '192.168.1.1') {
xxxx
}
}
}
thank you for your help
Olivier
2
3