You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Freeradius 3.2.3, the complete configuration you can see at debug below. I setup freeradius 172.29.5.19 (int IP 10.250.0.2) as proxy, with Radsec as the first of home servers. This part of configuration is below
At the start, freeradius proxy initiates TLS connection to port 2083 of remote Radsec Radius server. Sometimes remote Radsec Radius stops the session by sending TCP FIN and RST packets and at that time I see in the logs
Info: ... shutting down socket proxy (10.250.0.2, 53879) -> home_server (44.238.1.2, 2083) (1 of 16)
Info: ... adding new socket proxy (10.250.0.2, 38163) -> home_server (44.238.1.2, 2083) (1 of 16)
After that, freeradius usually reinitiates TLS session to remote Radsec Radius and continues to work fine. But sometimes something happens during TLS initialization and freeradius completely hangs. When freeradius hangs I don't see anything in the logs. If I start tcpdump at that time, I see only access-requests from clients, but freeradius answers nothing. I must restart freeradius to repair it. The issue happens a couple per day and it's hard to catch it.
I attached below debug with -X, I stopped freeradius about two minutes after it had hanged. During those two minutes, there was a couple of dozens of access-requests, but freeradius didn't answer at all. Here is also wireshark screenshot of that moment
Also, I have to add, that when freeradius works fine I see
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) recv TLS 1.3 Handshake, NewSessionTicket
(0) (TLS) Handshake state - Client SSLv3/TLS read server session ticket
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) recv TLS 1.3 Handshake, NewSessionTicket
(0) (TLS) Handshake state - Client SSLv3/TLS read server session ticket
(0) (TLS) recv TLS 1.3 Handshake, NewSessionTicket
(0) Marking home server 44.238.1.2 port 2083 alive
But before it hangs, I see almost the same logs, but without the last string
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) recv TLS 1.3 Handshake, NewSessionTicket
(0) (TLS) Handshake state - Client SSLv3/TLS read server session ticket
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) recv TLS 1.3 Handshake, NewSessionTicket
(0) (TLS) Handshake state - Client SSLv3/TLS read server session ticket
Described hang seems like a bug, please take a look. Thanks in advance!
Log output from the FreeRADIUS daemon
FreeRADIUS Version 3.2.3
Copyright (C) 1999-2022 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 /opt/share/freeradius/dictionary
including dictionary file /opt/share/freeradius/dictionary.dhcp
including dictionary file /opt/share/freeradius/dictionary.vqp
including dictionary file /opt/etc/raddb/dictionary
including configuration file /opt/etc/raddb/radiusd.conf
including configuration file /opt/etc/raddb/proxy.conf
including configuration file /opt/etc/raddb/clients.conf
including files in directory /opt/etc/raddb/mods-enabled/
including configuration file /opt/etc/raddb/mods-enabled/attr_filter
including configuration file /opt/etc/raddb/mods-enabled/radutmp
including configuration file /opt/etc/raddb/mods-enabled/preprocess
including configuration file /opt/etc/raddb/mods-enabled/soh
including configuration file /opt/etc/raddb/mods-enabled/pap
including configuration file /opt/etc/raddb/mods-enabled/files
including configuration file /opt/etc/raddb/mods-enabled/date
including configuration file /opt/etc/raddb/mods-enabled/dynamic_clients
including configuration file /opt/etc/raddb/mods-enabled/unpack
including configuration file /opt/etc/raddb/mods-enabled/always
including configuration file /opt/etc/raddb/mods-enabled/expr
including configuration file /opt/etc/raddb/mods-enabled/echo
including configuration file /opt/etc/raddb/mods-enabled/realm
including configuration file /opt/etc/raddb/mods-enabled/exec
including configuration file /opt/etc/raddb/mods-enabled/logintime
including configuration file /opt/etc/raddb/mods-enabled/utf8
including configuration file /opt/etc/raddb/mods-enabled/eap
including configuration file /opt/etc/raddb/mods-enabled/detail
including configuration file /opt/etc/raddb/mods-enabled/sradutmp
including configuration file /opt/etc/raddb/mods-enabled/expiration
including configuration file /opt/etc/raddb/mods-enabled/detail.log
including configuration file /opt/etc/raddb/mods-enabled/linelog
including configuration file /opt/etc/raddb/mods-enabled/mschap
including configuration file /opt/etc/raddb/mods-enabled/cache_eap
including files in directory /opt/etc/raddb/policy.d/
including configuration file /opt/etc/raddb/policy.d/operator-name
including configuration file /opt/etc/raddb/policy.d/dhcp
including configuration file /opt/etc/raddb/policy.d/debug
including configuration file /opt/etc/raddb/policy.d/filter
including configuration file /opt/etc/raddb/policy.d/control
including configuration file /opt/etc/raddb/policy.d/accounting
including configuration file /opt/etc/raddb/policy.d/canonicalization
including configuration file /opt/etc/raddb/policy.d/eap
including configuration file /opt/etc/raddb/policy.d/cui
including files in directory /opt/etc/raddb/sites-enabled/
including configuration file /opt/etc/raddb/sites-enabled/inner-tunnel
including configuration file /opt/etc/raddb/sites-enabled/default
main {
security {
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 = 120
cleanup_delay = 0
max_requests = 163840
postauth_client_lost = no
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
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 0.300000
status_server = yes
allow_vulnerable_openssl = "no"
}
}
Ignoring "reject_delay = 0.300000", forcing to "reject_delay = 1.000000"
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 securew2-real-1 {
nonblock = no
ipaddr = 34.208.247.156
port = 1918
type = "auth"
secret = <<<secret >>>
response_window = 4.000000
response_timeouts = 2
max_outstanding = 65536
zombie_period = 3
status_check = "request"
ping_interval = 30
check_interval = 5
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
username = "test_rad_user"
password = "really secret"
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
recv_coa {
}
}
Ignoring "ping_interval = 5", forcing to "ping_interval = 6"
Ignoring "zombie_period = 3", forcing to "zombie_period = 4"
home_server securew2-real-2 {
nonblock = no
ipaddr = 44.235.57.40
port = 1918
type = "auth"
secret = <<<secret >>>
response_window = 4.000000
response_timeouts = 2
max_outstanding = 65536
zombie_period = 3
status_check = "request"
ping_interval = 30
check_interval = 5
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
username = "test_rad_user"
password = "really secret"
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
recv_coa {
}
}
Ignoring "ping_interval = 5", forcing to "ping_interval = 6"
Ignoring "zombie_period = 3", forcing to "zombie_period = 4"
home_server radius-proxy-socat-aws-eu-west1 {
nonblock = no
ipaddr = 34.251.235.112
port = 1918
type = "auth"
secret = <<<secret >>>
response_window = 4.000000
response_timeouts = 2
max_outstanding = 65536
zombie_period = 3
status_check = "request"
ping_interval = 30
check_interval = 5
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
username = "test_rad_user"
password = "really secret"
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
recv_coa {
}
}
Ignoring "ping_interval = 5", forcing to "ping_interval = 6"
Ignoring "zombie_period = 3", forcing to "zombie_period = 4"
home_server radius-proxy-socat-gcp-europe-north1 {
nonblock = no
ipaddr = 34.88.252.90
port = 1918
type = "auth"
secret = <<<secret >>>
response_window = 4.000000
response_timeouts = 2
max_outstanding = 65536
zombie_period = 3
status_check = "request"
ping_interval = 30
check_interval = 5
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
username = "test_rad_user"
password = "really secret"
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
recv_coa {
}
}
Ignoring "ping_interval = 5", forcing to "ping_interval = 6"
Ignoring "zombie_period = 3", forcing to "zombie_period = 4"
home_server securew2-radsec-global {
nonblock = no
ipaddr = 44.238.1.2
port = 2083
type = "auth"
proto = "tcp"
response_window = 4.000000
response_timeouts = 2
max_outstanding = 65536
zombie_period = 3
status_check = "none"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 600
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
recv_coa {
}
}
tls {
verify_depth = 0
pem_file_type = yes
private_key_file = "/opt/etc/raddb/certs/ssl/radius-proxy.myo.com.pany-radsec.key"
certificate_file = "/opt/etc/raddb/certs/ssl/radius-proxy.myo.com.pany-radsec.crt"
ca_file = "/opt/etc/raddb/certs/ssl/securew2_radsec_ca.pem"
fragment_size = 8192
include_length = yes
check_crl = no
ca_path_reload_interval = 0
ecdh_curve = "prime256v1"
tls_max_version = "1.3"
tls_min_version = "1.3"
}
Ignoring "zombie_period = 3", forcing to "zombie_period = 4"
home_server local-radius {
nonblock = no
virtual_server = "default"
port = 0
response_window = 30.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 40
status_check = "none"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
recv_coa {
}
}
realm LOCAL {
}
home_server_pool remote_radius_failover {
type = fail-over
home_server = securew2-radsec-global
home_server = securew2-real-1
home_server = securew2-real-2
home_server = radius-proxy-socat-aws-eu-west1
home_server = radius-proxy-socat-gcp-europe-north1
}
realm company.com {
auth_pool = remote_radius_failover
nostrip
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = <<<secret >>>
nas_type = "other"
proto = "*"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client localhost_ipv6 {
ipv6addr = ::1
require_message_authenticator = no
secret = <<<secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client vx9000 {
ipaddr = 172.16.0.0/12
require_message_authenticator = no
secret = <<<secret >>>
limit {
max_connections = 50
lifetime = 0
idle_timeout = 30
}
}
Ignoring "reject_delay = 1.000000", forcing to "reject_delay = 0.000000"
Found debugger attached
# Creating Auth-Type = mschap# Creating Auth-Type = eap# Creating Auth-Type = PAP# Creating Auth-Type = MS-CHAP
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_attr_filter# Loading module "attr_filter.post-proxy" from file /opt/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/opt/etc/raddb/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /opt/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/opt/etc/raddb/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /opt/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/opt/etc/raddb/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /opt/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/opt/etc/raddb/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /opt/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/opt/etc/raddb/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_radutmp# Loading module "radutmp" from file /opt/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_preprocess# Loading module "preprocess" from file /opt/etc/raddb/mods-enabled/preprocess
preprocess {
huntgroups = "/opt/etc/raddb/mods-config/preprocess/huntgroups"
hints = "/opt/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_soh# Loading module "soh" from file /opt/etc/raddb/mods-enabled/soh
soh {
dhcp = yes
}
# Loaded module rlm_pap# Loading module "pap" from file /opt/etc/raddb/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_files# Loading module "files" from file /opt/etc/raddb/mods-enabled/files
files {
filename = "/opt/etc/raddb/mods-config/files/authorize"
acctusersfile = "/opt/etc/raddb/mods-config/files/accounting"
preproxy_usersfile = "/opt/etc/raddb/mods-config/files/pre-proxy"
}
# Loaded module rlm_date# Loading module "date" from file /opt/etc/raddb/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loaded module rlm_dynamic_clients# Loading module "dynamic_clients" from file /opt/etc/raddb/mods-enabled/dynamic_clients# Loaded module rlm_unpack# Loading module "unpack" from file /opt/etc/raddb/mods-enabled/unpack# Loaded module rlm_always# Loading module "reject" from file /opt/etc/raddb/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /opt/etc/raddb/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /opt/etc/raddb/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /opt/etc/raddb/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /opt/etc/raddb/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /opt/etc/raddb/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /opt/etc/raddb/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /opt/etc/raddb/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /opt/etc/raddb/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_expr# Loading module "expr" from file /opt/etc/raddb/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loaded module rlm_exec# Loading module "echo" from file /opt/etc/raddb/mods-enabled/echoexececho {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loaded module rlm_realm# Loading module "suffix" from file /opt/etc/raddb/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "exec" from file /opt/etc/raddb/mods-enabled/execexec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_logintime# Loading module "logintime" from file /opt/etc/raddb/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_utf8# Loading module "utf8" from file /opt/etc/raddb/mods-enabled/utf8# Loaded module rlm_eap# Loading module "eap" from file /opt/etc/raddb/mods-enabled/eap
eap {
default_eap_type = "tls"
timer_expire = 60
max_eap_type = 52
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 163840
}
# Loaded module rlm_detail# Loading module "detail" from file /opt/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 "sradutmp" from file /opt/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_expiration# Loading module "expiration" from file /opt/etc/raddb/mods-enabled/expiration# Loading module "auth_log" from file /opt/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 /opt/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 /opt/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 /opt/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_linelog# Loading module "linelog" from file /opt/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 /opt/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_mschap# Loading module "mschap" from file /opt/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_cache# Loading module "cache_eap" from file /opt/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
}
instantiate {
}
# Instantiating module "attr_filter.post-proxy" from file /opt/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/etc/raddb/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /opt/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/etc/raddb/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /opt/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/etc/raddb/mods-config/attr_filter/access_reject
[/opt/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay" found in filter list for realm "DEFAULT".
[/opt/etc/raddb/mods-config/attr_filter/access_reject]:11 Check item "FreeRADIUS-Response-Delay-USec" found in filter list for realm "DEFAULT".
# Instantiating module "attr_filter.access_challenge" from file /opt/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /opt/etc/raddb/mods-enabled/attr_filter
reading pairlist file /opt/etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "preprocess" from file /opt/etc/raddb/mods-enabled/preprocess
reading pairlist file /opt/etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /opt/etc/raddb/mods-config/preprocess/hints
# Instantiating module "pap" from file /opt/etc/raddb/mods-enabled/pap# Instantiating module "files" from file /opt/etc/raddb/mods-enabled/files
reading pairlist file /opt/etc/raddb/mods-config/files/authorize
reading pairlist file /opt/etc/raddb/mods-config/files/accounting
reading pairlist file /opt/etc/raddb/mods-config/files/pre-proxy
# Instantiating module "reject" from file /opt/etc/raddb/mods-enabled/always# Instantiating module "fail" from file /opt/etc/raddb/mods-enabled/always# Instantiating module "ok" from file /opt/etc/raddb/mods-enabled/always# Instantiating module "handled" from file /opt/etc/raddb/mods-enabled/always# Instantiating module "invalid" from file /opt/etc/raddb/mods-enabled/always# Instantiating module "userlock" from file /opt/etc/raddb/mods-enabled/always# Instantiating module "notfound" from file /opt/etc/raddb/mods-enabled/always# Instantiating module "noop" from file /opt/etc/raddb/mods-enabled/always# Instantiating module "updated" from file /opt/etc/raddb/mods-enabled/always# Instantiating module "suffix" from file /opt/etc/raddb/mods-enabled/realm# Instantiating module "logintime" from file /opt/etc/raddb/mods-enabled/logintime# Instantiating module "eap" from file /opt/etc/raddb/mods-enabled/eap# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/opt/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/opt/etc/raddb/certs/ssl/radius-proxy.myo.com.pany.key"
certificate_file = "/opt/etc/raddb/certs/ssl/radius-proxy.myo.com.pany.crt"
ca_file = "/opt/etc/raddb/certs/ssl/Company_SecureW2_Root_CA_chain.cer"
dh_file = "/opt/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 = "TLSv1.2"
cipher_server_preference = no
check_cert_issuer = "/O=Company/CN=Company SecureW2 Intermediate CA"
reject_unknown_intermediate_ca = no
ecdh_curve = "prime256v1"
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
}
}
tls: Setting DH parameters from /opt/etc/raddb/certs/dh - this is no longer necessary.
tls: You should comment out the 'dh_file' configuration item.
# 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 = yes
use_tunneled_reply = yes
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "detail" from file /opt/etc/raddb/mods-enabled/detail# Instantiating module "expiration" from file /opt/etc/raddb/mods-enabled/expiration# Instantiating module "auth_log" from file /opt/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/etc/raddb/mods-enabled/detail.log# Instantiating module "pre_proxy_log" from file /opt/etc/raddb/mods-enabled/detail.log# Instantiating module "post_proxy_log" from file /opt/etc/raddb/mods-enabled/detail.log# Instantiating module "linelog" from file /opt/etc/raddb/mods-enabled/linelog# Instantiating module "log_accounting" from file /opt/etc/raddb/mods-enabled/linelog# Instantiating module "mschap" from file /opt/etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "cache_eap" from file /opt/etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /opt/etc/raddb/radiusd.conf
} # server
server inner-tunnel { # from file /opt/etc/raddb/sites-enabled/inner-tunnel# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}
Ignoring "ldap" (see raddb/mods-available/README.rst)
# Loading session {...}# Loading post-proxy {...}# Loading post-auth {...}# Skipping contents of 'if' as it is always 'false' -- /opt/etc/raddb/sites-enabled/inner-tunnel:330
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
} # server inner-tunnel
server default { # from file /opt/etc/raddb/sites-enabled/default# Loading authenticate {...}
Compiling Auth-Type PAP for attr Auth-Type
Compiling Auth-Type MS-CHAP for attr Auth-Type
# Loading authorize {...}# Loading preacct {...}# Loading accounting {...}# Loading post-proxy {...}
Compiling Post-Proxy-Type Fail-Authentication for attr Post-Proxy-Type
# 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
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
listen {
type = "auth"
ipaddr = *
port = 0
limit {
max_connections = 32
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "auth"
ipv6addr = ::
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipv6addr = ::
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
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 proxy address * port 49451
Listening on proxy address :: port 50468
Ready to process requests
(0) Received Access-Request Id 103 from 172.29.1.121:33571 to 10.250.0.2:1812 length 1693
(0) User-Name = "tatjana.surname@company.com"
(0) Acct-Session-Id = "48C3651B-226BD3F410E2-1697327721"
(0) Calling-Station-Id = "22-6B-D3-F4-10-E2"
(0) Called-Station-Id = "DC-B8-08-CC-E9-91:Company-Team"
(0) Symbol-Current-ESSID = "Company-Team"
(0) Attr-26.388.35 = 0x53656375726557322d4a6574427261696e732d5465616d2d6d796f
(0) NAS-Port = 2
(0) NAS-Port-Type = Wireless-802.11
(0) Framed-MTU = 1400
(0) Service-Type = Framed-User
(0) NAS-IP-Address = 172.29.1.121
(0) NAS-Identifier = "myo505-5-0-C3651B"
(0) NAS-Port-Id = "radio2"
(0) Attr-26.388.18 = 0x3137322e32392e312e313231
(0) Attr-26.388.17 = 0x6d796f3530352d352d302d433336353142
(0) Attr-26.388.19 = 0x44432d42382d30382d43332d36352d3142
(0) Attr-26.388.32 = 0x6d796f2d6f6666696365
(0) Connect-Info = "CONNECT 1201Mbps 802.11ax"
(0) State = 0xda1e7396de187e9527e33fd672eb9d43
(0) EAP-Message = 0x020604fc0dc00000074816030305b80b0005b40005b10005ae308205aa30820392a003020102021013695c5ee77e3e205a8680f4a0f41205300d06092a864886f70d01010b0500304131123010060355040a0c094a6574427261696e73312b302906035504030c224a6574427261696e7320536563757265573220496e7465726d656469617465204341301e170d3232303932383038353430305a170d3233303932383039303432325a303031123010060355040a0c094a6574427261696e73311a301806035504030c115461746a616e6120486173656e6b616d7030820122300d06092a864886f70d01010105000382010f003082010a0282010100c32d1fe33e3119db36db608147ebdf90e06f850f48e1719a3c5b8ec76f53d272670ab73546cc1e44dc978e69ae2c3860d545bf30cc922c56839f299e108db6debd8903e2256f285fc10f5630174aa317d348fc230a5ee2e482b82181124f07e073f6df24ab8fd186f09d88a3b2e0aa8f5208e6a534468d69602d
(0) Message-Authenticator = 0x6f173a923706589590a0d0ed550fe03b
(0) session-state: No cached attributes
(0) # Executing section authorize from file /opt/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 !~/@(.+)\.(.+)$/)) {
(0) if((&User-Name =~/@/) && (&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) = notfound
(0) } # policy filter_username = notfound
(0) [preprocess] = ok
(0) [mschap] = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: Looking up realm "company.com"for User-Name = "tatjana.surname@company.com"
(0) suffix: Found realm "company.com"
(0) suffix: Adding Realm = "company.com"
(0) suffix: Proxying request from user tatjana.surname@company.com to realm company.com
(0) suffix: Preparing to proxy authentication request to realm "company.com"
(0) [suffix] = updated
(0) eap: Request is supposed to be proxied to Realm company.com. Not doing EAP.
(0) [eap] = noop
(0) files: users: Matched entry DEFAULT at line 31
(0) [files] = ok
(0) [expiration] = noop
(0) [logintime] = noop
(0) [pap] = noop
(0) } # authorize = updated
(0) Starting proxy to home server 44.238.1.2 port 2083
(0) server default {
(0) }
(TLS) Trying new outgoing proxy connection to proxy (0.0.0.0, 0) -> home_server (44.238.1.2, 2083)
Requiring Server certificate
(0) (TLS) Handshake state - before SSL initialization
(0) (TLS) Handshake state - Client before SSL initialization
(0) (TLS) send TLS 1.3 Handshake, ClientHello
(0) (TLS) Handshake state - Client SSLv3/TLS write client hello
(0) (TLS) Handshake state - Client SSLv3/TLS write client hello
(0) (TLS) recv TLS 1.3 Handshake, ServerHello
(0) (TLS) Handshake state - Client SSLv3/TLS read server hello
(0) (TLS) recv TLS 1.3 Handshake, EncryptedExtensions
(0) (TLS) Handshake state - Client TLSv1.3 read encrypted extensions
(0) (TLS) recv TLS 1.3 Handshake, CertificateRequest
(0) (TLS) Handshake state - Client SSLv3/TLS read server certificate request
(0) (TLS) recv TLS 1.3 Handshake, Certificate
(0) (TLS) Creating attributes from server certificate
(0) TLS-Cert-Serial := "3c5e63f84474253486010d18ca5916e1e4a6fc5e"
(0) TLS-Cert-Expiration := "20520621120347Z"
(0) TLS-Cert-Valid-Since := "220622120347Z"
(0) TLS-Cert-Subject := "/CN=SecureW2 Cloud RADIUS Infrastructure Root CA"
(0) TLS-Cert-Issuer := "/CN=SecureW2 Cloud RADIUS Infrastructure Root CA"
(0) TLS-Cert-Common-Name := "SecureW2 Cloud RADIUS Infrastructure Root CA"
(0) (TLS) Creating attributes from client certificate
(0) TLS-Client-Cert-Serial := "02"
(0) TLS-Client-Cert-Expiration := "241019112416Z"
(0) TLS-Client-Cert-Valid-Since := "231020112416Z"
(0) TLS-Client-Cert-Subject := "/C=NL/O=SecureW2/CN=global1-radius.securew2.com"
(0) TLS-Client-Cert-Issuer := "/CN=SecureW2 Cloud RADIUS Infrastructure Root CA"
(0) TLS-Client-Cert-Common-Name := "global1-radius.securew2.com"
(0) TLS-Client-Cert-Subject-Alt-Name-Dns := "global1-radius.securew2.com"
(0) TLS-Client-Cert-Subject-Alt-Name-Dns := "asiapacific1-radius.securew2.com"
(0) TLS-Client-Cert-Subject-Alt-Name-Dns := "europe1-radius.securew2.com"
(0) TLS-Client-Cert-Subject-Alt-Name-Dns := "oceania1-radius.securew2.com"
(0) TLS-Client-Cert-Subject-Alt-Name-Dns := "southamerica1-radius.securew2.com"
(0) TLS-Client-Cert-X509v3-Basic-Constraints += "CA:FALSE"
(0) TLS-Client-Cert-X509v3-Extended-Key-Usage += "TLS Web Server Authentication"
(0) TLS-Client-Cert-X509v3-Subject-Key-Identifier += "B8:7B:62:42:0C:68:FB:0C:91:81:2F:81:60:2E:A1:57:71:38:B6:12"
(0) TLS-Client-Cert-X509v3-Authority-Key-Identifier += "keyid:17:63:80:92:13:A6:58:B5:E9:2E:98:A8:A9:B2:8F:FB:EA:53:24:A2\n"
(0) TLS-Client-Cert-X509v3-Extended-Key-Usage-OID += "1.3.6.1.5.5.7.3.1"
Certificate chain - 1 cert(s) untrusted
(TLS) untrusted certificate with depth [1] subject name /CN=SecureW2 Cloud RADIUS Infrastructure Root CA
(TLS) untrusted certificate with depth [0] subject name /C=NL/O=SecureW2/CN=global1-radius.securew2.com
(0) (TLS) Handshake state - Client SSLv3/TLS read server certificate
(0) (TLS) recv TLS 1.3 Handshake, CertificateVerify
(0) (TLS) Handshake state - Client TLSv1.3 read server certificate verify
(0) (TLS) recv TLS 1.3 Handshake, Finished
(0) (TLS) Handshake state - Client SSLv3/TLS read finished
(0) (TLS) send TLS 1.3 ChangeCipherSpec
(0) (TLS) Handshake state - Client SSLv3/TLS write change cipher spec
(0) (TLS) send TLS 1.3 Handshake, Certificate
(0) (TLS) Handshake state - Client SSLv3/TLS write client certificate
(0) (TLS) send TLS 1.3 Handshake, CertificateVerify
(0) (TLS) Handshake state - Client SSLv3/TLS write certificate verify
(0) (TLS) send TLS 1.3 Handshake, Finished
(0) (TLS) Handshake state - Client SSLv3/TLS write finished
(0) (TLS) Handshake state - SSL negotiation finished successfully
Listening on proxy (10.250.0.2, 58137) -> home_server (44.238.1.2, 2083)
(0) Proxying request to home server 44.238.1.2 port 2083 (TLS) timeout 4.000000
(0) Sent Access-Request Id 210 from 10.250.0.2:58137 to 44.238.1.2:2083 length 1704
(0) User-Name = "tatjana.surname@company.com"
(0) Acct-Session-Id = "48C3651B-226BD3F410E2-1697327721"
(0) Calling-Station-Id = "22-6B-D3-F4-10-E2"
(0) Called-Station-Id = "DC-B8-08-CC-E9-91:Company-Team"
(0) Symbol-Current-ESSID = "Company-Team"
(0) Attr-26.388.35 = 0x53656375726557322d4a6574427261696e732d5465616d2d6d796f
(0) NAS-Port = 2
(0) NAS-Port-Type = Wireless-802.11
(0) Framed-MTU = 1400
(0) Service-Type = Framed-User
(0) NAS-IP-Address = 172.29.1.121
(0) NAS-Identifier = "myo505-5-0-C3651B"
(0) NAS-Port-Id = "radio2"
(0) Attr-26.388.18 = 0x3137322e32392e312e313231
(0) Attr-26.388.17 = 0x6d796f3530352d352d302d433336353142
(0) Attr-26.388.19 = 0x44432d42382d30382d43332d36352d3142
(0) Attr-26.388.32 = 0x6d796f2d6f6666696365
(0) Connect-Info = "CONNECT 1201Mbps 802.11ax"
(0) State = 0xda1e7396de187e9527e33fd672eb9d43
(0) EAP-Message = 0x020604fc0dc00000074816030305b80b0005b40005b10005ae308205aa30820392a003020102021013695c5ee77e3e205a8680f4a0f41205300d06092a864886f70d01010b0500304131123010060355040a0c094a6574427261696e73312b302906035504030c224a6574427261696e7320536563757265573220496e7465726d656469617465204341301e170d3232303932383038353430305a170d3233303932383039303432325a303031123010060355040a0c094a6574427261696e73311a301806035504030c115461746a616e6120486173656e6b616d7030820122300d06092a864886f70d01010105000382010f003082010a0282010100c32d1fe33e3119db36db608147ebdf90e06f850f48e1719a3c5b8ec76f53d272670ab73546cc1e44dc978e69ae2c3860d545bf30cc922c56839f299e108db6debd8903e2256f285fc10f5630174aa317d348fc230a5ee2e482b82181124f07e073f6df24ab8fd186f09d88a3b2e0aa8f5208e6a534468d69602d
(0) Message-Authenticator = 0x6f173a923706589590a0d0ed550fe03b
(0) Event-Timestamp = "Nov 10 2023 11:01:53 UTC"
(0) Proxy-State = 0x313033
(0) (TLS) send TLS 1.3 Handshake, Finished
(0) Expecting proxy response no later than 3.996873 seconds from now
Waking up in 3.9 seconds.
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) recv TLS 1.3 Handshake, NewSessionTicket
(0) (TLS) Handshake state - Client SSLv3/TLS read server session ticket
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) Handshake state - Client SSL negotiation finished successfully
(0) (TLS) recv TLS 1.3 Handshake, NewSessionTicket
(0) (TLS) Handshake state - Client SSLv3/TLS read server session ticket
EXIT(2) CALLED src/main/radiusd.c[779]. Last error was: Unknown name "TLS-Client-Cert-X509v3-Subject-Alternative-Name"
Debugger detected, raising SIGTRAP
Relevant log output from client utilities
No response
Backtrace from LLDB or GDB
No response
The text was updated successfully, but these errors were encountered:
What type of defect/bug is this?
Crash or memory corruption (segv, abort, etc...)
How can the issue be reproduced?
Freeradius 3.2.3, the complete configuration you can see at debug below. I setup freeradius 172.29.5.19 (int IP 10.250.0.2) as proxy, with Radsec as the first of home servers. This part of configuration is below
At the start, freeradius proxy initiates TLS connection to port 2083 of remote Radsec Radius server. Sometimes remote Radsec Radius stops the session by sending TCP FIN and RST packets and at that time I see in the logs
After that, freeradius usually reinitiates TLS session to remote Radsec Radius and continues to work fine. But sometimes something happens during TLS initialization and freeradius completely hangs. When freeradius hangs I don't see anything in the logs. If I start tcpdump at that time, I see only access-requests from clients, but freeradius answers nothing. I must restart freeradius to repair it. The issue happens a couple per day and it's hard to catch it.
I attached below debug with -X, I stopped freeradius about two minutes after it had hanged. During those two minutes, there was a couple of dozens of access-requests, but freeradius didn't answer at all. Here is also wireshark screenshot of that moment
Also, I have to add, that when freeradius works fine I see
But before it hangs, I see almost the same logs, but without the last string
Described hang seems like a bug, please take a look. Thanks in advance!
Log output from the FreeRADIUS daemon
Relevant log output from client utilities
No response
Backtrace from LLDB or GDB
No response
The text was updated successfully, but these errors were encountered: