Freeradius-Users
Threads by month
- ----- 2026 -----
- 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
May 2021
- 55 participants
- 57 discussions
Hello all,
I am very new to FreeRadius and I am not sure why I can't access the network device.It seems something to do with radiusd.conf but I can't identify it.. Please help.
This is the debugging message when I ran the test.
(0) Received Access-Request Id 116 from 10.0.254.3:43509 to 10.192.2.141:1812 length 92
(0) User-Name = "hong"
(0) User-Password = "test123!"
(0) NAS-Port-Id = "ssh"
(0) Calling-Station-Id = "ops001.mydomain.com"
(0) Service-Type = NAS-Prompt-User
(0) NAS-Port = 0
(0) NAS-IP-Address = 10.0.254.3
(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] = noop
(0) [digest] = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: No '@' in User-Name = "hong", 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: users: Matched entry hong at line 94
(0) [files] = ok
(0) [expiration] = noop
(0) [logintime] = noop
(0) pap: Normalizing SHA-Password from hex encoding, 40 bytes -> 20 bytes
(0) [pap] = updated
(0) } # authorize = updated
(0) Found Auth-Type = PAP
(0) # Executing group from file /etc/raddb/sites-enabled/default
(0) Auth-Type PAP {
(0) pap: Login attempt with password
(0) pap: Comparing with "known-good" SHA-Password
(0) pap: User authenticated successfully
(0) [pap] = ok
(0) } # Auth-Type PAP = ok
(0) # Executing section post-auth from file /etc/raddb/sites-enabled/default
(0) post-auth {
(0) update reply {
(0) Juniper-Local-User-Name = "admin"
(0) Arista-AVPair = "shell:priv-lvl=15"
(0) Arista-AVPair = "shell:roles=network-admin"
(0) PaloAlto-Admin-Role = "superuser"
(0) PaloAlto-Panorama-Admin-Role = "superuser"
(0) PaloAlto-User-Group = "all"
(0) } # update reply = noop
(0) [exec] = 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 = noop
(0) Sent Access-Accept Id 116 from 10.192.2.141:1812 to 10.0.254.3:43509 length 0
(0) Juniper-Local-User-Name = "admin"
(0) Arista-AVPair = "shell:priv-lvl=15"
(0) Arista-AVPair = "shell:roles=network-admin"
(0) PaloAlto-Admin-Role = "superuser"
(0) PaloAlto-Panorama-Admin-Role = "superuser"
(0) PaloAlto-User-Group = "all"
(0) Finished request
Waking up in 4.9 seconds.
Waking up in 6.9 seconds.
(0) Cleaning up request packet ID 116 with timestamp +9
Thanks,Paul
4
6
Segmentation fault on 3.0.22 and head when doing a request status_check
by paul.moser@bt.com 26 May '21
by paul.moser@bt.com 26 May '21
26 May '21
I've tried doing an upgrade to 3.0.22 (built locally from source), all our tests pass but one with FreeRadius suffering a segmentation fault.
It appears to be when FreeRadius attempts a status_check after getting no response from a server when it's attempting to proxy a request, specifically a request status check, a status-server check does not cause an issue and neither does no status check.
(fulradiusd -X output at end of email)
(0) Proxying request to home server 127.0.0.1 port 5555 timeout 2.000000
(0) Sent Access-Request Id 127 from 0.0.0.0:57856 to 127.0.0.1:5555 length 59
(0) User-Name = "paul"
(0) Event-Timestamp = "May 26 2021 17:30:02 UTC"
(0) NAS-IP-Address = 127.0.0.1
(0) Message-Authenticator := 0x00
(0) Proxy-State = 0x34
Waking up in 0.3 seconds.
(0) Expecting proxy response no later than 1.666647 seconds from now
Waking up in 1.6 seconds.
(0) No proxy response, giving up on request and marking it done
Marking home server 127.0.0.1 port 5555 as zombie (it has not responded in 2.000000 seconds).
PING: Waiting 4 seconds for response to ping
(1) Sent Access-Request Id 141 from 0.0.0.0:57856 to 127.0.0.1:5555 length 0
(1) User-Name := "test_user_please_reject_me"
Segmentation fault (core dumped)
The minimal configuration I've used to replicate the issue on top of the out of the box configuration, just adding to proxy.conf:
home_server home_server_bt {
type = auth
ipaddr = 127.0.0.1
port = 5555
secret = secret
response_window = 2
status_check = request
username = "test_user_please_reject_me"
password = "this is really secret"
check_interval = 30
num_answers_to_alive = 3
}
home_server_pool auth_pool_bt {
home_server = home_server_bt
virtual_server = virtual_server_bt
}
realm bt.com {
auth_pool = auth_pool_bt
}
And an empty virtual server in sites-enabled:
server virtual_server_bt {
}
I've tried to rule out anything environmental by trying this on builds on Ubuntu and Oracle Linux. I've also tried a build from head of the v3.0.x branch.
Paul
FreeRADIUS Version 3.0.22
Copyright (C) 1999-2021 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
Getting debug state failed: ptrace capability not set. If debugger detection is required run as root or: setcap cap_sys_ptrace+ep <path_to_radiusd>
Starting - reading configuration files ...
including dictionary file /opt/freeradius-server-3.0.22/share/freeradius/dictionary
including dictionary file /opt/freeradius-server-3.0.22/share/freeradius/dictionary.dhcp
including dictionary file /opt/freeradius-server-3.0.22/share/freeradius/dictionary.vqp
including dictionary file /opt/freeradius-server-3.0.22/etc/raddb/dictionary
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/radiusd.conf
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/proxy.conf
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/clients.conf
including files in directory /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/echo
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/chap
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/pap
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/date
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/preprocess
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/unix
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/expr
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail.log
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/dynamic_clients
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/sradutmp
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/soh
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/utf8
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/linelog
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/passwd
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/ntlm_auth
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/radutmp
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/digest
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/replicate
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/cache_eap
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/files
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/unpack
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/mschap
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/expiration
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/logintime
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/exec
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/eap
including files in directory /opt/freeradius-server-3.0.22/etc/raddb/policy.d/
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/canonicalization
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/accounting
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/control
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/filter
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/rfc7542
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/operator-name
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/abfab-tr
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/cui
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/debug
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/moonshot-targeted-ids
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/eap
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/policy.d/dhcp
including files in directory /opt/freeradius-server-3.0.22/etc/raddb/sites-enabled/
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/sites-enabled/default
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/sites-enabled/virtual_server_bt
including configuration file /opt/freeradius-server-3.0.22/etc/raddb/sites-enabled/inner-tunnel
main {
security {
allow_core_dumps = no
}
name = "radiusd"
prefix = "/opt/freeradius-server-3.0.22"
localstatedir = "/opt/freeradius-server-3.0.22/var"
logdir = "/opt/freeradius-server-3.0.22/var/log/radius"
run_dir = "/opt/freeradius-server-3.0.22/var/run/radiusd"
}
main {
name = "radiusd"
prefix = "/opt/freeradius-server-3.0.22"
localstatedir = "/opt/freeradius-server-3.0.22/var"
sbindir = "/opt/freeradius-server-3.0.22/sbin"
logdir = "/opt/freeradius-server-3.0.22/var/log/radius"
run_dir = "/opt/freeradius-server-3.0.22/var/run/radiusd"
libdir = "/opt/freeradius-server-3.0.22/lib"
radacctdir = "/opt/freeradius-server-3.0.22/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 16384
pidfile = "/opt/freeradius-server-3.0.22/var/run/radiusd/radiusd.pid"
checkrad = "/opt/freeradius-server-3.0.22/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 ####
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 home_server_bt {
ipaddr = 127.0.0.1
port = 5555
type = "auth"
secret = <<< secret >>>
response_window = 2.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "request"
ping_interval = 30
check_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
username = "test_user_please_reject_me"
password = "this is really secret"
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 {
}
home_server_pool auth_pool_bt {
virtual_server = virtual_server_bt
home_server = home_server_bt
}
realm bt.com {
auth_pool = auth_pool_bt
}
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
}
}
Debug state unknown (cap_sys_ptrace capability not set)
# 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
# Creating Autz-Type = New-TLS-Connection
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_exec
# Loading module "echo" from file /opt/freeradius-server-3.0.22/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_realm
# Loading module "IPASS" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "bangpath" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
realm bangpath {
format = "prefix"
delimiter = "!"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_chap
# Loading module "chap" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/chap
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.coa" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.coa {
filename = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/coa"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_detail
# Loading module "detail" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail
detail {
filename = "/opt/freeradius-server-3.0.22/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
}
# Loaded module rlm_pap
# Loading module "pap" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_date
# Loading module "date" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/preprocess
preprocess {
huntgroups = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/preprocess/huntgroups"
hints = "/opt/freeradius-server-3.0.22/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_unix
# Loading module "unix" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/unix
unix {
radwtmp = "/opt/freeradius-server-3.0.22/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_expr
# Loading module "expr" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loading module "auth_log" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail.log
detail auth_log {
filename = "/opt/freeradius-server-3.0.22/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 /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail.log
detail reply_log {
filename = "/opt/freeradius-server-3.0.22/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 /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/opt/freeradius-server-3.0.22/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 /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail.log
detail post_proxy_log {
filename = "/opt/freeradius-server-3.0.22/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_dynamic_clients
# Loading module "dynamic_clients" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/dynamic_clients
# Loaded module rlm_radutmp
# Loading module "sradutmp" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/opt/freeradius-server-3.0.22/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_soh
# Loading module "soh" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/soh
soh {
dhcp = yes
}
# Loaded module rlm_always
# Loading module "reject" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_utf8
# Loading module "utf8" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/utf8
# Loaded module rlm_linelog
# Loading module "linelog" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/linelog
linelog {
filename = "/opt/freeradius-server-3.0.22/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 /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/linelog
linelog log_accounting {
filename = "/opt/freeradius-server-3.0.22/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /opt/freeradius-server-3.0.22/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
}
# Loading module "ntlm_auth" from file /opt/freeradius-server-3.0.22/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
}
# Loading module "radutmp" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/radutmp
radutmp {
filename = "/opt/freeradius-server-3.0.22/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_digest
# Loading module "digest" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/digest
# Loaded module rlm_replicate
# Loading module "replicate" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/replicate
# Loaded module rlm_cache
# Loading module "cache_eap" from file /opt/freeradius-server-3.0.22/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_files
# Loading module "files" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/files
files {
filename = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/files/authorize"
acctusersfile = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/files/accounting"
preproxy_usersfile = "/opt/freeradius-server-3.0.22/etc/raddb/mods-config/files/pre-proxy"
}
# Loaded module rlm_unpack
# Loading module "unpack" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/unpack
# Loaded module rlm_mschap
# Loading module "mschap" from file /opt/freeradius-server-3.0.22/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_expiration
# Loading module "expiration" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/expiration
# Loaded module rlm_logintime
# Loading module "logintime" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loading module "exec" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_eap
# Loading module "eap" from file /opt/freeradius-server-3.0.22/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
}
instantiate {
}
# Instantiating module "IPASS" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
# Instantiating module "suffix" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
# Instantiating module "bangpath" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
# Instantiating module "realmpercent" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
# Instantiating module "ntdomain" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/realm
# Instantiating module "attr_filter.post-proxy" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/access_reject
# Instantiating module "attr_filter.access_challenge" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "attr_filter.coa" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/attr_filter/coa
# Instantiating module "detail" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail
# Instantiating module "pap" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/pap
# Instantiating module "preprocess" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/preprocess
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/preprocess/hints
# Instantiating module "auth_log" from file /opt/freeradius-server-3.0.22/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 /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/detail.log
# Instantiating module "reject" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
# Instantiating module "fail" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
# Instantiating module "ok" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
# Instantiating module "handled" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
# Instantiating module "invalid" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
# Instantiating module "userlock" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
# Instantiating module "notfound" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
# Instantiating module "noop" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
# Instantiating module "updated" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/always
# Instantiating module "linelog" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/linelog
# Instantiating module "log_accounting" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/linelog
# Instantiating module "etc_passwd" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "cache_eap" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
# Instantiating module "files" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/files
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/files/authorize
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/files/accounting
reading pairlist file /opt/freeradius-server-3.0.22/etc/raddb/mods-config/files/pre-proxy
# Instantiating module "mschap" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "expiration" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/expiration
# Instantiating module "logintime" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/logintime
# Instantiating module "eap" from file /opt/freeradius-server-3.0.22/etc/raddb/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
# 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 = "/opt/freeradius-server-3.0.22/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/opt/freeradius-server-3.0.22/etc/raddb/certs/server.pem"
certificate_file = "/opt/freeradius-server-3.0.22/etc/raddb/certs/server.pem"
ca_file = "/opt/freeradius-server-3.0.22/etc/raddb/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/opt/freeradius-server-3.0.22/etc/raddb/certs/dh"
fragment_size = 1024
include_length = yes
auto_chain = yes
check_crl = no
check_all_crl = no
ca_path_reload_interval = 0
cipher_list = "DEFAULT"
cipher_server_preference = no
ecdh_curve = "prime256v1"
tls_max_version = "1.2"
tls_min_version = "1.2"
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
}
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /opt/freeradius-server-3.0.22/etc/raddb/radiusd.conf
} # server
server default { # from file /opt/freeradius-server-3.0.22/etc/raddb/sites-enabled/default
# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type CHAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
Ignoring "sql" (see raddb/mods-available/README.rst)
Ignoring "ldap" (see raddb/mods-available/README.rst)
Compiling Autz-Type New-TLS-Connection for attr Autz-Type
# Loading preacct {...}
# Loading accounting {...}
# Loading post-proxy {...}
# Loading post-auth {...}
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
Compiling Post-Auth-Type Challenge for attr Post-Auth-Type
} # server default
server virtual_server_bt { # from file /opt/freeradius-server-3.0.22/etc/raddb/sites-enabled/virtual_server_bt
} # server virtual_server_bt
server inner-tunnel { # from file /opt/freeradius-server-3.0.22/etc/raddb/sites-enabled/inner-tunnel
# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type CHAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
# Loading session {...}
# Loading post-proxy {...}
# Loading post-auth {...}
# Skipping contents of 'if' as it is always 'false' -- /opt/freeradius-server-3.0.22/etc/raddb/sites-enabled/inner-tunnel:336
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
} # server inner-tunnel
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
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
}
}
Ignoring duplicate client 127.0.0.1
client localhost_ipv6 {
ipv6addr = ::1
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Ignoring duplicate client ::1
}
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 57856
Listening on proxy address :: port 54137
Ready to process requests
(0) Received Access-Request Id 4 from 127.0.0.1:50956 to 127.0.0.1:1812 length 33
(0) User-Name = "paul(a)bt.com"
(0) # Executing section authorize from file /opt/freeradius-server-3.0.22/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] = noop
(0) [digest] = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: Looking up realm "bt.com" for User-Name = "paul(a)bt.com"
(0) suffix: Found realm "bt.com"
(0) suffix: Adding Stripped-User-Name = "paul"
(0) suffix: Adding Realm = "bt.com"
(0) suffix: Proxying request from user paul to realm bt.com
(0) suffix: Preparing to proxy authentication request to realm "bt.com"
(0) [suffix] = updated
(0) eap: No EAP-Message, not doing EAP
(0) [eap] = noop
(0) [files] = noop
(0) [expiration] = noop
(0) [logintime] = noop
(0) [pap] = noop
(0) } # authorize = updated
(0) Starting proxy to home server 127.0.0.1 port 5555
(0) server virtual_server_bt {
(0) }
(0) Proxying request to home server 127.0.0.1 port 5555 timeout 2.000000
(0) Sent Access-Request Id 127 from 0.0.0.0:57856 to 127.0.0.1:5555 length 59
(0) User-Name = "paul"
(0) Event-Timestamp = "May 26 2021 17:30:02 UTC"
(0) NAS-IP-Address = 127.0.0.1
(0) Message-Authenticator := 0x00
(0) Proxy-State = 0x34
Waking up in 0.3 seconds.
(0) Expecting proxy response no later than 1.666647 seconds from now
Waking up in 1.6 seconds.
(0) No proxy response, giving up on request and marking it done
Marking home server 127.0.0.1 port 5555 as zombie (it has not responded in 2.000000 seconds).
PING: Waiting 4 seconds for response to ping
(1) Sent Access-Request Id 141 from 0.0.0.0:57856 to 127.0.0.1:5555 length 0
(1) User-Name := "test_user_please_reject_me"
Segmentation fault (core dumped)
2
1
Hi,
I apologise if this question is considered off-topic, but I wouldn’t know where else to ask.
We run freeradius on RHEL 7, using our own RPMs that are based on the SPEC file included with freeradius, but with some differences. Our database team doesn’t want to use the stock mariadb RPM, so we use version 10.5 from http://yum.mariadb.org/10.5/rhel7-amd64.
The issue is that I have found that when I build the freeradius 3.0.22 RPM with MariaDB 10.5 installed, the freeradius server doesn’t run properly. I configured a panic_action and can provide the gdb files if there is interest.
If I use mariadb-devel 5.5 (standard issue RHEL 7) to build, everything works fine, even when the database server is running MariaDB 10.5. So there is a workaround, but I wonder if it shouldn’t be possible to compile with the newer version installed?
--
.:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
.:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.
2
3
Good afternoon,
We have radsec tunnels between the authenticator and the server wherever it
is supported, and a lot of the newer networking equipment that has this.
The majority of traffic will be on Windows machines using EAP-TTLS. We came
across this message:
https://www.juniper.net/documentation/us/en/software/junos/user-access/topi…
which states "NOTE: Due to limitations of the TCP protocol, RADSEC can have
no more than 255 RADIUS messages in flight."
Due to the majority of our traffic being from Windows machines using
EAP-TTLS, will this also include RADIUS messages? Has anyone been affected
by this limitation? We are looking at scaling the RADIUS solution to a
large number of users in the future.
There seems to be no reported issues about these limitations, other than
the article above.
Thanks for any help you can provide,
Michael
2
1
Hi list, I just upgraded to 3.0.22 and I have a question about an issue I just ran into. I see in the changelog there's some changes to how clients are loaded.
Previously I was using the nas table via MySQL to load clients into the global list for all my virtual servers. With 3.0.22 I can see the clients successfully loaded but freeradius is then ignoring any accounting requests from those clients with:
radiusd[32025]: Ignoring request to acct address * port 1821 bound to server combined from unknown client 192.168.10.215 port 37819 proto udp
I resolved the issue by putting the clients into clients.conf with the following basic config for now
client radius01.syd1 {
ipaddr = 192.168.10.215
secret = [..]
}
and for reference the previously working SQL configuration for that client
mysql> SELECT * FROM radius.nas WHERE nasname = '192.168.10.215';
+----+----------------+---------------+-------+-------+----------+--------+-----------+-------------+
| id | nasname | shortname | type | ports | secret | server | community | description |
+----+----------------+---------------+-------+-------+----------+--------+-----------+-------------+
| 85 | 192.168.10.215 | radius01.syd1 | other | NULL | [..]| NULL | NULL | |
+----+----------------+---------------+-------+-------+----------+--------+-----------+-------------+
1 row in set (0.00 sec)
radmin shows the following slight differences after loading both
radmin> show client list verbose
client radius01.syd1 {
ipaddr = 192.168.10.215/32
proto = udp
secret = [..]
longname = 192.168.10.215
shortname = radius01.syd1
number = 0
global = yes
}
client {
ipaddr = 192.168.10.215/32
proto = *
secret = [...]
longname = 192.168.10.215
shortname = radius01.syd1
nas_type = other
number = 47
dynamic = yes
lifetime = 0
global = yes
}
My question is what am I doing wrong here that the client loaded from sql isn't working?
I thought it might be the changes around client loading but radmin shows that it was successfully loaded as a global client and not tied to a single virtualhost.
Thanks,
Boden
radiusd -X output
FreeRADIUS Version 3.0.22
Copyright (C) 1999-2021 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/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/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/sql
including configuration file /etc/raddb/mods-config/sql/main/mysql/queries.conf
including configuration file /etc/raddb/mods-enabled/sqlippool
including configuration file /etc/raddb/mods-config/sql/ippool/mysql/queries.conf
including configuration file /etc/raddb/mods-enabled/date
including configuration file /etc/raddb/mods-enabled/detail.my-company.net.au
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 configuration file /etc/raddb/policy.d/abfab-tr
including configuration file /etc/raddb/policy.d/moonshot-targeted-ids
including configuration file /etc/raddb/policy.d/rfc7542
including files in directory /etc/raddb/sites-enabled/
including configuration file /etc/raddb/sites-enabled/combined-walled-garden
including configuration file /etc/raddb/sites-enabled/combined-walled-garden-nbn
including configuration file /etc/raddb/sites-enabled/control-socket
including configuration file /etc/raddb/sites-enabled/coa
including configuration file /etc/raddb/sites-enabled/decoupled-accounting-my-company
including configuration file /etc/raddb/sites-enabled/status
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 = 4096
pidfile = "/var/run/radiusd/radiusd.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = yes
auth_badpass = yes
auth_goodpass = 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 ####
realm DEFAULT {
}
radiusd: #### Loading Clients ####
client radius01.syd1 {
ipaddr = 192.168.10.215
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client radius02.syd1 {
ipaddr = 192.168.10.222
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debugger not attached
systemd watchdog is disabled
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
# Creating Autz-Type = Status-Server
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_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_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/visp_users"
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 = yes
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 "bangpath" from file /etc/raddb/mods-enabled/realm
realm bangpath {
format = "prefix"
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_sql
# Loading module "sql" from file /etc/raddb/mods-enabled/sql
sql {
driver = "rlm_sql_mysql"
server = "192.168.10.206"
port = 3306
login = "radius"
password = <<< secret >>>
radius_db = "radius"
read_groups = yes
read_profiles = yes
read_clients = yes
delete_stale_sessions = yes
sql_user_name = "%{User-Name}"
default_user_profile = ""
client_query = "SELECT id, nasname, shortname, type, secret, server FROM nas"
authorize_check_query = "SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id"
authorize_reply_query = "SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id"
authorize_group_check_query = "SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{SQL-Group}' ORDER BY id"
authorize_group_reply_query = "SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{SQL-Group}' ORDER BY id"
group_membership_query = "SELECT groupname FROM usergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority"
simul_count_query = "SELECT COUNT(*) FROM radacct WHERE username = '%{SQL-User-Name}' AND acctstoptime IS NULL"
simul_verify_query = "SELECT radacctid, acctsessionid, username, nasipaddress, nasportid, framedipaddress, callingstationid, framedprotocol FROM radacct WHERE username = '%{SQL-User-Name}' AND acctstoptime IS NULL"
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
auto_escape = no
accounting {
reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Request-Processing-Stage}}.query}"
type {
accounting-on {
query = "UPDATE radacct SET acctstoptime = FROM_UNIXTIME(%{%{integer:Event-Timestamp}:-%l}), acctsessiontime = '%{%{integer:Event-Timestamp}:-%l}' - UNIX_TIMESTAMP(acctstarttime), acctterminatecause = '%{%{Acct-Terminate-Cause}:-NAS-Reboot}' WHERE acctstoptime IS NULL AND nasipaddress = '%{NAS-IP-Address}' AND acctstarttime <= FROM_UNIXTIME(%{%{integer:Event-Timestamp}:-%l})"
}
accounting-off {
query = "UPDATE radacct SET acctstoptime = FROM_UNIXTIME(%{%{integer:Event-Timestamp}:-%l}), acctsessiontime = '%{%{integer:Event-Timestamp}:-%l}' - UNIX_TIMESTAMP(acctstarttime), acctterminatecause = '%{%{Acct-Terminate-Cause}:-NAS-Reboot}' WHERE acctstoptime IS NULL AND nasipaddress = '%{NAS-IP-Address}' AND acctstarttime <= FROM_UNIXTIME(%{%{integer:Event-Timestamp}:-%l})"
}
start {
query = "INSERT INTO radacct (acctsessionid, acctuniqueid, username, realm, nasipaddress, nasportid, nasporttype, acctstarttime, acctupdatetime, acctstoptime, acctsessiontime, acctauthentic, connectinfo_start, connectinfo_stop, acctinputoctets, acctoutputoctets, calledstationid, callingstationid, acctterminatecause, servicetype, framedprotocol, framedipaddress, framedipv6address, framedipv6prefix, framedipv6pool, delegatedipv6prefix) VALUES ('%{Acct-Session-Id}', '%{Acct-Unique-Session-Id}', '%{SQL-User-Name}', '%{Realm}', '%{NAS-IP-Address}', '%{%{NAS-Port-ID}:-%{NAS-Port}}', '%{NAS-Port-Type}', FROM_UNIXTIME(%{%{integer:Event-Timestamp}:-%l}), FROM_UNIXTIME(%{%{integer:Event-Timestamp}:-%l}), NULL, '0', '%{Acct-Authentic}', '%{Connect-Info}', '', '0', '0', '%{Called-Station-Id}', '%{Calling-Station-Id}', '', '%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', '%{Framed-IPv6-Address}', '%{Framed-IPv6-Prefix}', '%{Framed-IPv6-Pool}', '%{Delegated-IPv6-Prefix}')"
}
interim-update {
query = "UPDATE radacct SET acctupdatetime = (@acctupdatetime_old:=acctupdatetime), acctupdatetime = FROM_UNIXTIME(%{%{integer:Event-Timestamp}:-%l}), acctinterval = %{%{integer:Event-Timestamp}:-%l} - UNIX_TIMESTAMP(@acctupdatetime_old), framedipaddress = '%{Framed-IP-Address}', framedipv6address = '%{Framed-IPv6-Address}', framedipv6prefix = '%{Framed-IPv6-Prefix}', framedipv6pool = '%{Framed-IPv6-Pool}', delegatedipv6prefix = '%{Delegated-IPv6-Prefix}', acctsessiontime = %{%{Acct-Session-Time}:-NULL}, acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}' WHERE AcctUniqueId = '%{Acct-Unique-Session-Id}'"
}
stop {
query = "UPDATE radacct SET acctstoptime = FROM_UNIXTIME(%{%{integer:Event-Timestamp}:-%l}), acctsessiontime = %{%{Acct-Session-Time}:-NULL}, acctinputoctets = '%{%{Acct-Input-Gigawords}:-0}' << 32 | '%{%{Acct-Input-Octets}:-0}', acctoutputoctets = '%{%{Acct-Output-Gigawords}:-0}' << 32 | '%{%{Acct-Output-Octets}:-0}', acctterminatecause = '%{Acct-Terminate-Cause}', connectinfo_stop = '%{Connect-Info}' WHERE AcctUniqueId = '%{Acct-Unique-Session-Id}'"
}
}
}
post-auth {
reference = ".query"
query = "INSERT INTO radpostauth (username, pass, reply, authdate, downstream, upstream) VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S.%M', '%{request:Actual-Data-Rate-Downstream}', '%{request:Actual-Data-Rate-Upstream}' )"
}
}
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
Creating attribute SQL-Group
# Loaded module rlm_sqlippool
# Loading module "sqlippool" from file /etc/raddb/mods-enabled/sqlippool
sqlippool {
sql_module_instance = "sql"
lease_duration = 3600
pool_name = "Pool-Name"
default_pool = "main_pool"
attribute_name = "Framed-IP-Address"
allocate_begin = "START TRANSACTION"
allocate_clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', expiry_time = NULL WHERE expiry_time <= NOW() - INTERVAL 1 SECOND AND nasipaddress = '%{%{Nas-IP-Address}:-%{Nas-IPv6-Address}}'"
allocate_clear_timeout = 1
allocate_existing = ""
allocate_requested = ""
allocate_find = "SELECT framedipaddress FROM radippool WHERE pool_name = '%{control:Pool-Name}' AND ( expiry_time < NOW() OR expiry_time IS NULL OR expiry_time = 0 OR ( nasipaddress = '%{NAS-IP-Address}' AND pool_key = '%{NAS-Port-Id}' ) ) ORDER BY (username <> '%{User-Name}'), (callingstationid <> '%{Calling-Station-Id}'), expiry_time LIMIT 1 FOR UPDATE"
allocate_update = "UPDATE radippool SET nasipaddress = '%{NAS-IP-Address}', pool_key = '%{NAS-Port-Id}', callingstationid = '%{Calling-Station-Id}', username = '%{User-Name}', expiry_time = NOW() + INTERVAL 3600 SECOND WHERE framedipaddress = '%I'"
allocate_commit = "COMMIT"
pool_check = "SELECT id FROM radippool WHERE pool_name='%{control:Pool-Name}' LIMIT 1"
start_begin = ""
start_update = "UPDATE radippool SET expiry_time = NOW() + INTERVAL 3600 SECOND WHERE nasipaddress = '%{NAS-IP-Address}' AND pool_key = '%{NAS-Port-Id}' AND username = '%{User-Name}' AND callingstationid = '%{Calling-Station-Id}' AND framedipaddress = '%{Framed-IP-Address}'"
start_commit = ""
alive_begin = ""
alive_update = "UPDATE radippool SET expiry_time = NOW() + INTERVAL 3600 SECOND WHERE nasipaddress = '%{%{Nas-IP-Address}:-%{Nas-IPv6-Address}}' AND pool_key = '%{NAS-Port-Id}' AND username = '%{User-Name}' AND callingstationid = '%{Calling-Station-Id}' AND framedipaddress = '%{Framed-IP-Address}'"
alive_commit = ""
stop_begin = ""
stop_clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', expiry_time = NULL WHERE nasipaddress = '%{%{Nas-IP-Address}:-%{Nas-IPv6-Address}}' AND pool_key = '%{NAS-Port-Id}' AND username = '%{User-Name}' AND callingstationid = '%{Calling-Station-Id}' AND framedipaddress = '%{Framed-IP-Address}'"
stop_commit = ""
on_begin = ""
on_clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', expiry_time = NULL WHERE nasipaddress = '%{%{Nas-IP-Address}:-%{Nas-IPv6-Address}}'"
on_commit = ""
off_begin = ""
off_clear = "UPDATE radippool SET nasipaddress = '', pool_key = 0, callingstationid = '', username = '', expiry_time = NULL WHERE nasipaddress = '%{%{Nas-IP-Address}:-%{Nas-IPv6-Address}}'"
off_commit = ""
messages {
exists = "Existing IP: %{reply:Framed-IP-Address} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
success = "Allocated IP: %{reply:Framed-IP-Address} from %{control:Pool-Name} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
clear = "Released IP Framed-IP-Address (did %{Called-Station-Id} cli %{Calling-Station-Id} user %{User-Name})"
failed = "IP Allocation FAILED from %{control:Pool-Name} (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
nopool = "No Pool-Name defined (did %{Called-Station-Id} cli %{Calling-Station-Id} port %{NAS-Port} user %{User-Name})"
}
}
# 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
}
# Loading module "wispr2date" from file /etc/raddb/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loading module "detail.my-company.net.au" from file /etc/raddb/mods-enabled/detail.my-company.net.au
detail detail.my-company.net.au {
filename = "/var/log/radius/radacct/detail-%Y%m%d:%H:%G"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
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
# 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 "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/visp_users
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 "bangpath" 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 "sql" from file /etc/raddb/mods-enabled/sql
rlm_sql_mysql: libmysql version: 5.6.45
mysql {
tls {
tls_required = no
}
warnings = "auto"
}
rlm_sql (sql): Attempting to connect to database "radius"
rlm_sql (sql): Initialising connection pool
pool {
start = 10
min = 10
max = 40
spare = 10
uses = 0
lifetime = 0
cleanup_interval = 30
idle_timeout = 600
retry_delay = 1
spread = no
}
rlm_sql (sql): Opening additional connection (0), 1 of 40 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Opening additional connection (1), 1 of 39 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Opening additional connection (2), 1 of 38 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Opening additional connection (3), 1 of 37 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Opening additional connection (4), 1 of 36 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Opening additional connection (5), 1 of 35 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Opening additional connection (6), 1 of 34 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Opening additional connection (7), 1 of 33 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Opening additional connection (8), 1 of 32 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Opening additional connection (9), 1 of 31 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radius' on 192.168.10.206 via TCP/IP, server version 8.0.25, protocol version 10
rlm_sql (sql): Processing generate_sql_clients
rlm_sql (sql) in generate_sql_clients: query is SELECT id, nasname, shortname, type, secret, server FROM nas
rlm_sql (sql): Reserved connection (0)
rlm_sql (sql): Executing select query: SELECT id, nasname, shortname, type, secret, server FROM nas
rlm_sql (sql): Adding client 203.23.236.6 (VIC-LNS) to global clients list
rlm_sql (203.23.236.6): Client "VIC-LNS" (sql) added
rlm_sql (sql): Adding client 203.23.236.26 (ADSL-LNS) to global clients list
rlm_sql (203.23.236.26): Client "ADSL-LNS" (sql) added
rlm_sql (sql): Adding client 203.23.236.46 (ADSL-LNS) to global clients list
rlm_sql (203.23.236.46): Client "ADSL-LNS" (sql) added
rlm_sql (sql): Adding client 192.168.10.226 (Station) to global clients list
rlm_sql (192.168.10.226): Client "Station" (sql) added
rlm_sql (sql): Adding client 202.172.107.74 (Astro) to global clients list
rlm_sql (202.172.107.74): Client "Astro" (sql) added
rlm_sql (sql): Adding client 202.172.107.75 (VM2) to global clients list
rlm_sql (202.172.107.75): Client "VM2" (sql) added
rlm_sql (sql): Adding client 203.23.236.80 (Raven) to global clients list
rlm_sql (203.23.236.80): Client "Raven" (sql) added
rlm_sql (sql): Adding client 203.23.236.2 (3G-LNS) to global clients list
rlm_sql (203.23.236.2): Client "3G-LNS" (sql) added
rlm_sql (sql): Adding client 124.254.72.146 (ISPOne-radius-1) to global clients list
rlm_sql (124.254.72.146): Client "ISPOne-radius-1" (sql) added
rlm_sql (sql): Adding client 124.254.72.147 (ISPOne-radius-2) to global clients list
rlm_sql (124.254.72.147): Client "ISPOne-radius-2" (sql) added
rlm_sql (sql): Adding client 203.194.28.131 (SOUL1) to global clients list
rlm_sql (203.194.28.131): Client "SOUL1" (sql) added
rlm_sql (sql): Adding client 10.20.20.2 (ADSL-LNS) to global clients list
rlm_sql (10.20.20.2): Client "ADSL-LNS" (sql) added
rlm_sql (sql): Adding client 203.194.28.132 (SOUL2) to global clients list
rlm_sql (203.194.28.132): Client "SOUL2" (sql) added
rlm_sql (sql): Adding client 203.194.56.120 (SOUL3) to global clients list
rlm_sql (203.194.56.120): Client "SOUL3" (sql) added
rlm_sql (sql): Adding client 203.194.56.121 (SOUL4) to global clients list
rlm_sql (203.194.56.121): Client "SOUL4" (sql) added
rlm_sql (sql): Adding client 203.194.59.120 (SOUL5) to global clients list
rlm_sql (203.194.59.120): Client "SOUL5" (sql) added
rlm_sql (sql): Adding client 203.194.59.121 (SOUL6) to global clients list
rlm_sql (203.194.59.121): Client "SOUL6" (sql) added
rlm_sql (sql): Adding client 203.221.163.160 (SOUL7) to global clients list
rlm_sql (203.221.163.160): Client "SOUL7" (sql) added
rlm_sql (sql): Adding client 203.221.11.41 (SOUL8) to global clients list
rlm_sql (203.221.11.41): Client "SOUL8" (sql) added
rlm_sql (sql): Adding client 203.194.23.101 (SOUL9) to global clients list
rlm_sql (203.194.23.101): Client "SOUL9" (sql) added
rlm_sql (sql): Adding client 127.0.0.1 (localhost) to global clients list
rlm_sql (127.0.0.1): Client "localhost" (sql) added
rlm_sql (sql): Adding client 203.23.236.121 (new-titan) to global clients list
rlm_sql (203.23.236.121): Client "new-titan" (sql) added
rlm_sql (sql): Adding client 203.23.236.146 (ADSL-LNS) to global clients list
rlm_sql (203.23.236.146): Client "ADSL-LNS" (sql) added
rlm_sql (sql): Adding client 203.23.236.66 (Angel) to global clients list
rlm_sql (203.23.236.66): Client "Angel" (sql) added
rlm_sql (sql): Adding client 202.172.107.251 (ADSL-LNS) to global clients list
rlm_sql (202.172.107.251): Client "ADSL-LNS" (sql) added
rlm_sql (sql): Adding client 192.168.10.195 (Station Eris) to global clients list
rlm_sql (192.168.10.195): Client "Station Eris" (sql) added
rlm_sql (sql): Adding client 203.23.236.30 (NBN-LNS) to global clients list
rlm_sql (203.23.236.30): Client "NBN-LNS" (sql) added
rlm_sql (sql): Adding client 203.23.236.46 (ADSL-LNS) to global clients list
Ignoring duplicate client 203.23.236.46
rlm_sql (203.23.236.46): Client "ADSL-LNS" (sql) added
rlm_sql (sql): Adding client 203.23.236.58 (NBN-LNS) to global clients list
rlm_sql (203.23.236.58): Client "NBN-LNS" (sql) added
rlm_sql (sql): Adding client 203.23.236.154 (ADSL-LNS) to global clients list
rlm_sql (203.23.236.154): Client "ADSL-LNS" (sql) added
rlm_sql (sql): Adding client 192.168.10.202 (crimson) to global clients list
rlm_sql (192.168.10.202): Client "crimson" (sql) added
rlm_sql (sql): Adding client 203.23.236.54 (ADSL-LNS) to global clients list
rlm_sql (203.23.236.54): Client "ADSL-LNS" (sql) added
rlm_sql (sql): Adding client 192.168.10.205 (Station Galaxy) to global clients list
rlm_sql (192.168.10.205): Client "Station Galaxy" (sql) added
rlm_sql (sql): Adding client 203.23.236.50 (NBN-LNS) to global clients list
rlm_sql (203.23.236.50): Client "NBN-LNS" (sql) added
rlm_sql (sql): Adding client 10.10.100.2 (NBN-LNS-2) to global clients list
rlm_sql (10.10.100.2): Client "NBN-LNS-2" (sql) added
rlm_sql (sql): Adding client 10.10.200.2 (NBN-LNS-2) to global clients list
rlm_sql (10.10.200.2): Client "NBN-LNS-2" (sql) added
rlm_sql (sql): Adding client 10.10.100.5 (NBN-LNS-2) to global clients list
rlm_sql (10.10.100.5): Client "NBN-LNS-2" (sql) added
rlm_sql (sql): Adding client 10.10.200.5 (NBN-LNS-2) to global clients list
rlm_sql (10.10.200.5): Client "NBN-LNS-2" (sql) added
rlm_sql (sql): Adding client 203.29.125.11 (noc3) to global clients list
rlm_sql (203.29.125.11): Client "noc3" (sql) added
rlm_sql (sql): Adding client 203.23.236.11 (NBN-LNS-2) to global clients list
rlm_sql (203.23.236.11): Client "NBN-LNS-2" (sql) added
rlm_sql (sql): Adding client 203.23.237.13 (NBN-LNS-3) to global clients list
rlm_sql (203.23.237.13): Client "NBN-LNS-3" (sql) added
rlm_sql (sql): Adding client 192.168.10.208 (behemoth) to global clients list
rlm_sql (192.168.10.208): Client "behemoth" (sql) added
rlm_sql (sql): Adding client 203.23.237.12 (NBN-LNS-2) to global clients list
rlm_sql (203.23.237.12): Client "NBN-LNS-2" (sql) added
rlm_sql (sql): Adding client 202.172.100.9 (NBN-LNS) to global clients list
rlm_sql (202.172.100.9): Client "NBN-LNS" (sql) added
rlm_sql (sql): Adding client 202.172.100.35 (NBN-LNS) to global clients list
rlm_sql (202.172.100.35): Client "NBN-LNS" (sql) added
rlm_sql (sql): Adding client 203.23.237.11 (NBN-LNS) to global clients list
rlm_sql (203.23.237.11): Client "NBN-LNS" (sql) added
rlm_sql (sql): Adding client 192.168.10.215 (radius01.syd1) to global clients list
rlm_sql (192.168.10.215): Client "radius01.syd1" (sql) added
rlm_sql (sql): Adding client 192.168.10.222 (radius02.syd1) to global clients list
rlm_sql (192.168.10.222): Client "radius02.syd1" (sql) added
rlm_sql (sql): Released connection (0)
# Instantiating module "sqlippool" from file /etc/raddb/mods-enabled/sqlippool
Ignoring "allocate_clear_timeout = 1", forcing to "allocate_clear_timeout = 1"
# Instantiating module "detail.my-company.net.au" from file /etc/raddb/mods-enabled/detail.my-company.net.au
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/raddb/radiusd.conf
} # server
server combined { # from file /etc/raddb/sites-enabled/combined-walled-garden
# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type CHAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
# Loading preacct {...}
# Loading accounting {...}
# Loading session {...}
# Loading post-auth {...}
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
} # server combined
server combined-nbn { # from file /etc/raddb/sites-enabled/combined-walled-garden-nbn
# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type CHAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
# Loading accounting {...}
# Loading session {...}
# Loading post-auth {...}
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
} # server combined-nbn
server coa { # from file /etc/raddb/sites-enabled/coa
# Loading recv-coa {...}
# Loading send-coa {...}
} # server coa
server read-detail.my-company.net.au { # from file /etc/raddb/sites-enabled/decoupled-accounting-my-company
# Loading preacct {...}
# Loading accounting {...}
} # server read-detail.my-company.net.au
server status { # from file /etc/raddb/sites-enabled/status
# Loading authorize {...}
Compiling Autz-Type Status-Server for attr Autz-Type
} # server status
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "control"
listen {
socket = "/var/run/radiusd/radiusd.sock"
mode = "rw"
peercred = yes
}
}
listen {
type = "coa"
virtual_server = "coa"
ipaddr = *
port = 3799
client radius01.syd1 {
ipaddr = 192.168.10.215
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Ignoring duplicate client 192.168.10.215
client radius02.syd1 {
ipaddr = 192.168.10.222
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Ignoring duplicate client 192.168.10.222
}
listen {
type = "auth"
ipaddr = *
port = 1815
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = *
port = 1816
}
listen {
type = "auth"
ipaddr = *
port = 1820
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = *
port = 1821
}
listen {
type = "detail"
listen {
filename = "/var/log/radius/radacct/detail-*:*"
load_factor = 70
poll_interval = 1
retry_interval = 30
one_shot = no
track = yes
}
}
listen {
type = "status"
ipaddr = 127.0.0.1
port = 18121
client admin {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
}
Listening on command file /var/run/radiusd/radiusd.sock
Listening on coa address * port 3799 bound to server coa
Listening on auth address * port 1815 bound to server combined
Listening on acct address * port 1816 bound to server combined
Listening on auth address * port 1820 bound to server combined-nbn
Listening on acct address * port 1821 bound to server combined-nbn
Listening on detail file /var/log/radius/radacct/detail-*:* as server read-detail.my-company.net.au
Listening on status address 127.0.0.1 port 18121 bound to server status
Ready to process requests
2
1
Hello,
I have a Sophos with 3 wlan / the Sophos can do only 1 radius server (production server).
first I wanted to use realms, then I saw nas-identifier
depending the nas-identifier , I want to use a different auth-host.
now I wrote in the default site
authorize {
#
filter_username
preprocess
if(NAS-Identifier == "wlan1") {
wlan1
}
elsif (NAS-Identifier == "wlan2") {
wlan2
}
elsif (NAS-Identifier == “wlan3") {
wlan3
}
where do I do the policy for wlanX … to set the auth-host and how ?
Mit herzlichen Grüßen und bleiben Sie gesund!
i.A. Daniel Schwarting
[cid:logo_2016.png@4D1BF87E.0001]
[cid:DocuWare_3monate_signatur.gif@C13BFCE4.0002]<https://www.system.ag/docuware-angebot>
[http://landing.atdata.de/mail/hr.gif]
at data Infrastruktur GmbH
Funktionierende IT-Lösungen
Robert-Bosch-Straße 7
88487 Mietingen Fon +49 (7392) 91396-0
Fax +49 (7392) 91396-10 info(a)atdata.de <mailto:info@atdata.de>
<http://www.atdata.de/> SYSTEM AG
Für IT-Lösungen
Auelsweg 16
53797 Lohmar Fon +49 (2246) 9202-0
Fax +49 (2246) 9202-90
info(a)system.ag
<mailto:info@system.ag>www.system.ag <http://www.system.ag/>
[http://landing.atdata.de/mail/hr.gif]
at data Infrastruktur GmbH ist vertreten in Aulendorf - Rastatt - Mietingen - Köln - Bonn - Rottenburg - Kaufering - Marquartstein - Albstadt
SYSTEM AG ist vertreten in Köln - Bonn - Essen - Bremen - Castrop-Rauxel - Münster - Wiesbaden - Siegen - Göttingen – Giessen
[http://landing.atdata.de/mail/hr.gif]
[cid:Facebook32px.gif@295027EF.0003]<https://www.facebook.com/atdatagmbh> [cid:Twitter32px.gif@D69D1FB8.0004] <https://twitter.com/atdatagmbh> [cid:XING32px.gif@5397C277.0005] <https://www.xing.com/companies/atdatagmbh> [cid:YouTube32px.gif@9247124A.0006] <https://www.youtube.com/user/atdatagmbh> [cid:Instagram_32px.png@A4727509.0007] <https://www.instagram.com/systemag_atdata/> [cid:linkedin-icon_43_px.png@CB6719A2.0008] <https://www.linkedin.com/company/system-ag-f%C3%BCr-it-l%C3%B6sungen-data-g…>
Geschäftsführer: Christoph Szokolai, Patrick Schindler, Amtsgericht Mannheim: HRB 521717, Umsatzsteuer-ID Nr: DE183783838
Unsere Informationen zum Datenschutz finden Sie hier<https://www.system.ag/datenschutz>.
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese Nachricht irrtümlich
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie
diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe
dieser E-Mail ist nicht gestattet. [cid:s10_logo.jpg@7D460E71.0009]
3
2
Hi,
I have a FR setup working fine for wireless clients with either
EAP-TLS (computer certificate) or EAP-PEAP (user credentials validated
by winbind/AD).
I'm trying to expand on that and have wired clients authenticate via
802.1X with EAP-TLS (computer certificate).
In my test I'm using the same Windows client that properly
authenticates wirelessly with EAP-TLS. I configured its wired
interface to use 802.1X with the same local certificate.
The FR log indeed shows a "Received Access-Request" which is identical
to what I see when it connects wirelessly, except of course for the
calling station's MAC addr.
The request log also finishes in a similar way with:
(38) Found Auth-Type = eap
(38) # Executing group from file /etc/raddb/sites-enabled/default
(38) authenticate {
(38) eap: Peer sent packet with method EAP Identity (1)
(38) eap: Calling submodule eap_tls to process data
(38) eap_tls: Initiating new TLS session
(38) eap_tls: Setting verify mode to require certificate from client
(38) eap_tls: [eaptls start] = request
(38) eap: Sending EAP Request (code 1) ID 3 length 6
(38) eap: EAP session adding &reply:State = 0x5bf4e1345bf7eccc
(38) [eap] = handled
(38) } # authenticate = handled
(38) Using Post-Auth-Type Challenge
(38) # Executing group from file /etc/raddb/sites-enabled/default
(38) Challenge { ... } # empty sub-section is ignored
(38) Sent Access-Challenge Id 6 from 10.215.144.91:1812 to
10.215.110.190:49154 length 0
(38) EAP-Message = 0x010300060d20
(38) Message-Authenticator = 0x00000000000000000000000000000000
(38) State = 0x5bf4e1345bf7eccc1b644b2a242dee88
(38) Finished request
However, FR keeps receiving "Access-Request" messages from the same
station without the "State" field.
So, could it be that the client is not responding properly (or
ignoring/denying) FR's "Access-Challenge"?
What should I be looking for and where (I suspect it's all on the
client, but I'd like to make sure I don't need to do anything else in
FR)?
Would it be useful if I posted the full "Access-Request" log?
If so, one would be enough if subsequent request messages are the
same, I guess (except for msg ID of course).
Regards,
Vieri
2
5
Hi
Below is my-setup of testing EAP-FAST/EAP-MSCHAPv2 with cross-over cable
connected between supplicant's client and hostapd/freeradius. Note, both
hostapd and freeradius are running on host - Ubuntu 16.04. Also attached
log of freeradius.
<wpa_supplicant(v2.9)<--->Authenticator(hostapd)<----->Authentication
server(freeradius v3.0.15).
By the way, wpa_suppliant is not enabled for CONFIG_EAP_FAST support and
default to gnuTLS. I have re-compiled it, to support openssl (1.1.0) and
enabled EAP_FAST for testing.
The question is: I am successfully testing EAP-PEAP/EAP-MSCHAPv2 and
EAP-TTLS/EAP-MSCHAPv2. But, fails in EAP-FAST/EAP-MSCHAPv2.
Please let me know if EAP-MSCHAPv2 is supported in freeradius with
wpa_supplicant communication.
Below is wpa_supplincant's configuration:
-------------
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=0
network=
{ key_mgmt=IEEE8021X
eap=FAST anonymous_identity="anonymous"
identity="user2"
password="user222"
phase1="fast_provisioning=1"
phase2="auth=MSCHAPV2"
pac_file="/tmp/wpa_supplicant.eap-fast-pac"
ca_cert="/tmp/wpa/ca.pem" eapol_flags=0
}
--------------
Below is partial output where error occurs during inner tunnel
authentication:
----------------
7) mschap: Found Cleartext-Password, hashing to create NT-Password
(7) mschap: Found Cleartext-Password, hashing to create LM-Password
(7) mschap: Creating challenge hash with username: user2
(7) mschap: Client is using MS-CHAPv2
*(7) mschap: ERROR: MS-CHAP2-Response is incorrect*(7) [mschap] = reject
(7) } # authenticate = reject
(7) eap: Sending EAP Failure (code 4) ID 147 length 4
(7) eap: Freeing handler
(7) [eap] = reject
(7) } # authenticate = reject
(7) Failed to authenticate the user
(7) Using Post-Auth-Type Reject
(7) # Executing group from file /etc/freeradius/sites-enabled/inner-tunnel
(7) Post-Auth-Type REJECT
{ (7) attr_filter.access_reject: EXPAND %\{User-Name}
(7) attr_filter.access_reject: --> user2
(7) attr_filter.access_reject: Matched entry DEFAULT at line 11
(7) [attr_filter.access_reject] = updated
(7) update outer.session-state
{ (7) &Module-Failure-Message := &request:Module-Failure-Message -> *'mschap:
MS-CHAP2-Response is incorrect' (7) }*
# update outer.session-state = noop
(7) } # Post-Auth-Type REJECT = updated
(7) } # server inner-tunnel
(7) Virtual server sending reply
(7) Reply-Message = "Hello, user2"
(7) MS-CHAP-Error = "\223E=691 R=1 C=5246972f1401f7122b3a9da2f0c28f25 V=3
M=Authentication failed"
(7) EAP-Message = 0x04930004
(7) Message-Authenticator = 0x00000000000000000000000000000000
(7) eap_fast: Got tunneled Access-Reject
(7) eap_fast: Reject
--------------
Below are reference about EAP-FAST limitation with freeradius, please
clarify:
http://w1.fi/cgit/hostap/plain/wpa_supplicant/eap_testing.txt (test report
of wpa_supplincant<->hostapd<-->freeradius)
https://networkradius.com/doc/FreeRADIUS-Implementation-Ch6.pdf (page 46
says it is developed by Cisco and not widely used outside of Cisco
environment).
Thanks & Regards
Manjunatha Srinivasan N
2
2
HI!
I'm running a Wifi access point with hostapd 2.9 and FreeRADIUS 3.0.22
[1] running on raspberry pi armv6 (32-bit) with openSUSE Tumbleweed
(kernel 5.12.3). OpenLDAP (Æ-DIR) is used as user management backend.
Client is also a Laptop with openSUSE Tumbleweed x86_64 and the usual
Network Manager setup with WPA2 with EAP-TTLS/PAP.
In general the configuration seems to work and I had no issues with 3.0.21.
But with 3.0.22 every now and then it does not work anymore. Restarting
radiusd "fixes" it for some time. Unfortunately I did not find a way to
easily reproduce it.
In syslog I see these messages (first line is the last good case before
failure):
2021-05-21T17:24:13.571211+00:00 ap1 radiusd[1728]: (13) Login OK:
[miwi] (from client localhost port 1 cli 84-EF-18-F7-9E-6E)
2021-05-21T18:18:31.765761+00:00 ap1 radiusd[1728]: (20) Invalid user
(ldap: Bind with (anonymous) to ldaps://ae-dir.hv.local:636 failed:
Local error): [miwi] (from client localhost port 0 via TLS tunnel)
2021-05-21T18:18:31.772668+00:00 ap1 radiusd[1728]: (20) Login
incorrect (ldap: Bind with (anonymous) to ldaps://ae-dir.hv.local:636
failed: Local error): [miwi] (from client localhost port 0 via TLS tunnel)
2021-05-21T18:18:31.775870+00:00 ap1 radiusd[1728]: (20) Login incorrect
(eap: Failed continuing EAP TTLS (21) session. EAP sub-module failed):
[miwi] (from client localhost port 1 cli 84-
>From the above I suspect radiusd does not properly properly reconnect as
configured with SASL/EXTERNAL bind (using its EAP-TLS server cert as
client cert) probably after reaching idle connection timeout. Instead it
seems to use an anonymous bind.
Any clue what's going on here?
Ciao, Michael.
[1]
https://build.opensuse.org/package/show/home:stroeder:iam/freeradius-server
2
4
Hello Freeradius Users,
I'm a new Freeradius user, and I am setting up a for Radius server for
LDAP/GSuite Authorization with WiFi 802.11x (WPA2Enterprise) and
EAP-TTLS/PAP. The good news is I have all that working, at least for Apple
clients; Windows & Android tests pending.
The network is in a School environment and the Student's devices are BYOD
Laptops, Tablets & Phones, and it's not scalable to installing client
certificates for my own CA, so I do not want to use EAP-TLS.
I'd like to create a Certificate (Certificate Signing Request) for a CA
like Comodo (or other suggested) to create a Public DNS (I have a public
domain) signed certificate for use with the EAP-TTLS. I've looked in the
docs and user groups and have not seen documentation on how to do this.
It's possible I missed it.
Could someone please point me to some documents/sites that describe how to
make a CSR for a Certificate that will be compatible with OSX and MS
clients?
Thanks in advance!
Dean.
2
2