Freeradius-Users
Threads by month
- ----- 2026 -----
- November
- October
- September
- 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
- 27063 discussions
Hi all, I need to configure my client's FreeRadius to allow connection
to the WiFi network only to specific smartphones.
I can establish EAP-PWD connection but the MAC address list of
authorized devices isn't checked so connection works for every device.
Here the debug log; could someone point me to what is wrong?
(Please note that the use of EAP-PWD is mandatory)
Thanks,
Dario Barbon
FreeRADIUS Version 3.0.16
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/freeradius/3.0/dictionary
including configuration file /etc/freeradius/3.0/radiusd.conf
including configuration file /etc/freeradius/3.0/clients.conf
including files in directory /etc/freeradius/3.0/mods-enabled/
including configuration file /etc/freeradius/3.0/mods-enabled/chap
including configuration file /etc/freeradius/3.0/mods-enabled/logintime
including configuration file /etc/freeradius/3.0/mods-enabled/always
including configuration file /etc/freeradius/3.0/mods-enabled/echo
including configuration file /etc/freeradius/3.0/mods-enabled/linelog
including configuration file
/etc/freeradius/3.0/mods-enabled/dynamic_clients
including configuration file /etc/freeradius/3.0/mods-enabled/utf8
including configuration file /etc/freeradius/3.0/mods-enabled/digest
including configuration file /etc/freeradius/3.0/mods-enabled/unix
including configuration file /etc/freeradius/3.0/mods-enabled/files
including configuration file /etc/freeradius/3.0/mods-enabled/exec
including configuration file /etc/freeradius/3.0/mods-enabled/preprocess
including configuration file /etc/freeradius/3.0/mods-enabled/replicate
including configuration file /etc/freeradius/3.0/mods-enabled/eap
including configuration file /etc/freeradius/3.0/mods-enabled/passwd
including configuration file /etc/freeradius/3.0/mods-enabled/detail.log
including configuration file /etc/freeradius/3.0/mods-enabled/pap
including configuration file /etc/freeradius/3.0/mods-enabled/unpack
including configuration file /etc/freeradius/3.0/mods-enabled/sradutmp
including configuration file /etc/freeradius/3.0/mods-enabled/detail
including configuration file /etc/freeradius/3.0/mods-enabled/ntlm_auth
including configuration file /etc/freeradius/3.0/mods-enabled/mschap
including configuration file /etc/freeradius/3.0/mods-enabled/soh
including configuration file /etc/freeradius/3.0/mods-enabled/expr
including configuration file
/etc/freeradius/3.0/mods-enabled/attr_filter
including configuration file /etc/freeradius/3.0/mods-enabled/expiration
including configuration file /etc/freeradius/3.0/mods-enabled/cache_eap
including configuration file /etc/freeradius/3.0/mods-enabled/radutmp
including configuration file /etc/freeradius/3.0/mods-enabled/realm
including files in directory /etc/freeradius/3.0/policy.d/
including configuration file /etc/freeradius/3.0/policy.d/accounting
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/canonicalization
including configuration file /etc/freeradius/3.0/policy.d/abfab-tr
including configuration file /etc/freeradius/3.0/policy.d/eap
including configuration file /etc/freeradius/3.0/policy.d/debug
including configuration file /etc/freeradius/3.0/policy.d/cui
including configuration file
/etc/freeradius/3.0/policy.d/moonshot-targeted-ids
including configuration file /etc/freeradius/3.0/policy.d/dhcp
including configuration file /etc/freeradius/3.0/policy.d/filter
including files in directory /etc/freeradius/3.0/sites-enabled/
including configuration file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
including configuration file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
main {
security {
user = "operatore"
group = "operatore"
allow_core_dumps = no
}
name = "freeradius"
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/freeradius"
run_dir = "/var/run/freeradius"
}
main {
name = "freeradius"
prefix = "/usr"
localstatedir = "/var"
sbindir = "/usr/sbin"
logdir = "/var/log/freeradius"
run_dir = "/var/run/freeradius"
libdir = "/usr/lib/freeradius"
radacctdir = "/var/log/freeradius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 16384
pidfile = "/var/run/freeradius/freeradius.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = no
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 ####
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 TLC_TAG-MGT {
ipaddr = 172.31.190.2
require_message_authenticator = yes
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debugger not attached
# Creating Auth-Type = eap
# Creating Auth-Type = MS-CHAP
# Creating Auth-Type = mschap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_chap
# Loading module "chap" from file
/etc/freeradius/3.0/mods-enabled/chap
# Loaded module rlm_logintime
# Loading module "logintime" from file
/etc/freeradius/3.0/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_always
# Loading module "reject" from file
/etc/freeradius/3.0/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file
/etc/freeradius/3.0/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file
/etc/freeradius/3.0/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file
/etc/freeradius/3.0/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file
/etc/freeradius/3.0/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file
/etc/freeradius/3.0/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file
/etc/freeradius/3.0/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file
/etc/freeradius/3.0/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file
/etc/freeradius/3.0/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_exec
# Loading module "echo" from file
/etc/freeradius/3.0/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loaded module rlm_linelog
# Loading module "linelog" from file
/etc/freeradius/3.0/mods-enabled/linelog
linelog {
filename = "/var/log/freeradius/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/3.0/mods-enabled/linelog
linelog log_accounting {
filename = "/var/log/freeradius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file
/etc/freeradius/3.0/mods-enabled/dynamic_clients
# Loaded module rlm_utf8
# Loading module "utf8" from file
/etc/freeradius/3.0/mods-enabled/utf8
# Loaded module rlm_digest
# Loading module "digest" from file
/etc/freeradius/3.0/mods-enabled/digest
# Loaded module rlm_unix
# Loading module "unix" from file
/etc/freeradius/3.0/mods-enabled/unix
unix {
radwtmp = "/var/log/freeradius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_files
# Loading module "files" from file
/etc/freeradius/3.0/mods-enabled/files
files {
filename = "/etc/freeradius/3.0/mods-config/files/authorize"
acctusersfile =
"/etc/freeradius/3.0/mods-config/files/accounting"
preproxy_usersfile =
"/etc/freeradius/3.0/mods-config/files/pre-proxy"
}
# Loading module "authorized_macs" from file
/etc/freeradius/3.0/mods-enabled/files
files authorized_macs {
usersfile = "/etc/freeradius/3.0/authorized_macs"
key = "%{Calling-Station-ID}"
}
# Loading module "exec" from file
/etc/freeradius/3.0/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file
/etc/freeradius/3.0/mods-enabled/preprocess
preprocess {
huntgroups =
"/etc/freeradius/3.0/mods-config/preprocess/huntgroups"
hints = "/etc/freeradius/3.0/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
/etc/freeradius/3.0/mods-enabled/replicate
# Loaded module rlm_eap
# Loading module "eap" from file /etc/freeradius/3.0/mods-enabled/eap
eap {
default_eap_type = "tls"
timer_expire = 60
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 4096
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file
/etc/freeradius/3.0/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_detail
# Loading module "auth_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
detail auth_log {
filename =
"/var/log/freeradius/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/3.0/mods-enabled/detail.log
detail reply_log {
filename =
"/var/log/freeradius/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/3.0/mods-enabled/detail.log
detail pre_proxy_log {
filename =
"/var/log/freeradius/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/3.0/mods-enabled/detail.log
detail post_proxy_log {
filename =
"/var/log/freeradius/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_pap
# Loading module "pap" from file /etc/freeradius/3.0/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_unpack
# Loading module "unpack" from file
/etc/freeradius/3.0/mods-enabled/unpack
# Loaded module rlm_radutmp
# Loading module "sradutmp" from file
/etc/freeradius/3.0/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/var/log/freeradius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loading module "detail" from file
/etc/freeradius/3.0/mods-enabled/detail
detail {
filename =
"/var/log/freeradius/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 "ntlm_auth" from file
/etc/freeradius/3.0/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_mschap
# Loading module "mschap" from file
/etc/freeradius/3.0/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = yes
require_strong = yes
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loaded module rlm_soh
# Loading module "soh" from file /etc/freeradius/3.0/mods-enabled/soh
soh {
dhcp = yes
}
# Loaded module rlm_expr
# Loading module "expr" from file
/etc/freeradius/3.0/mods-enabled/expr
expr {
safe_characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:
/äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename =
"/etc/freeradius/3.0/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename =
"/etc/freeradius/3.0/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename =
"/etc/freeradius/3.0/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename =
"/etc/freeradius/3.0/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename =
"/etc/freeradius/3.0/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_expiration
# Loading module "expiration" from file
/etc/freeradius/3.0/mods-enabled/expiration
# Loaded module rlm_cache
# Loading module "cache_eap" from file
/etc/freeradius/3.0/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
}
# Loading module "radutmp" from file
/etc/freeradius/3.0/mods-enabled/radutmp
radutmp {
filename = "/var/log/freeradius/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/3.0/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file
/etc/freeradius/3.0/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file
/etc/freeradius/3.0/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file
/etc/freeradius/3.0/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\\"
ignore_default = no
ignore_null = no
}
instantiate {
}
# Instantiating module "logintime" from file
/etc/freeradius/3.0/mods-enabled/logintime
# Instantiating module "reject" from file
/etc/freeradius/3.0/mods-enabled/always
# Instantiating module "fail" from file
/etc/freeradius/3.0/mods-enabled/always
# Instantiating module "ok" from file
/etc/freeradius/3.0/mods-enabled/always
# Instantiating module "handled" from file
/etc/freeradius/3.0/mods-enabled/always
# Instantiating module "invalid" from file
/etc/freeradius/3.0/mods-enabled/always
# Instantiating module "userlock" from file
/etc/freeradius/3.0/mods-enabled/always
# Instantiating module "notfound" from file
/etc/freeradius/3.0/mods-enabled/always
# Instantiating module "noop" from file
/etc/freeradius/3.0/mods-enabled/always
# Instantiating module "updated" from file
/etc/freeradius/3.0/mods-enabled/always
# Instantiating module "linelog" from file
/etc/freeradius/3.0/mods-enabled/linelog
# Instantiating module "log_accounting" from file
/etc/freeradius/3.0/mods-enabled/linelog
# Instantiating module "files" from file
/etc/freeradius/3.0/mods-enabled/files
reading pairlist file /etc/freeradius/3.0/mods-config/files/authorize
reading pairlist file /etc/freeradius/3.0/mods-config/files/accounting
reading pairlist file /etc/freeradius/3.0/mods-config/files/pre-proxy
# Instantiating module "authorized_macs" from file
/etc/freeradius/3.0/mods-enabled/files
reading pairlist file /etc/freeradius/3.0/authorized_macs
# Instantiating module "preprocess" from file
/etc/freeradius/3.0/mods-enabled/preprocess
reading pairlist file
/etc/freeradius/3.0/mods-config/preprocess/huntgroups
reading pairlist file /etc/freeradius/3.0/mods-config/preprocess/hints
# Instantiating module "eap" from file
/etc/freeradius/3.0/mods-enabled/eap
# Linked to sub-module rlm_eap_tls
tls {
}
TLS section "tls" missing, trying to use legacy configuration
tls {
verify_depth = 0
ca_path = "/etc/freeradius/3.0/certs"
pem_file_type = yes
private_key_file = "/etc/freeradius/3.0/certs/server.key"
certificate_file = "/etc/freeradius/3.0/certs/server.pem"
ca_file = "/etc/freeradius/3.0/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/etc/freeradius/3.0/certs/dh"
random_file = "/dev/urandom"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
cipher_list = "HIGH"
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
tmpdir = "/tmp/radiusd"
client = "/usr/bin/openssl verify -CAfile
/etc/freeradius/3.0/certs/ca.pem %{TLS-Client-Cert-Filename}"
}
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_pwd
pwd {
group = 19
fragment_size = 1020
server_id = "tagworksrv(a)olicom.eu"
virtual_server = "inner-tunnel"
}
# Linked to sub-module rlm_eap_ttls
ttls {
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 section "tls" missing, trying to use legacy configuration
tls: Using cached TLS configuration from previous invocation
# Instantiating module "etc_passwd" from file
/etc/freeradius/3.0/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "auth_log" from file
/etc/freeradius/3.0/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/3.0/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file
/etc/freeradius/3.0/mods-enabled/detail.log
# Instantiating module "pap" from file
/etc/freeradius/3.0/mods-enabled/pap
# Instantiating module "detail" from file
/etc/freeradius/3.0/mods-enabled/detail
# Instantiating module "mschap" from file
/etc/freeradius/3.0/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "attr_filter.post-proxy" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/3.0/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/3.0/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file
/etc/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/3.0/mods-config/attr_filter/access_reject
[/etc/freeradius/3.0/mods-config/attr_filter/access_reject]:11 Check
item "FreeRADIUS-Response-Delay" found in filter list for realm
"DEFAULT".
[/etc/freeradius/3.0/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/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/3.0/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from
file /etc/freeradius/3.0/mods-enabled/attr_filter
reading pairlist file
/etc/freeradius/3.0/mods-config/attr_filter/accounting_response
# Instantiating module "expiration" from file
/etc/freeradius/3.0/mods-enabled/expiration
# Instantiating module "cache_eap" from file
/etc/freeradius/3.0/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module
rlm_cache_rbtree) loaded and linked
# Instantiating module "IPASS" from file
/etc/freeradius/3.0/mods-enabled/realm
# Instantiating module "suffix" from file
/etc/freeradius/3.0/mods-enabled/realm
# Instantiating module "realmpercent" from file
/etc/freeradius/3.0/mods-enabled/realm
# Instantiating module "ntdomain" from file
/etc/freeradius/3.0/mods-enabled/realm
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/freeradius/3.0/sites-enabled/tlcamb-tag
# Loading authenticate {...}
# Loading authorize {...}
# Loading preacct {...}
# Loading accounting {...}
# Loading session {...}
# Loading post-auth {...}
} # server
server inner-tunnel { # from file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
# Loading authenticate {...}
# Loading authorize {...}
Ignoring "sql" (see raddb/mods-available/README.rst)
Ignoring "ldap" (see raddb/mods-available/README.rst)
# Loading session {...}
# Loading post-auth {...}
# Skipping contents of 'if' as it is always 'false' --
/etc/freeradius/3.0/sites-enabled/inner-tunnel:346
} # server inner-tunnel
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 1812
}
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
Listening on auth address * port 1812
Listening on auth address 127.0.0.1 port 18120 bound to server
inner-tunnel
Ready to process requests
(0) Received Access-Request Id 122 from 172.31.190.2:32771 to
172.31.189.84:1812 length 272
(0) User-Name = "sistemi"
(0) Chargeable-User-Identity = 0x00
(0) Location-Capable = Civic-Location
(0) Calling-Station-Id = "7c-6c-f0-49-67-4b"
(0) Called-Station-Id = "04-5f-b9-81-69-80:PIT_Tag"
(0) NAS-Port = 1
(0) Cisco-AVPair = "audit-session-id=ac1fc7020000019e65faad38"
(0) Acct-Session-Id = "65faad38/7c:6c:f0:49:67:4b/428"
(0) NAS-IP-Address = 172.31.190.2
(0) NAS-Identifier = "Cisco_b8:24:65"
(0) Airespace-Wlan-Id = 2
(0) Service-Type = Framed-User
(0) Framed-MTU = 1300
(0) NAS-Port-Type = Wireless-802.11
(0) Tunnel-Type:0 = VLAN
(0) Tunnel-Medium-Type:0 = IEEE-802
(0) Tunnel-Private-Group-Id:0 = "190"
(0) EAP-Message = 0x0201000c0173697374656d69
(0) Message-Authenticator = 0x6fc9d7514fcecd58ea88e1c412a0e42c
(0) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(0) authorize {
(0) [preprocess] = ok
(0) eap: Peer sent EAP Response (code 2) ID 1 length 12
(0) eap: EAP-Identity reply, returning 'ok' so we can short-circuit
the rest of authorize
(0) [eap] = ok
(0) } # authorize = ok
(0) Found Auth-Type = eap
(0) # Executing group from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(0) authenticate {
(0) eap: Peer sent packet with method EAP Identity (1)
(0) eap: Calling submodule eap_tls to process data
(0) eap_tls: Initiating new EAP-TLS session
(0) eap_tls: Setting verify mode to require certificate from client
(0) eap_tls: [eaptls start] = request
(0) eap: Sending EAP Request (code 1) ID 2 length 6
(0) eap: EAP session adding &reply:State = 0xcfd7d9aecfd5d4f1
(0) [eap] = handled
(0) } # authenticate = handled
(0) Using Post-Auth-Type Challenge
(0) Post-Auth-Type sub-section not found. Ignoring.
(0) # Executing group from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(0) Sent Access-Challenge Id 122 from 172.31.189.84:1812 to
172.31.190.2:32771 length 0
(0) EAP-Message = 0x010200060d20
(0) Message-Authenticator = 0x00000000000000000000000000000000
(0) State = 0xcfd7d9aecfd5d4f1bff975c345294431
(0) Finished request
Waking up in 4.9 seconds.
(1) Received Access-Request Id 123 from 172.31.190.2:32771 to
172.31.189.84:1812 length 284
(1) User-Name = "sistemi"
(1) Chargeable-User-Identity = 0x00
(1) Location-Capable = Civic-Location
(1) Calling-Station-Id = "7c-6c-f0-49-67-4b"
(1) Called-Station-Id = "04-5f-b9-81-69-80:PIT_Tag"
(1) NAS-Port = 1
(1) Cisco-AVPair = "audit-session-id=ac1fc7020000019e65faad38"
(1) Acct-Session-Id = "65faad38/7c:6c:f0:49:67:4b/428"
(1) NAS-IP-Address = 172.31.190.2
(1) NAS-Identifier = "Cisco_b8:24:65"
(1) Airespace-Wlan-Id = 2
(1) Service-Type = Framed-User
(1) Framed-MTU = 1300
(1) NAS-Port-Type = Wireless-802.11
(1) Tunnel-Type:0 = VLAN
(1) Tunnel-Medium-Type:0 = IEEE-802
(1) Tunnel-Private-Group-Id:0 = "190"
(1) EAP-Message = 0x020200060334
(1) State = 0xcfd7d9aecfd5d4f1bff975c345294431
(1) Message-Authenticator = 0x96a59c189f3842614fec256710d78881
(1) session-state: No cached attributes
(1) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(1) authorize {
(1) [preprocess] = ok
(1) eap: Peer sent EAP Response (code 2) ID 2 length 6
(1) eap: No EAP Start, assuming it's an on-going EAP conversation
(1) [eap] = updated
(1) [expiration] = noop
(1) [logintime] = noop
(1) } # authorize = updated
(1) Found Auth-Type = eap
(1) # Executing group from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(1) authenticate {
(1) eap: Expiring EAP session with state 0xcfd7d9aecfd5d4f1
(1) eap: Finished EAP session with state 0xcfd7d9aecfd5d4f1
(1) eap: Previous EAP request found for state 0xcfd7d9aecfd5d4f1,
released from the list
(1) eap: Peer sent packet with method EAP NAK (3)
(1) eap: Found mutually acceptable type PWD (52)
(1) eap: Calling submodule eap_pwd to process data
(1) eap: Sending EAP Request (code 1) ID 3 length 35
(1) eap: EAP session adding &reply:State = 0xcfd7d9aeced4edf1
(1) [eap] = handled
(1) } # authenticate = handled
(1) Using Post-Auth-Type Challenge
(1) Post-Auth-Type sub-section not found. Ignoring.
(1) # Executing group from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(1) Sent Access-Challenge Id 123 from 172.31.189.84:1812 to
172.31.190.2:32771 length 0
(1) EAP-Message =
0x01030023340100130101ff9e236f00746167776f726b737276406f6c69636f6d2e6575
(1) Message-Authenticator = 0x00000000000000000000000000000000
(1) State = 0xcfd7d9aeced4edf1bff975c345294431
(1) Finished request
Waking up in 4.9 seconds.
(2) Received Access-Request Id 124 from 172.31.190.2:32771 to
172.31.189.84:1812 length 300
(2) User-Name = "sistemi"
(2) Chargeable-User-Identity = 0x00
(2) Location-Capable = Civic-Location
(2) Calling-Station-Id = "7c-6c-f0-49-67-4b"
(2) Called-Station-Id = "04-5f-b9-81-69-80:PIT_Tag"
(2) NAS-Port = 1
(2) Cisco-AVPair = "audit-session-id=ac1fc7020000019e65faad38"
(2) Acct-Session-Id = "65faad38/7c:6c:f0:49:67:4b/428"
(2) NAS-IP-Address = 172.31.190.2
(2) NAS-Identifier = "Cisco_b8:24:65"
(2) Airespace-Wlan-Id = 2
(2) Service-Type = Framed-User
(2) Framed-MTU = 1300
(2) NAS-Port-Type = Wireless-802.11
(2) Tunnel-Type:0 = VLAN
(2) Tunnel-Medium-Type:0 = IEEE-802
(2) Tunnel-Private-Group-Id:0 = "190"
(2) EAP-Message = 0x02030016340100130101ff9e236f0073697374656d69
(2) State = 0xcfd7d9aeced4edf1bff975c345294431
(2) Message-Authenticator = 0x88ded477576ecf4f4c824c903e1e8b89
(2) session-state: No cached attributes
(2) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(2) authorize {
(2) [preprocess] = ok
(2) eap: Peer sent EAP Response (code 2) ID 3 length 22
(2) eap: No EAP Start, assuming it's an on-going EAP conversation
(2) [eap] = updated
(2) [expiration] = noop
(2) [logintime] = noop
(2) } # authorize = updated
(2) Found Auth-Type = eap
(2) # Executing group from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(2) authenticate {
(2) eap: Expiring EAP session with state 0xcfd7d9aeced4edf1
(2) eap: Finished EAP session with state 0xcfd7d9aeced4edf1
(2) eap: Previous EAP request found for state 0xcfd7d9aeced4edf1,
released from the list
(2) eap: Peer sent packet with method EAP PWD (52)
(2) eap: Calling submodule eap_pwd to process data
(2) eap_pwd: Sending tunneled request
(2) eap_pwd: User-Name = "sistemi"
(2) eap_pwd: server inner-tunnel {
(2) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/inner-tunnel
(2) authorize {
(2) policy filter_username {
(2) if (&User-Name) {
(2) if (&User-Name) -> TRUE
(2) if (&User-Name) {
(2) if (&User-Name =~ / /) {
(2) if (&User-Name =~ / /) -> FALSE
(2) if (&User-Name =~ /@[^@]*@/ ) {
(2) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(2) if (&User-Name =~ /\.\./ ) {
(2) if (&User-Name =~ /\.\./ ) -> FALSE
(2) if ((&User-Name =~ /@/) && (&User-Name !~
/(a)(.+)\.(.+)$/)) {
(2) if ((&User-Name =~ /@/) && (&User-Name !~
/(a)(.+)\.(.+)$/)) -> FALSE
(2) if (&User-Name =~ /\.$/) {
(2) if (&User-Name =~ /\.$/) -> FALSE
(2) if (&User-Name =~ /(a)\./) {
(2) if (&User-Name =~ /(a)\./) -> FALSE
(2) } # if (&User-Name) = notfound
(2) } # policy filter_username = notfound
(2) [chap] = noop
(2) [mschap] = noop
(2) suffix: Checking for suffix after "@"
(2) suffix: No '@' in User-Name = "sistemi", looking up realm NULL
(2) suffix: No such realm "NULL"
(2) [suffix] = noop
(2) update control {
(2) &Proxy-To-Realm := LOCAL
(2) } # update control = noop
(2) eap: No EAP-Message, not doing EAP
(2) [eap] = noop
(2) files: users: Matched entry sistemi at line 87
(2) files: EXPAND Hello, %{User-Name}
(2) files: --> Hello, sistemi
(2) [files] = ok
(2) [expiration] = noop
(2) [logintime] = noop
(2) pap: No User-Password attribute in the request. Cannot do PAP
(2) [pap] = noop
(2) policy rewrite_calling_station_id {
(2) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
{
(2) if (&Calling-Station-Id && (&Calling-Station-Id =~
/^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i))
-> FALSE
(2) else {
(2) [noop] = noop
(2) } # else = noop
(2) } # policy rewrite_calling_station_id = noop
(2) authorized_macs: EXPAND %{Calling-Station-ID}
(2) authorized_macs: -->
(2) [authorized_macs] = noop
(2) if (!ok) {
(2) if (!ok) -> TRUE
(2) if (!ok) {
(2) [reject] = reject
(2) } # if (!ok) = reject
(2) } # authorize = reject
(2) eap_pwd: } # server inner-tunnel
(2) eap_pwd: Got tunneled reply code 0
(2) eap_pwd: Reply-Message = "Hello, sistemi"
(2) eap: Sending EAP Request (code 1) ID 4 length 102
(2) eap: EAP session adding &reply:State = 0xcfd7d9aecdd3edf1
(2) [eap] = handled
(2) } # authenticate = handled
(2) Using Post-Auth-Type Challenge
(2) Post-Auth-Type sub-section not found. Ignoring.
(2) # Executing group from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(2) Sent Access-Challenge Id 124 from 172.31.189.84:1812 to
172.31.190.2:32771 length 0
(2) EAP-Message =
0x01040066340268736a3483f430ba74f2bf4f547d6e15bd538f4600e58f02c15281971c0f5753c1c9e774964cd3167586ff9b9c2f5fd4ec4979dc45f5c90637c66ee529bdb74904d179491ff94fdd83b2ea4e4ef1e58417e9d837c4d957b3c6c4f23fd3fb1a97
(2) Message-Authenticator = 0x00000000000000000000000000000000
(2) State = 0xcfd7d9aecdd3edf1bff975c345294431
(2) Finished request
Waking up in 4.9 seconds.
(3) Received Access-Request Id 125 from 172.31.190.2:32771 to
172.31.189.84:1812 length 380
(3) User-Name = "sistemi"
(3) Chargeable-User-Identity = 0x00
(3) Location-Capable = Civic-Location
(3) Calling-Station-Id = "7c-6c-f0-49-67-4b"
(3) Called-Station-Id = "04-5f-b9-81-69-80:PIT_Tag"
(3) NAS-Port = 1
(3) Cisco-AVPair = "audit-session-id=ac1fc7020000019e65faad38"
(3) Acct-Session-Id = "65faad38/7c:6c:f0:49:67:4b/428"
(3) NAS-IP-Address = 172.31.190.2
(3) NAS-Identifier = "Cisco_b8:24:65"
(3) Airespace-Wlan-Id = 2
(3) Service-Type = Framed-User
(3) Framed-MTU = 1300
(3) NAS-Port-Type = Wireless-802.11
(3) Tunnel-Type:0 = VLAN
(3) Tunnel-Medium-Type:0 = IEEE-802
(3) Tunnel-Private-Group-Id:0 = "190"
(3) EAP-Message =
0x0204006634022188d7feb9ab8290496108b88d4016197a46566b5ed2a3d1eaad72951942c5fcd73d6db0db7f36c3e37bed661217b5e8370aa40f3d5e001fe64b05e8088a45980b9ca30de56b3d9754ab88767166abbd0a2eedd2f2249cae7f43fda160e9d96d
(3) State = 0xcfd7d9aecdd3edf1bff975c345294431
(3) Message-Authenticator = 0xb7b9ded509fb3083d7cebf1b06c18064
(3) session-state: No cached attributes
(3) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(3) authorize {
(3) [preprocess] = ok
(3) eap: Peer sent EAP Response (code 2) ID 4 length 102
(3) eap: No EAP Start, assuming it's an on-going EAP conversation
(3) [eap] = updated
(3) [expiration] = noop
(3) [logintime] = noop
(3) } # authorize = updated
(3) Found Auth-Type = eap
(3) # Executing group from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(3) authenticate {
(3) eap: Expiring EAP session with state 0xcfd7d9aecdd3edf1
(3) eap: Finished EAP session with state 0xcfd7d9aecdd3edf1
(3) eap: Previous EAP request found for state 0xcfd7d9aecdd3edf1,
released from the list
(3) eap: Peer sent packet with method EAP PWD (52)
(3) eap: Calling submodule eap_pwd to process data
(3) eap: Sending EAP Request (code 1) ID 5 length 38
(3) eap: EAP session adding &reply:State = 0xcfd7d9aeccd2edf1
(3) [eap] = handled
(3) } # authenticate = handled
(3) Using Post-Auth-Type Challenge
(3) Post-Auth-Type sub-section not found. Ignoring.
(3) # Executing group from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(3) Sent Access-Challenge Id 125 from 172.31.189.84:1812 to
172.31.190.2:32771 length 0
(3) EAP-Message =
0x010500263403285a5091e92f61fe8231564979f1bc06311f8d612634e3693639f4113c1fa072
(3) Message-Authenticator = 0x00000000000000000000000000000000
(3) State = 0xcfd7d9aeccd2edf1bff975c345294431
(3) Finished request
Waking up in 4.9 seconds.
(4) Received Access-Request Id 126 from 172.31.190.2:32771 to
172.31.189.84:1812 length 316
(4) User-Name = "sistemi"
(4) Chargeable-User-Identity = 0x00
(4) Location-Capable = Civic-Location
(4) Calling-Station-Id = "7c-6c-f0-49-67-4b"
(4) Called-Station-Id = "04-5f-b9-81-69-80:PIT_Tag"
(4) NAS-Port = 1
(4) Cisco-AVPair = "audit-session-id=ac1fc7020000019e65faad38"
(4) Acct-Session-Id = "65faad38/7c:6c:f0:49:67:4b/428"
(4) NAS-IP-Address = 172.31.190.2
(4) NAS-Identifier = "Cisco_b8:24:65"
(4) Airespace-Wlan-Id = 2
(4) Service-Type = Framed-User
(4) Framed-MTU = 1300
(4) NAS-Port-Type = Wireless-802.11
(4) Tunnel-Type:0 = VLAN
(4) Tunnel-Medium-Type:0 = IEEE-802
(4) Tunnel-Private-Group-Id:0 = "190"
(4) EAP-Message =
0x020500263403cac7b037c22d9a51fbcfbc583b42af0aa38b8a8c783f2e4c59e83fe018e01ba4
(4) State = 0xcfd7d9aeccd2edf1bff975c345294431
(4) Message-Authenticator = 0xbeea4abd571f34567595e590ac1dffbb
(4) session-state: No cached attributes
(4) # Executing section authorize from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(4) authorize {
(4) [preprocess] = ok
(4) eap: Peer sent EAP Response (code 2) ID 5 length 38
(4) eap: No EAP Start, assuming it's an on-going EAP conversation
(4) [eap] = updated
(4) [expiration] = noop
(4) [logintime] = noop
(4) } # authorize = updated
(4) Found Auth-Type = eap
(4) # Executing group from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(4) authenticate {
(4) eap: Expiring EAP session with state 0xcfd7d9aeccd2edf1
(4) eap: Finished EAP session with state 0xcfd7d9aeccd2edf1
(4) eap: Previous EAP request found for state 0xcfd7d9aeccd2edf1,
released from the list
(4) eap: Peer sent packet with method EAP PWD (52)
(4) eap: Calling submodule eap_pwd to process data
(4) eap: Sending EAP Success (code 3) ID 5 length 4
(4) eap: Freeing handler
(4) [eap] = ok
(4) } # authenticate = ok
(4) # Executing section post-auth from file
/etc/freeradius/3.0/sites-enabled/tlcamb-tag
(4) Sent Access-Accept Id 126 from 172.31.189.84:1812 to
172.31.190.2:32771 length 0
(4) MS-MPPE-Recv-Key =
0x30388328c55a3aa7e7e75ceba290d4707626816006ef196e3ef87128fc06b896
(4) MS-MPPE-Send-Key =
0x12c21408c1645a553357b43dd88de9cd29268cf1f3fdc6583a028427c22df080
(4) EAP-Message = 0x03050004
(4) Message-Authenticator = 0x00000000000000000000000000000000
(4) User-Name = "sistemi"
(4) Finished request
Waking up in 4.9 seconds.
(0) Cleaning up request packet ID 122 with timestamp +29
(1) Cleaning up request packet ID 123 with timestamp +29
(2) Cleaning up request packet ID 124 with timestamp +29
(3) Cleaning up request packet ID 125 with timestamp +29
(4) Cleaning up request packet ID 126 with timestamp +29
Ready to process requests
2
2
I'm working to setup a FreeRADIUS server to authenticate our users for Wifi
connectivity. I've read a bunch of documentation and followed many
different guides, but things aren't coming together.
On the FR server when I run radtest, I'm seeing the following:
radtest brian.testing(a)digitalturbine.com <redacted> localhost 1812
testing123
Sent Access-Request Id 212 from 0.0.0.0:47042 to 127.0.0.1:1812 length 102
User-Name = "brian.testing(a)digitalturbine.com"
User-Password = "<redacted>"
NAS-IP-Address = 10.255.1.105
NAS-Port = 1812
Message-Authenticator = 0x00
Cleartext-Password = "<redacted>"
Received Access-Reject Id 212 from 127.0.0.1:1812 to 127.0.0.1:47042 length
20
(0) -: Expected Access-Accept got Access-Reject
Obviously something must not be right in my configuration. If I go to the
freeradius -X screen I see the following:
Ready to process requests
(1) Received Access-Request Id 212 from 127.0.0.1:47042 to 127.0.0.1:1812
length 102
(1) User-Name = "brian.testing(a)digitalturbine.com"
(1) User-Password = "<redacted>"
(1) NAS-IP-Address = 10.255.1.105
(1) NAS-Port = 1812
(1) Message-Authenticator = 0x816dbf275b3973f411280b940d311f82
(1) # Executing section authorize from file
/etc/freeradius/3.0/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) auth_log: EXPAND
/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
(1) auth_log: --> /var/log/freeradius/radacct/
127.0.0.1/auth-detail-20240319
(1) auth_log:
/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d
expands to /var/log/freeradius/radacct/127.0.0.1/auth-detail-20240319
(1) auth_log: EXPAND %t
(1) auth_log: --> Tue Mar 19 16:47:00 2024
(1) [auth_log] = ok
(1) [chap] = noop
(1) [mschap] = noop
(1) [digest] = noop
(1) suffix: Checking for suffix after "@"
(1) suffix: Looking up realm "digitalturbine.com" for User-Name = "
brian.testing(a)digitalturbine.com"
(1) suffix: No such realm "digitalturbine.com"
(1) [suffix] = noop
(1) eap: No EAP-Message, not doing EAP
(1) [eap] = noop
(1) [files] = noop
rlm_ldap (ldap): Reserved connection (0)
(1) ldap: EXPAND
(&(objectClass=user)(uid=:%{User-Name}})(memberOf:1.2.840.113556.1.4.1941:=cn=group,dc=digitalturbine,dc=okta,dc=com))
(1) ldap: --> (&(objectClass=user)(uid=:brian.testing@digitalturbine.com
})(memberOf:1.2.840.113556.1.4.1941:=cn=group,dc=digitalturbine,dc=okta,dc=com))
(1) ldap: Performing search in "ou=users,dc=digitalturbine,dc=okta,dc=com"
with filter "(&(objectClass=user)(uid=:brian.testing@digitalturbine.com})(memberOf:1.2.840.113556.1.4.1941:=cn=group,dc=digitalturbine,dc=okta,dc=com))",
scope "sub"
(1) ldap: Waiting for search result...
rlm_ldap (ldap): Reconnecting (0)
rlm_ldap (ldap): Connecting to ldaps://digitalturbine.ldap.okta.com:636
rlm_ldap (ldap): Waiting for bind result...
ber_get_next failed, errno=11.
rlm_ldap (ldap): Bind successful
(1) ldap: WARNING: Search failed: Can't contact LDAP server. Got new
socket, retrying...
(1) ldap: Waiting for search result...
(1) ldap: ERROR: Failed performing search: Unknown error
rlm_ldap (ldap): Released connection (0)
Need 1 more connections to reach min connections (3)
Need more connections to reach 10 spares
rlm_ldap (ldap): Opening additional connection (6), 1 of 30 pending slots
used
rlm_ldap (ldap): Connecting to ldaps://digitalturbine.ldap.okta.com:636
rlm_ldap (ldap): Waiting for bind result...
ber_get_next failed, errno=11.
rlm_ldap (ldap): Bind successful
rlm_ldap (ldap): You probably need to lower "min"
rlm_ldap (ldap): Closing expired connection (5) - Hit idle_timeout limit
(1) [ldap] = fail
(1) } # authorize = fail
(1) Using Post-Auth-Type Reject
(1) # Executing group from file /etc/freeradius/3.0/sites-enabled/default
(1) Post-Auth-Type REJECT {
(1) attr_filter.access_reject: EXPAND %{User-Name}
(1) attr_filter.access_reject: --> brian.testing(a)digitalturbine.com
(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.9 seconds.
(1) Sending delayed response
(1) Sent Access-Reject Id 212 from 127.0.0.1:1812 to 127.0.0.1:47042 length
20
Waking up in 3.9 seconds.
(1) Cleaning up request packet ID 212 with timestamp +11949 due to
cleanup_delay was reached
Ready to process requests
First thing I see is "Looking up Realm" and "No such Realm." I have not
defined realm anywhere as the documentation points to this being needed for
Proxy and I'm not using a proxy.
Next I'm seeing a lot of "ber_get_next failed, errno=11" errors with the
rtm_ldap. I do eventually see the "bind successful" message.
Then comes the following:
(1) ldap: WARNING: Search failed: Can't contact LDAP server. Got new
socket, retrying...
(1) ldap: Waiting for search result...
(1) ldap: ERROR: Failed performing search: Unknown error
rlm_ldap (ldap): Released connection (0)
Not sure why it can't connect to LDAP server or why the search is failing.
An ldapsearch at the command line does connect to the LDAP server and will
show me info:
ldapsearch -x \
-H ldaps://digitalturbine.ldap.okta.com \
-D "uid=jamf.service(a)digitalturbine.com,ou=users,dc=digitalturbine,dc=okta,dc=com"
\
-W \
-b dc=digitalturbine,dc=okta,dc=com \
uid=brian.testing(a)digitalturbine.com \* +
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <dc=digitalturbine,dc=okta,dc=com> with scope subtree
# filter: uid=brian.testing(a)digitalturbine.com
# requesting: * +
#
# brian.testing(a)digitalturbine.com, users, digitalturbine.okta.com
dn: uid=brian.testing(a)digitalturbine.com
,ou=users,dc=digitalturbine,dc=okta,dc
=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
uid: brian.testing(a)digitalturbine.com
uniqueIdentifier: 00u97lgr7yx8L83Ko696
organizationalStatus: ACTIVE
givenName: Brian
sn: Testing
cn: Brian Testing
mail: brian.testing(a)digitalturbine.com
displayName: Brian Testing
title: Testor
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
So not quite sure what I'm missing. Any help you can give is very
appreciative.
1
0
I'd like to log failed proxied authentication attempts (missing responses) and some information to identify which remote server did not respond.
I've successfully configured a linelog module and Post-Proxy-Type Fail-Authentication section to log a message when no response is received but am struggling to find any way of including in the log message information that will identify (eg. IP address/port or home server name) the remote server that failed to respond.
I've found the Home-Server-Name attribute in the internal dictionary but when I try to use it in the format string in the linelog module it just expands to an empty string which ever attribute list I reference.
eg :
format = "Missing response for %{User-Name} to %{realm} vs:'%{Virtual-Server}' home server:'%{control:Home-Server-Name}''"
results in a log line of:
Missing response for 'my_realm/username' to 'my_realm' vs:'my-realm-server-auth' hsn:''
Is there some attributes/means of including some information identifying the remote server in the log message?
Thanks,
Paul
2
2
Hi everyone, hope you are well !
I'm currently trying to update a freeradius server from V2 to V3, and I'm
struggling with tagged attributes that don't work correctly on the V3
server.
This is what i have in my radreply table :
+----------+-------------------------------------+------------------------+----+---------------------------+
| id | UserName | Attribute |
op | Value |
+----------+-------------------------------------+------------------------+----+---------------------------+
| 35928801 | userXX | Framed-Protocol | = |
PPP |
| 35928811 | userXX | Service-Type | = | Framed-User
|
| 35928821 | userXX | Tunnel-Server-Auth-Id | = | :1:xxxxxxxxxx |
| 35928831 | userXX | Tunnel-Server-Endpoint | = | :1:xx.xx.xx.xx |
| 35928841 | userXX | Tunnel-Medium-Type | = | IP |
| 35928851 | userXX | Tunnel-Type | = |
:1:L2TP |
| 35928861 | userXX | Tunnel-Client-Auth-ID | = | :1:XX_XXX |
| 35928901 |userXX | Tunnel-Password | = | :1:xxxxxx
In the V2 server, the response is like this :
Packet-Type = Access-Accept
Framed-Protocol = PPP
Service-Type = Framed-User
Tunnel-Server-Auth-Id:1 = "xxxxxx"
Tunnel-Server-Endpoint:1 = "xx.xx.xx.xx"
Tunnel-Medium-Type:1 = IPv4
Tunnel-Type:1 = L2TP
Tunnel-Client-Auth-Id:1 = "xx_XXX"
Tunnel-Password:1 = "xxxxx"
As you can see, the ":1:" contained in the value goes at the end of the
attribute.
I spent a lot of time trying to understand this on the V2 server, but I
found nothing related to this configuration.
It's like freeradiusV2 understands itself how to deal with tagged attributs.
On the V3 server, it respond exactly what is on the radreply table :
Packet-Type = Access-Accept
Framed-Protocol = PPP
Service-Type = Framed-User
Tunnel-Server-Auth-Id = ":1:xxxxxxxx"
Tunnel-Server-Endpoint = ":1:xx.xx.xx.xxx"
Tunnel-Medium-Type = IPv4
Tunnel-Type = L2TP
Tunnel-Client-Auth-Id = ":1:xxxxxxx"
Tunnel-Password = ":1:xxxxxx"
For now, i can't change nothing on my bdd, i have do deal it with freeradius
I found nothing about changes between V2 and V3 about tagged attributes (i
found something between v3 and v4)
Do you have an idea, how can I make it work with V3 ?
Regards,
Kabsof
3
4
I'm in the process of configuring FreeRADIUS to integrate with our
Okta SSO and LDAP. I'm working through the documentation and FR
installed and LDAP configured so far.
Right now I'm looking at the "Controlling user accounts" info and had
a question about the user.access_attribute and the
user.access-positive attributes.In the documentation it mentions if
the attribute is present (set to true) I can set the access_positive =
yes.
My question is this... in Okta the attribute is "organizationalStatus"
and it can be one of several things. For an active user it is set to
ACTIVE. Does FR only see true or false? Can I set this so it sees the
attribute from Okta and if it is anything other than ACTIVE, then set
access_positive = no?
Thanks
1
0
Azure AD LDAP / memberOf / Not all groups being assigned to control:LDAP-Group
by Mike Mercier 07 Mar '24
by Mike Mercier 07 Mar '24
07 Mar '24
Hello,
Freeradius info:
freeradius -v
radiusd: FreeRADIUS Version 3.0.20, for host x86_64-pc-linux-gnu, built on
Jan 4 2023 at 03:22:36
FreeRADIUS Version 3.0.20
more /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
I've been using pfSense + OpenVPN + FreeRadius, using an Azure AD LDAP
backend successfully for quite a while now. This morning I had a user
reach out to let me know they are unable to access specific resources via
the OpenVPN client. As part of the post-auth, I am creating a Cisco-AVPair
to dynamically create rules in pf, this is (was?) working as expected.
What I discovered after some digging is that the 'control:LDAP-Group'
variable is not being assigned all the groups the user is a member of.
Since some groups are missing from the result, some of the post-auth group
checks are never hit, so the firewall rule is not being added to the
Cisco-AVPair
ex:
I have the following in the 'ldap' module
server = 'ldaps://ldaps.domain.com'
identity = '<username>@domain.com'
password = '<password>'
base_dn = 'dc=domain,dc=com'
If I do an ldapsearch for the user using the variables above:
ldapsearch -D '$identiry' -w '$password -H '$server' -b '$base_dn'
'(&(objectClass=user)(sAMAccountName=<username>))' memberOf | grep
^memberOf | wc -l
The command returns 112 groups for the user I have queried.
When I run 'freeradius -f -XXX', and monitor the output for the above users
login, the number of groups assigned to control:LDAP-Group is only 65.
I have a different user who is a member of 70 groups, testing with that
user I see the same result from the 'freeradius -f -XXX' output for this
user as well, only 65 groups.
Has anyone else experienced this? Is there a knob I have to tune somewhere
that I am unaware of?
Thanks,
Mike
2
1
First time poster here, so bare with me.
I've been using MS NPS for our WiFi authentication against AD.
However, the company I work for is moving away from AD and going to
Okta for all our directory needs and SSO.
Okta supports RADIUS from a handful of proprietary systems. None of
which we have. We are using Unifi APs for our WiFi. As is typically
the case, I have ZERO budget for this. So, implementing an online
proprietary system at $X/user/month isn't possible, all though much
easier.
So, I spun up a new Ubuntu VM and installed FreeRADIUS. I've already
got the Okta LDAP Interface created and working. I've used it with
both Jamf and ldapsearch. That piece seems to be working at this time.
I have followed various instructions online and have FreeRADIUS up and
working using a test user in the local sql db.
Now the part of integrating it with Okta. I have searched all over for
information on configuring FreeRADIUS with Okta and I've found very
little. Okta does have a RADIUS agent for linux, but from my install
and attempt to configure that I've found it lacking many features.
Following what documentation I could find I have modified the ldap
file and linked it to /mods-enabled/ldap. In the ldap { section I've
modified the following:
server
identity
password
base_dn
I've also made the necessary changes in the user and group sections.
In the tls section I've changed start_tls = yes and specified the
ca_file.
Now I can't even get freeradius -X to start. I get the following when
running that:
/etc/freeradius/3.0/mods-enabled/ldap[8]: ldaps:// scheme is not
compatible with 'start_tls'
/etc/freeradius/3.0/mods-enabled/ldap[8]: Instantiation failed for module
"ldap"
If I change start_tls to no, I get the following:
TLS: can't connect: (unknown error code).
rlm_ldap (ldap): Bind with uid=<redacted>, dc=com to
ldaps://redacted.ldap.okta.com:636 failed: Can't contact LDAP server
rlm_ldap (ldap): Opening connection failed (0)
rlm_ldap (ldap): Removing connection pool
/etc/freeradius/3.0/mods-enabled/ldap[8]: Instantiation failed for module
"ldap"
One thing to mention here is when doing an ldapsearch using the following:
ldapsearch -x -H ldaps://digitalturbine.ldap.okta.com -D
"uid=<redacted>,dc=com" -W -b dc=redacted,dc=okta,dc=com
uid=<username>
I get results.
This is of course using simple auth (-x), so I'm not having to use the
cert for this and Jamf appears to be doing simple auth as well. Which
appears to be the issue at this point.
How do I configure FreeRADIUS ldap to do simple auth in this case?
Must be something I'm missing in the ldap file, but can't put my
finger on it.
Once I get FR talking to the Okta LDAP instance I can move on to the
other pieces I need to figure out how to configure - auth based on
group membership, different sites etc.
Any suggestions?
Thanks, brian
2
1
I've seen this error mentioned a few times with some google search and the
advice was to ensure libkqueue is the most recent version from git which is
2.6.1 and i've done that:
dpkg -l libkqueue
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-===================================================================
ii libkqueue 2.6.1 amd64 Userspace implementation of
the kqueue event notification mechanism
I'm on ubuntu 20.04 and everything is up to date.
I installed version 4 from the tar file here
https://freeradius.org/ftp/pub/freeradius/
here is the full error (i'm using v4 because i want tacacs)
radiusd -X
Info : Copyright 1999-2023 The FreeRADIUS server project and contributors
Info : There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Info : PARTICULAR PURPOSE
Info : You may redistribute copies of FreeRADIUS under the terms of the
Info : GNU General Public License
Info : For more information about these matters, see the file named
COPYRIGHT
Info : Starting - reading configuration files ...
Debug : Including dictionary file "/usr/local/etc/raddb/dictionary"
gctx 0x5612a932aa40 report
internal refs src/lib/server/main_config.c (1)
internal refs src/lib/server/request.c (1)
internal refs src/lib/tls/base.c (1)
including configuration file /usr/local/etc/raddb/radiusd.conf
Including files in directory "/usr/local/etc/raddb/template.d/"
including configuration file /usr/local/etc/raddb/template.d/default
including configuration file /usr/local/etc/raddb/clients.conf
Including files in directory "/usr/local/etc/raddb/global.d/"
including configuration file /usr/local/etc/raddb/global.d/ldap
including configuration file /usr/local/etc/raddb/global.d/python
Including files in directory "/usr/local/etc/raddb/mods-enabled/"
including configuration file /usr/local/etc/raddb/mods-enabled/always
including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter
including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap
including configuration file /usr/local/etc/raddb/mods-enabled/chap
including configuration file /usr/local/etc/raddb/mods-enabled/client
including configuration file /usr/local/etc/raddb/mods-enabled/delay
including configuration file /usr/local/etc/raddb/mods-enabled/detail
including configuration file /usr/local/etc/raddb/mods-enabled/detail.log
including configuration file /usr/local/etc/raddb/mods-enabled/digest
including configuration file /usr/local/etc/raddb/mods-enabled/echo
including configuration file /usr/local/etc/raddb/mods-enabled/escape
including configuration file /usr/local/etc/raddb/mods-enabled/exec
including configuration file /usr/local/etc/raddb/mods-enabled/files
including configuration file /usr/local/etc/raddb/mods-enabled/linelog
including configuration file /usr/local/etc/raddb/mods-enabled/mschap
including configuration file /usr/local/etc/raddb/mods-enabled/ntlm_auth
including configuration file /usr/local/etc/raddb/mods-enabled/pap
including configuration file /usr/local/etc/raddb/mods-enabled/passwd
including configuration file /usr/local/etc/raddb/mods-enabled/radutmp
including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp
including configuration file /usr/local/etc/raddb/mods-enabled/stats
including configuration file /usr/local/etc/raddb/mods-enabled/unix
including configuration file /usr/local/etc/raddb/mods-enabled/unpack
including configuration file /usr/local/etc/raddb/mods-enabled/utf8
Including files in directory "/usr/local/etc/raddb/policy.d/"
including configuration file /usr/local/etc/raddb/policy.d/abfab-tr
including configuration file /usr/local/etc/raddb/policy.d/accounting
including configuration file /usr/local/etc/raddb/policy.d/canonicalisation
including configuration file /usr/local/etc/raddb/policy.d/control
including configuration file /usr/local/etc/raddb/policy.d/cui
including configuration file /usr/local/etc/raddb/policy.d/debug
including configuration file /usr/local/etc/raddb/policy.d/dhcp
including configuration file /usr/local/etc/raddb/policy.d/eap
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/time
including configuration file /usr/local/etc/raddb/policy.d/vendor
Including files in directory "/usr/local/etc/raddb/sites-enabled/"
including configuration file /usr/local/etc/raddb/sites-enabled/tacacs
Loaded module process_tacacs
Parsing initial logging configuration.
main {
prefix = /usr/local
log {
destination = files
syslog_facility = daemon
local_state_dir = "/usr/local/var"
logdir = "/usr/local/var/log"
file = /usr/local/var/log/radius/radius.log
suppress_secrets = no
}
}
Parsing security rules to bootstrap UID / GID / chroot / etc.
main {
log {
}
security {
allow_core_dumps = no
allow_vulnerable_openssl = no
openssl_fips_mode = no
}
name = radiusd
local_state_dir = "/usr/local/var"
run_dir = /usr/local/var/run/radiusd
}
Parsing main configuration
main {
server tacacs {
namespace = tacacs
tacacs {
Authentication {
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
msg_denied = "You are already logged in - access denied"
}
session {
timeout = 15
max = 4096
max_rounds = 4
}
}
}
Loaded module proto_tacacs
listen {
type = Authentication-Start
type = Authentication-Continue
type = Authorization-Request
type = Accounting-Request
transport = tcp
Loaded module proto_tacacs_tcp
tcp {
ipaddr = 10.10.10.10
port = 49
networks {
}
max_packet_size = 4096
max_attributes = 256
}
limit {
idle_timeout = 60.0
max_connections = 256
}
priority {
Authentication-Start = high
Authentication-Continue = high
Authorization-Request = normal
Accounting-Request = low
}
}
}
log {
colourise = yes
}
security {
}
sbin_dir = "/usr/local/sbin"
logdir = /usr/local/var/log/radius
radacctdir = /usr/local/var/log/radius/radacct
reverse_lookups = no
hostname_lookups = yes
max_request_time = 30
pidfile = /usr/local/var/run/radiusd/radiusd.pid
debug_level = 0
max_requests = 16384
resources {
}
thread pool {
num_networks = 1
Dynamically determined thread.workers = 31
num_workers = 31
openssl_async_pool_init = 64
openssl_async_pool_max = 1024
}
migrate {
rewrite_update = false
forbid_update = false
}
interpret {
}
}
Switching to configured log settings
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
secret = <<< secret >>>
require_message_authenticator = no
proto = *
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client localhost_ipv6 {
ipv6addr = ::1
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30s
}
}
Debugger not attached
trigger { ... } subsection not found, triggers will be disabled
#### Instantiating libraries ####
#### Bootstrapping process modules ####
Bootstrapping process_tacacs "tacacs"
Creating Auth-Type = PAP
Creating Auth-Type = CHAP
Creating Auth-Type = ASCII
#### Bootstrapping protocol modules ####
Bootstrapping proto_tacacs "tacacs.tacacs"
Ignoring "nak_lifetime = 0", forcing to "nak_lifetime = 1"
client tacacs {
ipaddr = 10.81.1.195
secret = <<< secret >>>
proto = tcp
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30s
}
}
#### Instantiating libraries ####
#### Bootstrapping modules ####
modules {
Loaded module rlm_always
always reject {
rcode = reject
simulcount = 0
mpp = no
}
always fail {
rcode = fail
simulcount = 0
mpp = no
}
always ok {
rcode = ok
simulcount = 0
mpp = no
}
always handled {
rcode = handled
simulcount = 0
mpp = no
}
always invalid {
rcode = invalid
simulcount = 0
mpp = no
}
always disallow {
rcode = disallow
simulcount = 0
mpp = no
}
always notfound {
rcode = notfound
simulcount = 0
mpp = no
}
always noop {
rcode = noop
simulcount = 0
mpp = no
}
always updated {
rcode = updated
simulcount = 0
mpp = no
}
Loaded module rlm_attr_filter
attr_filter attr_filter.pre-proxy {
filename = /usr/local/etc/raddb/mods-config/attr_filter/pre-proxy
key = "%{Realm}"
relaxed = no
}
attr_filter attr_filter.post-proxy {
filename = /usr/local/etc/raddb/mods-config/attr_filter/post-proxy
key = "%{Realm}"
relaxed = no
}
attr_filter attr_filter.access_reject {
filename = /usr/local/etc/raddb/mods-config/attr_filter/access_reject
key = "%{User-Name}"
relaxed = no
}
attr_filter attr_filter.access_challenge {
filename =
/usr/local/etc/raddb/mods-config/attr_filter/access_challenge
key = "%{User-Name}"
relaxed = no
}
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_cache
cache cache_eap {
driver = rbtree
Loaded module rlm_cache_rbtree
key = %{&control.State || &reply.State || &State}
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
Loaded module rlm_chap
chap {
min_challenge_len = 16
}
Loaded module rlm_client
Loaded module rlm_delay
delay {
delay = 1.0s
relative = no
force_reschedule = no
}
delay delay_reject {
delay = "%{&reply.FreeRADIUS-Response-Delay || 1}"
relative = yes
force_reschedule = no
}
Loaded module rlm_detail
detail {
filename =
/usr/local/var/log/radius/radacct/%{Net.Src.IP}/detail-%Y-%m-%d
header = %t
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
detail auth_log {
filename =
/usr/local/var/log/radius/radacct/%{Net.Src.IP}/auth-detail-%Y-%m-%d
header = %t
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
detail reply_log {
filename =
/usr/local/var/log/radius/radacct/%{Net.Src.IP}/reply-detail-%Y-%m-%d
header = %t
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
detail pre_proxy_log {
filename =
/usr/local/var/log/radius/radacct/%{Net.Src.IP}/pre-proxy-detail-%Y-%m-%d
header = %t
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
detail post_proxy_log {
filename =
/usr/local/var/log/radius/radacct/%{Net.Src.IP}/post-proxy-detail-%Y-%m-%d
header = %t
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
Loaded module rlm_digest
Loaded module rlm_exec
exec echo {
wait = yes
input_pairs = &request
output_pairs = &reply
shell_escape = yes
env_inherit = no
}
Loaded module rlm_escape
escape {
safe_characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:
/äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
exec {
wait = yes
input_pairs = &request
shell_escape = yes
env_inherit = no
timeout = 10
}
Loaded module rlm_files
files {
filename = /usr/local/etc/raddb/mods-config/files/authorize
acctusersfile = /usr/local/etc/raddb/mods-config/files/accounting
key = %{%{Stripped-User-Name}:-%{User-Name}}
}
Loaded module rlm_linelog
linelog {
destination = file
delimiter = "\n"
format = "This is a log message for %{User-Name}"
reference = "messages.%{&reply.Packet-Type || 'default'}"
file {
filename = /usr/local/var/log/radius/linelog
permissions = 0600
escape_filenames = no
}
syslog {
severity = "info"
}
unix {
}
tcp {
server = localhost
port = 514
timeout = 2.0
}
udp {
server = localhost
port = 514
timeout = 2.0
}
}
linelog log_accounting {
destination = file
delimiter = "\n"
format = ""
reference = "Accounting-Request.%{&Acct-Status-Type || 'unknown'}"
file {
filename = /usr/local/var/log/radius/linelog-accounting
permissions = 0600
escape_filenames = no
}
syslog {
severity = "info"
}
unix {
}
tcp {
timeout = 1000
}
udp {
timeout = 1000
}
}
Loaded module rlm_mschap
mschap {
normalise = yes
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind {
}
}
exec ntlm_auth {
wait = yes
shell_escape = yes
env_inherit = no
}
Loaded module rlm_pap
pap {
normalise = yes
}
Loaded module rlm_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_radutmp
radutmp {
filename = /usr/local/var/log/radius/radutmp
username = %{User-Name}
check_with_nas = yes
permissions = 0600
caller_id = no
}
radutmp sradutmp {
filename = /usr/local/var/log/radius/sradutmp
username = "%{User-Name}"
check_with_nas = yes
permissions = 0644
caller_id = no
}
Loaded module rlm_stats
stats {
}
Loaded module rlm_unix
unix {
}
Loaded module rlm_unpack
Loaded module rlm_utf8
#### Bootstrapping rlm modules ####
Bootstrapping rlm_cache "cache_eap"
Bootstrapping rlm_chap "chap"
Bootstrapping rlm_delay "delay"
Bootstrapping rlm_delay "delay_reject"
Bootstrapping rlm_always "disallow"
Bootstrapping rlm_exec "echo"
Bootstrapping rlm_escape "escape"
Bootstrapping rlm_exec "exec"
Bootstrapping rlm_always "fail"
Bootstrapping rlm_always "handled"
Bootstrapping rlm_always "invalid"
Bootstrapping rlm_linelog "linelog"
Bootstrapping rlm_linelog "log_accounting"
Bootstrapping rlm_mschap "mschap"
Bootstrapping rlm_always "noop"
Bootstrapping rlm_always "notfound"
Bootstrapping rlm_exec "ntlm_auth"
Bootstrapping rlm_always "ok"
Bootstrapping rlm_always "reject"
Bootstrapping rlm_unix "unix"
Bootstrapping rlm_always "updated"
} # modules
#### Instantiating listeners ####
Compiling policies in server tacacs { ... }
Instantiating proto_tacacs "tacacs.tacacs"
Instantiating process_tacacs "tacacs"
Compiling policies in - recv Authentication-Start {...}
/usr/local/etc/raddb/sites-enabled/tacacs[287]: Ignoring "-sql" as the
"sql" module is not enabled.
Compiling policies in - send Authentication-Pass {...}
Compiling policies in - send Authentication-Fail {...}
Compiling policies in - send Authentication-GetUser {...}
Compiling policies in - send Authentication-GetPass {...}
Compiling policies in - recv Authentication-Continue {...}
Compiling policies in - authenticate PAP {...}
Compiling policies in - authenticate CHAP {...}
Compiling policies in - authenticate ASCII {...}
Compiling policies in - recv Authorization-Request {...}
Compiling policies in - send Authorization-Pass-Add {...}
Compiling policies in - recv Accounting-Request {...}
Compiling policies in - send Accounting-Success {...}
Compiling policies in - send Accounting-Error {...}
Compiling policies in - accounting Start {...}
Compiling policies in - accounting Watchdog-Update {...}
Compiling policies in - accounting Watchdog {...}
Compiling policies in - accounting Stop {...}
/usr/local/etc/raddb/sites-enabled/tacacs[24]: tacacs { ... } section is
unused
#### Instantiating rlm modules ####
Instantiating rlm_attr_filter "attr_filter.access_challenge"
Reading file /usr/local/etc/raddb/mods-config/attr_filter/access_challenge
Instantiating rlm_attr_filter "attr_filter.access_reject"
Reading file /usr/local/etc/raddb/mods-config/attr_filter/access_reject
Instantiating rlm_attr_filter "attr_filter.accounting_response"
Reading file
/usr/local/etc/raddb/mods-config/attr_filter/accounting_response
Instantiating rlm_attr_filter "attr_filter.post-proxy"
Reading file /usr/local/etc/raddb/mods-config/attr_filter/post-proxy
Instantiating rlm_attr_filter "attr_filter.pre-proxy"
Reading file /usr/local/etc/raddb/mods-config/attr_filter/pre-proxy
Instantiating rlm_detail "auth_log"
auth_log - 'User-Password' suppressed, will not appear in detail output
Instantiating rlm_cache "cache_eap"
Instantiating rlm_chap "chap"
Instantiating rlm_detail "detail"
Instantiating rlm_digest "digest"
Failed to find 'authenticate digest {...}' section. Digest authentication
will likely not work
Instantiating rlm_always "disallow"
Instantiating rlm_passwd "etc_passwd"
Instantiating rlm_always "fail"
Instantiating rlm_files "files"
Reading file /usr/local/etc/raddb/mods-config/files/authorize
Reading file /usr/local/etc/raddb/mods-config/files/accounting
Instantiating rlm_always "handled"
Instantiating rlm_always "invalid"
Instantiating rlm_linelog "linelog"
Instantiating rlm_linelog "log_accounting"
Instantiating rlm_mschap "mschap"
mschap - Failed to find 'authenticate mschap {...}' section. MS-CHAP
authentication will likely not work
mschap - Using internal authentication
Instantiating rlm_always "noop"
Instantiating rlm_always "notfound"
Instantiating rlm_always "ok"
Instantiating rlm_pap "pap"
Instantiating rlm_detail "post_proxy_log"
Instantiating rlm_detail "pre_proxy_log"
Instantiating rlm_always "reject"
Instantiating rlm_detail "reply_log"
Instantiating rlm_stats "stats"
Instantiating rlm_always "updated"
Instantiating _cache_rbtree "cache_eap.rbtree"
Scheduler created in single-threaded mode
#### Opening listener interfaces ####
Network - Failed adding new socket to network event loop: Failed inserting
filters for FD 15: EFAULT: Bad address
/usr/local/etc/raddb/sites-enabled/tacacs[144]: Opening tacacs I/O
interface failed
2
1
Hello
I'm trying to set up a TACACS virtual server. I used the tacacs config
file from here
https://freeradius.org/documentation/freeradius-server/4.0.0/raddb/sites-av…
but when i try to start the server i get this:
"/etc/freeradius/sites-enabled/tacacs[21]: Invalid type
"Authentication-Start" in listen section."
I'm on version 3.2.3 using Ubuntu 20.04. Do i need to be on version 4 for
TACACS?
Thanks
Phill
2
2
Hello,
im using freeradius 3.2. I want extract from the TLS-Client-Cert-Common-Name only the Hostname and strip off the fqdn part and update
the User-Name for further processings. I found the split string function with %explode in the documentation.
I dont get it working, i tried following 2 variants:
Variant 1 with variables:
i tried using temp variables for conversion and used the "local variables" example from the documentation. I read that there variables only can be used in: "One
of case, else, elsif, foreach, group, if ,limit, or timeout. Local variables are forbidden in all other locations." So i build a dummy "if" for that.
if ("1"=="1") {
string TmpString1
&TmpString1 := "%explode(%{TLS-Client-Cert-Common-Name}, '.')"
&User-Name := "%{TmpString1[0]}$"
}
-> Error Log on Radiusd -X:
/etc/raddb/sites-enabled/check-eap-tls[105]: Expecting section start brace '{' after "string TmpString1"
-> the declaration looks like the example but what im doing wrong?
Variant 2 without helping variables, in one line:
update request {
&User-Name := "%explode(%{TLS-Client-Cert-Common-Name}, '.')[0]"
}
-> Log:
(10) update request {
(10) EXPAND %explode(%{TLS-Client-Cert-Common-Name}, '.')[0]
(10) --> 1xplode(testclient.prod.company.net, '.')[0]
(10) &User-Name := 1xplode(testclient.prod.company.net, '.')[0]
(10) } # update request = noop
Can someone helping me, getting one of both variants working? Im also not sure if i can use [0] in the variant 2.
many thanks and regards,
Ted
2
1