Freeradius-Users
Threads by month
- ----- 2026 -----
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- 2 participants
- 27050 discussions
Hi,
I have an openssl client (FIPS) which has TLS connection with freeradius.
The following ciphers were working well in the TLS handshake.
TLS_DHE_RSA_WITH_AES_256_CBC_SHA256
TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
Things were working fine with openssl client 1.0.2. But when I upgrade the
client to openssl 3.0 - see the TLS handshake failing on the clide side
with "bad dh" error.
I see some references as "Randomly generated safe primes are not allowed by
FIPS,".
Ref:
https://docs.openssl.org/3.0/man7/EVP_PKEY-DH/#dh-and-dhx-additional-parame…
I see with "make dh" freeradius with the help of openssl - generates random
dh. I guess these randomly generated safe primes are not allowed in FIPS
from openssl 3. Guess somehow if we skip this and use only standard dh in
radius server side it should work. Any information is much appreciated.
Note: Freeradius server is using : OpenSSL 1.1.1
Thanks,
Murugesh
2
1
Hi FreeRADIUS Users,
I am currently working with a RADIUS ecosystem that includes proxies and backend servers, where the proxies forward incoming Accounting-Request packets from NAS devices directly to the backend. In case of issues with the backend servers or their dependent SQL systems, I am exploring ways to prevent the loss of accounting records and ensure reliable processing.
I have reviewed the proxy-robust-accounting <https://freeradius.org/> documentation and am considering a couple of approaches:
1. Using the detail module in FreeRADIUS to temporarily store accounting requests locally when the SQL module fails and retry processing them later. However, I am concerned about the potential impact on disk space, especially in high-traffic scenarios or during prolonged outages.
2. Forwarding accounting requests from the proxy to an external queue, such as Elasticsearch or Kafka, as an alternative to directly relying on the backend SQL servers during failure scenarios.
I would like to hear your thoughts on the feasibility of these approaches, as well as any recommendations or best practices for safeguarding accounting records in a setup involving proxies and backends.
Your guidance would be greatly appreciated.
3
4
Hello,
I have created a user like this
> select * from radcheck where id=3;
+----+----------+--------------------+----+----------+
| id | username | attribute | op | value |
+----+----------+--------------------+----+----------+
| 3 | tata | Cleartext-Password | := | passtata |
+----+----------+--------------------+----+----------+
> select * from radreply where id=3;
+----+----------+--------------+----+-------+
| id | username | attribute | op | value |
+----+----------+--------------+----+-------+
| 3 | tata | Fall-Through | = | Yes |
+----+----------+--------------+----+-------+
> select * from radusergroup;
+----+----------+-----------+----------+
| id | username | groupname | priority |
+----+----------+-----------+----------+
| 1 | tata | admin | 1 |
+----+----------+-----------+----------+
> select * from radgroupreply;
+----+-----------+-------------------------+----+----------+
| id | groupname | attribute | op | value |
+----+-----------+-------------------------+----+----------+
| 1 | admin | Tunnel-Type | == | VLAN |
| 2 | admin | Tunnel-Medium-Type | == | IEEE-802 |
| 3 | admin | Tunnel-Private-Group-Id | == | 9 |
+----+-----------+-------------------------+----+----------+
But when I make my radius test request the Access accept is sent but not the other attributes
# radtest tata passtata 127.0.0.1 1812 testing123
Sent Access-Request Id 54 from 0.0.0.0:39af to 127.0.0.1:1812 length 74
User-Name = "tata"
User-Password = "passtata"
NAS-IP-Address = 10.127.2.210
NAS-Port = 1812
Message-Authenticator = 0x00
Cleartext-Password = "passtata"
Received Access-Accept Id 54 from 127.0.0.1:714 to 127.0.0.1:14767 length 20
In my debug logs my attributes are retrieved but not sent
(2) Received Access-Request Id 54 from 127.0.0.1:14767 to 127.0.0.1:1812 length 74
(2) User-Name = "tata"
(2) User-Password = "passtata"
(2) NAS-IP-Address = 10.127.2.210
(2) NAS-Port = 1812
(2) Message-Authenticator = 0xbea8f8a6107528be29765e63e58d0a3d
(2) # Executing section authorize from file /etc/raddb/sites-enabled/default
(2) authorize {
(2) policy filter_username {
(2) if (&User-Name) {
(2) if (&User-Name) -> TRUE
(2) if (&User-Name) {
(2) if (&User-Name =~ / /) {
(2) if (&User-Name =~ / /) -> FALSE
(2) if (&User-Name =~ /@[^@]*@/ ) {
(2) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(2) if (&User-Name =~ /\.\./ ) {
(2) if (&User-Name =~ /\.\./ ) -> FALSE
(2) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(2) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(2) if (&User-Name =~ /\.$/) {
(2) if (&User-Name =~ /\.$/) -> FALSE
(2) if (&User-Name =~ /(a)\./) {
(2) if (&User-Name =~ /(a)\./) -> FALSE
(2) } # if (&User-Name) = notfound
(2) } # policy filter_username = notfound
(2) [preprocess] = ok
(2) [chap] = noop
(2) [mschap] = noop
(2) [digest] = noop
(2) suffix: Checking for suffix after "@"
(2) suffix: No '@' in User-Name = "tata", looking up realm NULL
(2) suffix: No such realm "NULL"
(2) [suffix] = noop
(2) eap: No EAP-Message, not doing EAP
(2) [eap] = noop
(2) [files] = noop
(2) sql: EXPAND %{User-Name}
(2) sql: --> tata
(2) sql: SQL-User-Name set to 'tata'
rlm_sql (sql): Reserved connection (5)
(2) sql: EXPAND SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id
(2) sql: --> SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'tata' ORDER BY id
(2) sql: Executing select query: SELECT id, username, attribute, value, op FROM radcheck WHERE username = 'tata' ORDER BY id
(2) sql: User found in radcheck table
(2) sql: Conditional check items matched, merging assignment check items
(2) sql: Cleartext-Password := "passtata"
(2) sql: EXPAND SELECT id, username, attribute, value, op FROM radreply WHERE username = '%{SQL-User-Name}' ORDER BY id
(2) sql: --> SELECT id, username, attribute, value, op FROM radreply WHERE username = 'tata' ORDER BY id
(2) sql: Executing select query: SELECT id, username, attribute, value, op FROM radreply WHERE username = 'tata' ORDER BY id
(2) sql: User found in radreply table, merging reply items
(2) sql: Fall-Through = Yes
(2) sql: EXPAND SELECT groupname FROM radusergroup WHERE username = '%{SQL-User-Name}' ORDER BY priority
(2) sql: --> SELECT groupname FROM radusergroup WHERE username = 'tata' ORDER BY priority
(2) sql: Executing select query: SELECT groupname FROM radusergroup WHERE username = 'tata' ORDER BY priority
(2) sql: User found in the group table
(2) sql: EXPAND SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = '%{SQL-Group}' ORDER BY id
(2) sql: --> SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'admin' ORDER BY id
(2) sql: Executing select query: SELECT id, groupname, attribute, Value, op FROM radgroupcheck WHERE groupname = 'admin' ORDER BY id
(2) sql: Group "admin": Conditional check items matched
(2) sql: Group "admin": Merging assignment check items
(2) sql: EXPAND SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = '%{SQL-Group}' ORDER BY id
(2) sql: --> SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'admin' ORDER BY id
(2) sql: Executing select query: SELECT id, groupname, attribute, value, op FROM radgroupreply WHERE groupname = 'admin' ORDER BY id
(2) sql: Group "admin": Merging reply items
(2) sql: Tunnel-Type == VLAN
(2) sql: Tunnel-Medium-Type == IEEE-802
(2) sql: Tunnel-Private-Group-Id == "9"
rlm_sql (sql): Released connection (5)
Need more connections to reach 10 spares
rlm_sql (sql): Opening additional connection (7), 1 of 29 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
rlm_sql_mysql: Connected to database 'radiusdb' on Localhost via UNIX socket, server version 10.9.8-MariaDB, protocol version 10
rlm_sql (sql): Closing expired connection (6) - Hit idle_timeout limit
rlm_sql_mysql: Socket destructor called, closing socket
rlm_sql (sql): You probably need to lower "min"
rlm_sql (sql): Closing expired connection (0) - Hit idle_timeout limit
rlm_sql_mysql: Socket destructor called, closing socket
(2) [sql] = ok
(2) [expiration] = noop
(2) [logintime] = noop
(2) [pap] = updated
(2) } # authorize = updated
(2) Found Auth-Type = PAP
(2) # Executing group from file /etc/raddb/sites-enabled/default
(2) Auth-Type PAP {
(2) pap: Login attempt with password
(2) pap: Comparing with "known good" Cleartext-Password
(2) pap: User authenticated successfully
(2) [pap] = ok
(2) } # Auth-Type PAP = ok
(2) # Executing section post-auth from file /etc/raddb/sites-enabled/default
(2) post-auth {
(2) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) {
(2) if (session-state:User-Name && reply:User-Name && request:User-Name && (reply:User-Name == request:User-Name)) -> FALSE
(2) update {
(2) No attributes updated for RHS &session-state:
(2) } # update = noop
(2) sql: EXPAND .query
(2) sql: --> .query
(2) sql: Using query template 'query'
rlm_sql (sql): Reserved connection (5)
(2) sql: EXPAND %{User-Name}
(2) sql: --> tata
(2) sql: SQL-User-Name set to 'tata'
(2) sql: EXPAND INSERT INTO radpostauth (username, pass, reply, authdate ) VALUES ( '%{SQL-User-Name}', '%{%{User-Password}:-%{Chap-Password}}', '%{reply:Packet-Type}', '%S.%M' )
(2) sql: --> INSERT INTO radpostauth (username, pass, reply, authdate ) VALUES ( 'tata', 'passtata', 'Access-Accept', '2025-01-18 01:21:24.187903' )
(2) sql: Executing query: INSERT INTO radpostauth (username, pass, reply, authdate ) VALUES ( 'tata', 'passtata', 'Access-Accept', '2025-01-18 01:21:24.187903' )
(2) sql: SQL query returned: success
(2) sql: 1 record(s) updated
rlm_sql (sql): Released connection (5)
(2) [sql] = ok
(2) [exec] = noop
(2) policy remove_reply_message_if_eap {
(2) if (&reply:EAP-Message && &reply:Reply-Message) {
(2) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
(2) else {
(2) [noop] = noop
(2) } # else = noop
(2) } # policy remove_reply_message_if_eap = noop
(2) if (EAP-Key-Name && &reply:EAP-Session-Id) {
(2) if (EAP-Key-Name && &reply:EAP-Session-Id) -> FALSE
(2) } # post-auth = ok
(2) Login OK: [tata] (from client localhost port 1812)
(2) Sent Access-Accept Id 54 from 127.0.0.1:1812 to 127.0.0.1:14767 length 20
(2) Finished request
Waking up in 4.9 seconds.
(2) Cleaning up request packet ID 54 with timestamp +6200 due to cleanup_delay was reached
Ready to process requests
I don't have any filters in place
# grep filt /etc/raddb/radiusd.conf
What could be the problem ?
2
2
We have been using FreeRadius for over 10 years to authenticate our PPPoE users. We are putting in a new system that will be using DHCP and would like to authentication and accounting on our DHCP clients. Being these clients may be using their own equipment, MAC address username will not be the best.
We have setup our system to use Option 82 to pass the username and password to the DHCP server. I have confirmed that the DHCP is receiving the Option 82 correctly and passing it to FreeRadius as both Agent-Circuit-Id and ADSL-Agent-Circuit-Id.
I'm currently trying to figure out the best way to take the information contained in Agent-Circuit-Id and parse that to replace both username and password on the authorize request.
Should I try to do this be writing my own ULang script in Policy.d and putting that in the start of authorize {} section?
Should I dig into doing it as a PERL script? Seems like FreeRadius is optimized for PERL and doesn't take a performance hit.
Has this been done before and I'm just not using the correct keywords in google to find it?
I have read in certain posts that modifying User-Name is not recommended. If that is the case what variable should be used and where in the config should it be changed?
Thanks
--
Thanks,
Mark mailto:mark@mailmt.com
Myakka Communications
www.Myakka.com
Serving Manatee and Sarasota Counties with High-Speed Internet for over 20 years
2
5
Dear All,
I need some guidance regarding OTP authentication via SMS.
I have setup a TACACS+ Server in which I have installed freeradius for
AAA authentication. Now I need to integrate OTP authentication via SMS
to freeradius for allowing guest users to access WiFi. As I am unable to
find the proper procedure document, any kind of guidance or help would
be appreciated.
Regards, Santosh
2
1
Hi
I hope this message finds you well.
I am writing to inform you that the issue reported in my previous email regarding the segmentation fault in FreeRADIUS v3.2.5 has already been resolved.
Please disregard the trouble report sent earlier.
Thank you for your understanding and support.
Best regards,
-----Original Message-----
From: Freeradius-Users <freeradius-users-bounces+takuto.hayakawa=soliton.co.jp(a)lists.freeradius.org> On Behalf Of 早川 拓人
Sent: Wednesday, January 15, 2025 2:56 PM
To: freeradius-users(a)lists.freeradius.org
Subject: Segmentation Fault Issue in FreeRADIUS v3.2.5
Hi!
I hope this message finds you well.
I am writing to report a critical issue we have encountered with FreeRADIUS v3.2.5. When the home server does not respond and a proxy request to the user fails, it results in a segmentation fault.
To reproduce the issue, please add the following configuration:
==========================================================================
radiusd.conf:
client redundant-2 {
ipaddr = "192.168.1.216"
secret = "testing1234"
}
==========================================================================
sites-enabled/redundant-radrelay-2:
home_server redundant-2-server {
type = acct
ipaddr = 192.168.1.216
port = 1813
secret = "testing5678"
status_check = status-server
response_window = 5
response_timeouts = 1
zombie_period = 20
}
home_server_pool redundant-2-pool {
home_server = redundant-2-server
}
realm redundant-2 {
acct_pool = redundant-2-pool
}
server redundant-2-server {
listen {
type = detail
filename = /var/data/redundant2/detail
load_factor = 30
track = yes
unlink_work_detail_keep_limit = 1000
}
accounting {
update control {
Proxy-To-Realm := "redundant-2"
}
}
}
==========================================================================
mods-enabled/redundant:
detail detail_redundant2 {
filename = /var/data/redundant2/detail
permissions = 0600
locking = yes
detail_size_limit = 1048576
detail_keep_limit_for_size = 1010
}
==========================================================================
When the RADIUS service is started and an Accounting Start packet is received, it results in a segmentation fault.
It appears that the segmentation fault occurs due to a failure to access "request->packet->code" at the following commit:
https://github.com/FreeRADIUS/freeradius-server/commit/67e58e67f7ba0efaa73c…
Please find the debug log below for your reference:
==========================================================================
freeradius thayakawa% sudo /usr/local/sbin/radiusd -X FreeRADIUS Version 3.2.5 Copyright (C) 1999-2023 The FreeRADIUS server project and contributors There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License For more information about these matters, see the file named COPYRIGHT Starting - reading configuration files ...
including dictionary file /usr/local/share/freeradius/dictionary
including dictionary file /usr/local/share/freeradius/dictionary.dhcp
including dictionary file /usr/local/share/freeradius/dictionary.vqp
including dictionary file /usr/local/etc/raddb/dictionary including configuration file /usr/local/etc/raddb/radiusd.conf including configuration file /usr/local/etc/raddb/proxy.conf including configuration file /usr/local/etc/raddb/clients.conf including files in directory /usr/local/etc/raddb/mods-enabled/
including configuration file /usr/local/etc/raddb/mods-enabled/expr
including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter
including configuration file /usr/local/etc/raddb/mods-enabled/preprocess
including configuration file /usr/local/etc/raddb/mods-enabled/linelog
including configuration file /usr/local/etc/raddb/mods-enabled/redundant
including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp
including configuration file /usr/local/etc/raddb/mods-enabled/replicate
including configuration file /usr/local/etc/raddb/mods-enabled/passwd
including configuration file /usr/local/etc/raddb/mods-enabled/detail.log
including configuration file /usr/local/etc/raddb/mods-enabled/radutmp
including configuration file /usr/local/etc/raddb/mods-enabled/unix
including configuration file /usr/local/etc/raddb/mods-enabled/digest
including configuration file /usr/local/etc/raddb/mods-enabled/always
including configuration file /usr/local/etc/raddb/mods-enabled/ntlm_auth
including configuration file /usr/local/etc/raddb/mods-enabled/realm
including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap
including configuration file /usr/local/etc/raddb/mods-enabled/unpack
including configuration file /usr/local/etc/raddb/mods-enabled/echo
including configuration file /usr/local/etc/raddb/mods-enabled/detail
including configuration file /usr/local/etc/raddb/mods-enabled/dynamic_clients
including configuration file /usr/local/etc/raddb/mods-enabled/files
including configuration file /usr/local/etc/raddb/mods-enabled/chap
including configuration file /usr/local/etc/raddb/mods-enabled/logintime
including configuration file /usr/local/etc/raddb/mods-enabled/pap
including configuration file /usr/local/etc/raddb/mods-enabled/eap
including configuration file /usr/local/etc/raddb/mods-enabled/mschap
including configuration file /usr/local/etc/raddb/mods-enabled/expiration
including configuration file /usr/local/etc/raddb/mods-enabled/soh
including configuration file /usr/local/etc/raddb/mods-enabled/date
including configuration file /usr/local/etc/raddb/mods-enabled/utf8
including configuration file /usr/local/etc/raddb/mods-enabled/exec
including files in directory /usr/local/etc/raddb/policy.d/ including configuration file /usr/local/etc/raddb/policy.d/control
including configuration file /usr/local/etc/raddb/policy.d/filter
including configuration file /usr/local/etc/raddb/policy.d/canonicalization
including configuration file /usr/local/etc/raddb/policy.d/moonshot-targeted-ids
including configuration file /usr/local/etc/raddb/policy.d/operator-name
including configuration file /usr/local/etc/raddb/policy.d/cui including configuration file /usr/local/etc/raddb/policy.d/dhcp
including configuration file /usr/local/etc/raddb/policy.d/debug
including configuration file /usr/local/etc/raddb/policy.d/abfab-tr
including configuration file /usr/local/etc/raddb/policy.d/eap including configuration file /usr/local/etc/raddb/policy.d/rfc7542
including configuration file /usr/local/etc/raddb/policy.d/accounting
including files in directory /usr/local/etc/raddb/sites-enabled/
including configuration file /usr/local/etc/raddb/sites-enabled/default
including configuration file /usr/local/etc/raddb/sites-enabled/redundant-radrelay-2
including configuration file /usr/local/etc/raddb/sites-enabled/inner-tunnel
main {
security {
allow_core_dumps = no
}
name = "radiusd"
prefix = "/usr/local"
localstatedir = "/usr/local/var"
logdir = "/usr/local/var/log/radius"
run_dir = "/usr/local/var/run/radiusd"
}
main {
name = "radiusd"
prefix = "/usr/local"
localstatedir = "/usr/local/var"
sbindir = "/usr/local/sbin"
logdir = "/usr/local/var/log/radius"
run_dir = "/usr/local/var/run/radiusd"
libdir = "/usr/local/lib"
radacctdir = "/usr/local/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
proxy_dedup_window = 1
cleanup_delay = 5
max_requests = 16384
max_fds = 512
postauth_client_lost = no
pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
checkrad = "/usr/local/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
require_message_authenticator = "auto"
limit_proxy_state = "auto"
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 {
nonblock = no
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 redundant-2-server {
nonblock = no
ipaddr = 192.168.1.216
port = 1813
type = "acct"
secret = <<< secret >>>
response_window = 5.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 20
status_check = "status-server"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
home_server_pool redundant-2-pool {
home_server = redundant-2-server
}
realm redundant-2 {
acct_pool = redundant-2-pool
}
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
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client private-network {
ipaddr = 0.0.0.0/0
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client redundant-2 {
ipaddr = 192.168.1.216
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debugger not attached
# Creating Auth-Type = mschap
# Creating Auth-Type = digest
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
radiusd: #### Instantiating modules #### modules {
# Loaded module rlm_expr
# Loading module "expr" from file /usr/local/etc/raddb/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /aeouaaaceeeeiio?uuuayAEOUsAAACEEEEIIO?UUU?"
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /usr/local/etc/raddb/mods-enabled/preprocess
preprocess {
huntgroups = "/usr/local/etc/raddb/mods-config/preprocess/huntgroups"
hints = "/usr/local/etc/raddb/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_linelog
# Loading module "linelog" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog {
filename = "/usr/local/var/log/radius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog log_accounting {
filename = "/usr/local/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_detail
# Loading module "detail_redundant2" from file /usr/local/etc/raddb/mods-enabled/redundant
detail detail_redundant2 {
filename = "/var/data/redundant2/detail"
header = "%t"
permissions = 384
locking = yes
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_radutmp
# Loading module "sradutmp" from file /usr/local/etc/raddb/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/usr/local/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_replicate
# Loading module "replicate" from file /usr/local/etc/raddb/mods-enabled/replicate
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /usr/local/etc/raddb/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loading module "auth_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail auth_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail reply_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail post_proxy_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loading module "radutmp" from file /usr/local/etc/raddb/mods-enabled/radutmp
radutmp {
filename = "/usr/local/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_unix
# Loading module "unix" from file /usr/local/etc/raddb/mods-enabled/unix
unix {
radwtmp = "/usr/local/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_digest
# Loading module "digest" from file /usr/local/etc/raddb/mods-enabled/digest
# Loaded module rlm_always
# Loading module "reject" from file /usr/local/etc/raddb/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /usr/local/etc/raddb/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /usr/local/etc/raddb/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /usr/local/etc/raddb/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /usr/local/etc/raddb/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /usr/local/etc/raddb/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /usr/local/etc/raddb/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /usr/local/etc/raddb/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /usr/local/etc/raddb/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_exec
# Loading module "ntlm_auth" from file /usr/local/etc/raddb/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_realm
# Loading module "IPASS" from file /usr/local/etc/raddb/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /usr/local/etc/raddb/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "bangpath" from file /usr/local/etc/raddb/mods-enabled/realm
realm bangpath {
format = "prefix"
delimiter = "!"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /usr/local/etc/raddb/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /usr/local/etc/raddb/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_cache
# Loading module "cache_eap" from file /usr/local/etc/raddb/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_unpack
# Loading module "unpack" from file /usr/local/etc/raddb/mods-enabled/unpack
# Loading module "echo" from file /usr/local/etc/raddb/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loading module "detail" from file /usr/local/etc/raddb/mods-enabled/detail
detail {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file /usr/local/etc/raddb/mods-enabled/dynamic_clients
# Loaded module rlm_files
# Loading module "files" from file /usr/local/etc/raddb/mods-enabled/files
files {
filename = "/usr/local/etc/raddb/mods-config/files/authorize"
acctusersfile = "/usr/local/etc/raddb/mods-config/files/accounting"
preproxy_usersfile = "/usr/local/etc/raddb/mods-config/files/pre-proxy"
}
# Loaded module rlm_chap
# Loading module "chap" from file /usr/local/etc/raddb/mods-enabled/chap
# Loaded module rlm_logintime
# Loading module "logintime" from file /usr/local/etc/raddb/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_pap
# Loading module "pap" from file /usr/local/etc/raddb/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_eap
# Loading module "eap" from file /usr/local/etc/raddb/mods-enabled/eap
eap {
default_eap_type = "md5"
timer_expire = 60
max_eap_type = 52
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 16384
dedup_key = ""
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /usr/local/etc/raddb/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loaded module rlm_expiration
# Loading module "expiration" from file /usr/local/etc/raddb/mods-enabled/expiration
# Loaded module rlm_soh
# Loading module "soh" from file /usr/local/etc/raddb/mods-enabled/soh
soh {
dhcp = yes
}
# Loaded module rlm_date
# Loading module "date" from file /usr/local/etc/raddb/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file /usr/local/etc/raddb/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_utf8
# Loading module "utf8" from file /usr/local/etc/raddb/mods-enabled/utf8
# Loading module "exec" from file /usr/local/etc/raddb/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
instantiate {
}
# Instantiating module "attr_filter.post-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/access_reject
# Instantiating module "attr_filter.access_challenge" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "preprocess" from file /usr/local/etc/raddb/mods-enabled/preprocess
reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/hints
# Instantiating module "linelog" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "log_accounting" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "detail_redundant2" from file /usr/local/etc/raddb/mods-enabled/redundant
# Instantiating module "etc_passwd" from file /usr/local/etc/raddb/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "auth_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
# Instantiating module "reply_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "reject" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "fail" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "ok" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "handled" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "invalid" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "userlock" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "notfound" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "noop" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "updated" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "IPASS" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "suffix" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "bangpath" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "realmpercent" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "ntdomain" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "cache_eap" from file /usr/local/etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
# Instantiating module "detail" from file /usr/local/etc/raddb/mods-enabled/detail
# Instantiating module "files" from file /usr/local/etc/raddb/mods-enabled/files
reading pairlist file /usr/local/etc/raddb/mods-config/files/authorize
reading pairlist file /usr/local/etc/raddb/mods-config/files/accounting
reading pairlist file /usr/local/etc/raddb/mods-config/files/pre-proxy
# Instantiating module "logintime" from file /usr/local/etc/raddb/mods-enabled/logintime
# Instantiating module "pap" from file /usr/local/etc/raddb/mods-enabled/pap
# Instantiating module "eap" from file /usr/local/etc/raddb/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
rlm_eap (EAP): Ignoring EAP method 'leap', because it is no longer supported
# 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 = "/usr/local/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/usr/local/etc/raddb/certs/server.pem"
certificate_file = "/usr/local/etc/raddb/certs/server.pem"
ca_file = "/usr/local/etc/raddb/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/usr/local/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
reject_unknown_intermediate_ca = no
ecdh_curve = "prime256v1"
disable_tlsv1 = yes
disable_tlsv1_1 = yes
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
}
}
tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1'
tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1'
tls: Setting DH parameters from /usr/local/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 = no
use_tunneled_reply = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "mschap" from file /usr/local/etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "expiration" from file /usr/local/etc/raddb/mods-enabled/expiration
} # modules
radiusd: #### Loading Virtual Servers #### server { # from file /usr/local/etc/raddb/radiusd.conf } # server server default { # from file /usr/local/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) # 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 redundant-2-server { # from file /usr/local/etc/raddb/sites-enabled/redundant-radrelay-2
# Loading accounting {...}
} # server redundant-2-server
server inner-tunnel { # from file /usr/local/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' -- /usr/local/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 = 1812
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = *
port = 1813
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 = "detail"
listen {
filename = "/var/data/redundant2/detail"
load_factor = 30
poll_interval = 1
retry_interval = 30
one_shot = no
track = yes
}
}
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 detail file /var/data/redundant2/detail as server redundant-2-server Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel Listening on proxy address * port 44103 Listening on proxy address :: port 55513 Ready to process requests detail (/var/data/redundant2/detail): Polling for detail file detail (/var/data/redundant2/detail): Detail listener state unopened waiting 0.943258 sec detail (/var/data/redundant2/detail): Polling for detail file detail (/var/data/redundant2/detail): Detail listener state unopened waiting 1.104944 sec detail (/var/data/redundant2/detail): Polling for detail file detail (/var/data/redundant2/detail): Detail listener state unopened waiting 0.828299 sec detail (/var/data/redundant2/detail): Polling for detail file detail (/var/data/redundant2/detail): Detail listener state unopened waiting 0.909490 sec detail (/var/data/redundant2/detail): Polling for detail file detail (/var/data/redundant2/detail): Detail listener state unopened waiting 0.912661 sec detail (/var/data/redundant2/detail): Polling for detail file detail (/var/data/redundant2/detail): Detail listener state unopened waiting 1.220833 sec detail (/var/data/redundant2/detail): Polling for detail file detail (/var/data/redundant2/detail): Detail listener state unopened waiting 1.118784 sec
(0) Received Accounting-Request Id 1 from 192.168.1.200:61807 to 192.168.1.204:1813 length 42
(0) User-Name = "testuser"
(0) Acct-Status-Type = Start
(0) Acct-Session-Id = "8592"
(0) # Executing section preacct from file /usr/local/etc/raddb/sites-enabled/default
(0) preacct {
(0) [preprocess] = ok
(0) policy acct_unique {
(0) update request {
(0) &Tmp-String-9 := "ai:"
(0) } # update request = noop
(0) if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) && ("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i)) {
(0) EXPAND %{hex:&Class}
(0) -->
(0) EXPAND ^%{hex:&Tmp-String-9}
(0) --> ^61693a
(0) if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) && ("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i)) -> FALSE
(0) else {
(0) update request {
(0) EXPAND %{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}
(0) --> 2ce36d08ca5e9d33e496de3dacaa4328
(0) &Acct-Unique-Session-Id := 2ce36d08ca5e9d33e496de3dacaa4328
(0) } # update request = noop
(0) } # else = noop
(0) } # policy acct_unique = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: No '@' in User-Name = "testuser", looking up realm NULL
(0) suffix: No such realm "NULL"
(0) [suffix] = noop
(0) [files] = noop
(0) } # preacct = ok
(0) # Executing section accounting from file /usr/local/etc/raddb/sites-enabled/default
(0) accounting {
(0) detail: EXPAND /usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
(0) detail: --> /usr/local/var/log/radius/radacct/192.168.1.200/detail-20250115
(0) detail: /usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d expands to /usr/local/var/log/radius/radacct/192.168.1.200/detail-20250115
(0) detail: EXPAND %t
(0) detail: --> Wed Jan 15 13:54:49 2025
(0) [detail] = ok
(0) [unix] = ok
(0) [exec] = noop
(0) attr_filter.accounting_response: EXPAND %{User-Name}
(0) attr_filter.accounting_response: --> testuser
(0) attr_filter.accounting_response: Matched entry DEFAULT at line 12
(0) [attr_filter.accounting_response] = updated
(0) policy is_redundant_partner {
(0) if ( "%{Packet-src-IP-Address}" == "192.168.1.216" ) {
(0) EXPAND %{Packet-src-IP-Address}
(0) --> 192.168.1.200
(0) if ( "%{Packet-src-IP-Address}" == "192.168.1.216" ) -> FALSE
(0) [noop] = noop
(0) } # policy is_redundant_partner = noop
(0) if (noop) {
(0) if (noop) -> TRUE
(0) if (noop) {
(0) detail_redundant2: EXPAND /var/data/redundant2/detail
(0) detail_redundant2: --> /var/data/redundant2/detail
(0) detail_redundant2: /var/data/redundant2/detail expands to /var/data/redundant2/detail
(0) detail_redundant2: EXPAND %t
(0) detail_redundant2: --> Wed Jan 15 13:54:49 2025
(0) [detail_redundant2] = ok
(0) } # if (noop) = ok
(0) } # accounting = updated
(0) Sent Accounting-Response Id 1 from 192.168.1.204:1813 to 192.168.1.200:61807 length 20
(0) Finished request
(0) Cleaning up request packet ID 1 with timestamp +6 due to done Ready to process requests detail (/var/data/redundant2/detail): Polling for detail file detail (/var/data/redundant2/detail): Renaming /var/data/redundant2/detail -> /var/data/redundant2/detail.work detail (/var/data/redundant2/detail): Read packet from /var/data/redundant2/detail.work
User-Name = "testuser"
Acct-Status-Type = Start
Acct-Session-Id = "8592"
NAS-IP-Address = 192.168.1.200
Event-Timestamp = "Jan 15 2025 13:54:49 JST"
Tmp-String-9 = "ai:"
Acct-Unique-Session-Id = "2ce36d08ca5e9d33e496de3dacaa4328"
Packet-Original-Timestamp = "Jan 15 2025 13:54:48 JST"
Acct-Delay-Time = 0
Packet-Transmit-Counter = 1
(1) # Executing section accounting from file /usr/local/etc/raddb/sites-enabled/redundant-radrelay-2
(1) accounting {
(1) update control {
(1) Proxy-To-Realm := "redundant-2"
(1) } # update control = noop
(1) } # accounting = noop
(1) Starting proxy to home server 192.168.1.216 port 1813
(1) server redundant-2-server {
(1) }
(1) Proxying request to home server 192.168.1.216 port 1813 timeout 5.000000 Waking up in 0.3 seconds.
(1) Expecting proxy response no later than 4.666454 seconds from now Waking up in 4.6 seconds.
(1) No proxy response, giving up on request and marking it done Marking home server 192.168.1.216 port 1813 as zombie (it has not responded in 5.000000 seconds).
PING: Waiting 4 seconds for response to ping
(2) Sent Status-Server Id 74 from 0.0.0.0:44103 to 192.168.1.216:1813 length 70
(2) Message-Authenticator := 0x00
(2) NAS-Identifier := "Status Check 0. Are you alive?"
PING: Next status packet in 30 seconds
(1) ERROR: Failing proxied request for user "testuser", due to lack of any response from home server 192.168.1.216 port 1813
(1) Clearing existing &reply: attributes
(1) Found Post-Proxy-Type Fail-Accounting
(1) server redundant-2-server {
(1) Post-Proxy-Type sub-section not found. Ignoring.
(1) }
(1) detail (/var/data/redundant2/detail): No response to request. Will retry in 30 seconds
(1) Finished request
(1) Cleaning up request packet ID 0 with timestamp +7 due to done Waking up in 3.9 seconds.
No response to status check 2 ID 74 for home server 192.168.1.216 port 1813
zsh: segmentation fault sudo /usr/local/sbin/radiusd -X
==========================================================================
This issue has been reported previously:
https://github.com/FreeRADIUS/freeradius-server/issues/5485
We would appreciate your prompt assistance in resolving this issue.
Thank you for your attention to this matter.
Best regards,
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
1
0
Hi!
I hope this message finds you well.
I am writing to report a critical issue we have encountered with FreeRADIUS v3.2.5. When the home server does not respond and a proxy request to the user fails, it results in a segmentation fault.
To reproduce the issue, please add the following configuration:
==========================================================================
radiusd.conf:
client redundant-2 {
ipaddr = "192.168.1.216"
secret = "testing1234"
}
==========================================================================
sites-enabled/redundant-radrelay-2:
home_server redundant-2-server {
type = acct
ipaddr = 192.168.1.216
port = 1813
secret = "testing5678"
status_check = status-server
response_window = 5
response_timeouts = 1
zombie_period = 20
}
home_server_pool redundant-2-pool {
home_server = redundant-2-server
}
realm redundant-2 {
acct_pool = redundant-2-pool
}
server redundant-2-server {
listen {
type = detail
filename = /var/data/redundant2/detail
load_factor = 30
track = yes
unlink_work_detail_keep_limit = 1000
}
accounting {
update control {
Proxy-To-Realm := "redundant-2"
}
}
}
==========================================================================
mods-enabled/redundant:
detail detail_redundant2 {
filename = /var/data/redundant2/detail
permissions = 0600
locking = yes
detail_size_limit = 1048576
detail_keep_limit_for_size = 1010
}
==========================================================================
When the RADIUS service is started and an Accounting Start packet is received, it results in a segmentation fault.
It appears that the segmentation fault occurs due to a failure to access "request->packet->code" at the following commit:
https://github.com/FreeRADIUS/freeradius-server/commit/67e58e67f7ba0efaa73c…
Please find the debug log below for your reference:
==========================================================================
freeradius thayakawa% sudo /usr/local/sbin/radiusd -X
FreeRADIUS Version 3.2.5
Copyright (C) 1999-2023 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/local/share/freeradius/dictionary
including dictionary file /usr/local/share/freeradius/dictionary.dhcp
including dictionary file /usr/local/share/freeradius/dictionary.vqp
including dictionary file /usr/local/etc/raddb/dictionary
including configuration file /usr/local/etc/raddb/radiusd.conf
including configuration file /usr/local/etc/raddb/proxy.conf
including configuration file /usr/local/etc/raddb/clients.conf
including files in directory /usr/local/etc/raddb/mods-enabled/
including configuration file /usr/local/etc/raddb/mods-enabled/expr
including configuration file /usr/local/etc/raddb/mods-enabled/attr_filter
including configuration file /usr/local/etc/raddb/mods-enabled/preprocess
including configuration file /usr/local/etc/raddb/mods-enabled/linelog
including configuration file /usr/local/etc/raddb/mods-enabled/redundant
including configuration file /usr/local/etc/raddb/mods-enabled/sradutmp
including configuration file /usr/local/etc/raddb/mods-enabled/replicate
including configuration file /usr/local/etc/raddb/mods-enabled/passwd
including configuration file /usr/local/etc/raddb/mods-enabled/detail.log
including configuration file /usr/local/etc/raddb/mods-enabled/radutmp
including configuration file /usr/local/etc/raddb/mods-enabled/unix
including configuration file /usr/local/etc/raddb/mods-enabled/digest
including configuration file /usr/local/etc/raddb/mods-enabled/always
including configuration file /usr/local/etc/raddb/mods-enabled/ntlm_auth
including configuration file /usr/local/etc/raddb/mods-enabled/realm
including configuration file /usr/local/etc/raddb/mods-enabled/cache_eap
including configuration file /usr/local/etc/raddb/mods-enabled/unpack
including configuration file /usr/local/etc/raddb/mods-enabled/echo
including configuration file /usr/local/etc/raddb/mods-enabled/detail
including configuration file /usr/local/etc/raddb/mods-enabled/dynamic_clients
including configuration file /usr/local/etc/raddb/mods-enabled/files
including configuration file /usr/local/etc/raddb/mods-enabled/chap
including configuration file /usr/local/etc/raddb/mods-enabled/logintime
including configuration file /usr/local/etc/raddb/mods-enabled/pap
including configuration file /usr/local/etc/raddb/mods-enabled/eap
including configuration file /usr/local/etc/raddb/mods-enabled/mschap
including configuration file /usr/local/etc/raddb/mods-enabled/expiration
including configuration file /usr/local/etc/raddb/mods-enabled/soh
including configuration file /usr/local/etc/raddb/mods-enabled/date
including configuration file /usr/local/etc/raddb/mods-enabled/utf8
including configuration file /usr/local/etc/raddb/mods-enabled/exec
including files in directory /usr/local/etc/raddb/policy.d/
including configuration file /usr/local/etc/raddb/policy.d/control
including configuration file /usr/local/etc/raddb/policy.d/filter
including configuration file /usr/local/etc/raddb/policy.d/canonicalization
including configuration file /usr/local/etc/raddb/policy.d/moonshot-targeted-ids
including configuration file /usr/local/etc/raddb/policy.d/operator-name
including configuration file /usr/local/etc/raddb/policy.d/cui
including configuration file /usr/local/etc/raddb/policy.d/dhcp
including configuration file /usr/local/etc/raddb/policy.d/debug
including configuration file /usr/local/etc/raddb/policy.d/abfab-tr
including configuration file /usr/local/etc/raddb/policy.d/eap
including configuration file /usr/local/etc/raddb/policy.d/rfc7542
including configuration file /usr/local/etc/raddb/policy.d/accounting
including files in directory /usr/local/etc/raddb/sites-enabled/
including configuration file /usr/local/etc/raddb/sites-enabled/default
including configuration file /usr/local/etc/raddb/sites-enabled/redundant-radrelay-2
including configuration file /usr/local/etc/raddb/sites-enabled/inner-tunnel
main {
security {
allow_core_dumps = no
}
name = "radiusd"
prefix = "/usr/local"
localstatedir = "/usr/local/var"
logdir = "/usr/local/var/log/radius"
run_dir = "/usr/local/var/run/radiusd"
}
main {
name = "radiusd"
prefix = "/usr/local"
localstatedir = "/usr/local/var"
sbindir = "/usr/local/sbin"
logdir = "/usr/local/var/log/radius"
run_dir = "/usr/local/var/run/radiusd"
libdir = "/usr/local/lib"
radacctdir = "/usr/local/var/log/radius/radacct"
hostname_lookups = no
max_request_time = 30
proxy_dedup_window = 1
cleanup_delay = 5
max_requests = 16384
max_fds = 512
postauth_client_lost = no
pidfile = "/usr/local/var/run/radiusd/radiusd.pid"
checkrad = "/usr/local/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
require_message_authenticator = "auto"
limit_proxy_state = "auto"
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 {
nonblock = no
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 redundant-2-server {
nonblock = no
ipaddr = 192.168.1.216
port = 1813
type = "acct"
secret = <<< secret >>>
response_window = 5.000000
response_timeouts = 1
max_outstanding = 65536
zombie_period = 20
status_check = "status-server"
ping_interval = 30
check_timeout = 4
num_answers_to_alive = 3
revive_interval = 300
limit {
max_connections = 16
max_requests = 0
lifetime = 0
idle_timeout = 0
}
coa {
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
home_server_pool redundant-2-pool {
home_server = redundant-2-server
}
realm redundant-2 {
acct_pool = redundant-2-pool
}
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
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client private-network {
ipaddr = 0.0.0.0/0
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client redundant-2 {
ipaddr = 192.168.1.216
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debugger not attached
# Creating Auth-Type = mschap
# Creating Auth-Type = digest
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_expr
# Loading module "expr" from file /usr/local/etc/raddb/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /aeouaaaceeeeiio?uuuayAEOUsAAACEEEEIIO?UUU?"
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /usr/local/etc/raddb/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/usr/local/etc/raddb/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /usr/local/etc/raddb/mods-enabled/preprocess
preprocess {
huntgroups = "/usr/local/etc/raddb/mods-config/preprocess/huntgroups"
hints = "/usr/local/etc/raddb/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_linelog
# Loading module "linelog" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog {
filename = "/usr/local/var/log/radius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /usr/local/etc/raddb/mods-enabled/linelog
linelog log_accounting {
filename = "/usr/local/var/log/radius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_detail
# Loading module "detail_redundant2" from file /usr/local/etc/raddb/mods-enabled/redundant
detail detail_redundant2 {
filename = "/var/data/redundant2/detail"
header = "%t"
permissions = 384
locking = yes
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_radutmp
# Loading module "sradutmp" from file /usr/local/etc/raddb/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/usr/local/var/log/radius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_replicate
# Loading module "replicate" from file /usr/local/etc/raddb/mods-enabled/replicate
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /usr/local/etc/raddb/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loading module "auth_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail auth_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail reply_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
detail post_proxy_log {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loading module "radutmp" from file /usr/local/etc/raddb/mods-enabled/radutmp
radutmp {
filename = "/usr/local/var/log/radius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_unix
# Loading module "unix" from file /usr/local/etc/raddb/mods-enabled/unix
unix {
radwtmp = "/usr/local/var/log/radius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_digest
# Loading module "digest" from file /usr/local/etc/raddb/mods-enabled/digest
# Loaded module rlm_always
# Loading module "reject" from file /usr/local/etc/raddb/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /usr/local/etc/raddb/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /usr/local/etc/raddb/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /usr/local/etc/raddb/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /usr/local/etc/raddb/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /usr/local/etc/raddb/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /usr/local/etc/raddb/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /usr/local/etc/raddb/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /usr/local/etc/raddb/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_exec
# Loading module "ntlm_auth" from file /usr/local/etc/raddb/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_realm
# Loading module "IPASS" from file /usr/local/etc/raddb/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /usr/local/etc/raddb/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "bangpath" from file /usr/local/etc/raddb/mods-enabled/realm
realm bangpath {
format = "prefix"
delimiter = "!"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /usr/local/etc/raddb/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /usr/local/etc/raddb/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_cache
# Loading module "cache_eap" from file /usr/local/etc/raddb/mods-enabled/cache_eap
cache cache_eap {
driver = "rlm_cache_rbtree"
key = "%{%{control:State}:-%{%{reply:State}:-%{State}}}"
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
# Loaded module rlm_unpack
# Loading module "unpack" from file /usr/local/etc/raddb/mods-enabled/unpack
# Loading module "echo" from file /usr/local/etc/raddb/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loading module "detail" from file /usr/local/etc/raddb/mods-enabled/detail
detail {
filename = "/usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
dates_as_integer = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file /usr/local/etc/raddb/mods-enabled/dynamic_clients
# Loaded module rlm_files
# Loading module "files" from file /usr/local/etc/raddb/mods-enabled/files
files {
filename = "/usr/local/etc/raddb/mods-config/files/authorize"
acctusersfile = "/usr/local/etc/raddb/mods-config/files/accounting"
preproxy_usersfile = "/usr/local/etc/raddb/mods-config/files/pre-proxy"
}
# Loaded module rlm_chap
# Loading module "chap" from file /usr/local/etc/raddb/mods-enabled/chap
# Loaded module rlm_logintime
# Loading module "logintime" from file /usr/local/etc/raddb/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_pap
# Loading module "pap" from file /usr/local/etc/raddb/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_eap
# Loading module "eap" from file /usr/local/etc/raddb/mods-enabled/eap
eap {
default_eap_type = "md5"
timer_expire = 60
max_eap_type = 52
ignore_unknown_eap_types = no
cisco_accounting_username_bug = no
max_sessions = 16384
dedup_key = ""
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /usr/local/etc/raddb/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loaded module rlm_expiration
# Loading module "expiration" from file /usr/local/etc/raddb/mods-enabled/expiration
# Loaded module rlm_soh
# Loading module "soh" from file /usr/local/etc/raddb/mods-enabled/soh
soh {
dhcp = yes
}
# Loaded module rlm_date
# Loading module "date" from file /usr/local/etc/raddb/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file /usr/local/etc/raddb/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_utf8
# Loading module "utf8" from file /usr/local/etc/raddb/mods-enabled/utf8
# Loading module "exec" from file /usr/local/etc/raddb/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
instantiate {
}
# Instantiating module "attr_filter.post-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/access_reject
# Instantiating module "attr_filter.access_challenge" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /usr/local/etc/raddb/mods-enabled/attr_filter
reading pairlist file /usr/local/etc/raddb/mods-config/attr_filter/accounting_response
# Instantiating module "preprocess" from file /usr/local/etc/raddb/mods-enabled/preprocess
reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/huntgroups
reading pairlist file /usr/local/etc/raddb/mods-config/preprocess/hints
# Instantiating module "linelog" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "log_accounting" from file /usr/local/etc/raddb/mods-enabled/linelog
# Instantiating module "detail_redundant2" from file /usr/local/etc/raddb/mods-enabled/redundant
# Instantiating module "etc_passwd" from file /usr/local/etc/raddb/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "auth_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
# Instantiating module "reply_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file /usr/local/etc/raddb/mods-enabled/detail.log
# Instantiating module "reject" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "fail" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "ok" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "handled" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "invalid" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "userlock" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "notfound" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "noop" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "updated" from file /usr/local/etc/raddb/mods-enabled/always
# Instantiating module "IPASS" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "suffix" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "bangpath" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "realmpercent" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "ntdomain" from file /usr/local/etc/raddb/mods-enabled/realm
# Instantiating module "cache_eap" from file /usr/local/etc/raddb/mods-enabled/cache_eap
rlm_cache (cache_eap): Driver rlm_cache_rbtree (module rlm_cache_rbtree) loaded and linked
# Instantiating module "detail" from file /usr/local/etc/raddb/mods-enabled/detail
# Instantiating module "files" from file /usr/local/etc/raddb/mods-enabled/files
reading pairlist file /usr/local/etc/raddb/mods-config/files/authorize
reading pairlist file /usr/local/etc/raddb/mods-config/files/accounting
reading pairlist file /usr/local/etc/raddb/mods-config/files/pre-proxy
# Instantiating module "logintime" from file /usr/local/etc/raddb/mods-enabled/logintime
# Instantiating module "pap" from file /usr/local/etc/raddb/mods-enabled/pap
# Instantiating module "eap" from file /usr/local/etc/raddb/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
rlm_eap (EAP): Ignoring EAP method 'leap', because it is no longer supported
# 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 = "/usr/local/etc/raddb/certs"
pem_file_type = yes
private_key_file = "/usr/local/etc/raddb/certs/server.pem"
certificate_file = "/usr/local/etc/raddb/certs/server.pem"
ca_file = "/usr/local/etc/raddb/certs/ca.pem"
private_key_password = <<< secret >>>
dh_file = "/usr/local/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
reject_unknown_intermediate_ca = no
ecdh_curve = "prime256v1"
disable_tlsv1 = yes
disable_tlsv1_1 = yes
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
}
}
tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1'
tls: Please use 'tls_min_version' and 'tls_max_version' instead of 'disable_tlsv1_1'
tls: Setting DH parameters from /usr/local/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 = no
use_tunneled_reply = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "mschap" from file /usr/local/etc/raddb/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "expiration" from file /usr/local/etc/raddb/mods-enabled/expiration
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /usr/local/etc/raddb/radiusd.conf
} # server
server default { # from file /usr/local/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)
# 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 redundant-2-server { # from file /usr/local/etc/raddb/sites-enabled/redundant-radrelay-2
# Loading accounting {...}
} # server redundant-2-server
server inner-tunnel { # from file /usr/local/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' -- /usr/local/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 = 1812
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = *
port = 1813
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 = "detail"
listen {
filename = "/var/data/redundant2/detail"
load_factor = 30
poll_interval = 1
retry_interval = 30
one_shot = no
track = yes
}
}
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 detail file /var/data/redundant2/detail as server redundant-2-server
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on proxy address * port 44103
Listening on proxy address :: port 55513
Ready to process requests
detail (/var/data/redundant2/detail): Polling for detail file
detail (/var/data/redundant2/detail): Detail listener state unopened waiting 0.943258 sec
detail (/var/data/redundant2/detail): Polling for detail file
detail (/var/data/redundant2/detail): Detail listener state unopened waiting 1.104944 sec
detail (/var/data/redundant2/detail): Polling for detail file
detail (/var/data/redundant2/detail): Detail listener state unopened waiting 0.828299 sec
detail (/var/data/redundant2/detail): Polling for detail file
detail (/var/data/redundant2/detail): Detail listener state unopened waiting 0.909490 sec
detail (/var/data/redundant2/detail): Polling for detail file
detail (/var/data/redundant2/detail): Detail listener state unopened waiting 0.912661 sec
detail (/var/data/redundant2/detail): Polling for detail file
detail (/var/data/redundant2/detail): Detail listener state unopened waiting 1.220833 sec
detail (/var/data/redundant2/detail): Polling for detail file
detail (/var/data/redundant2/detail): Detail listener state unopened waiting 1.118784 sec
(0) Received Accounting-Request Id 1 from 192.168.1.200:61807 to 192.168.1.204:1813 length 42
(0) User-Name = "testuser"
(0) Acct-Status-Type = Start
(0) Acct-Session-Id = "8592"
(0) # Executing section preacct from file /usr/local/etc/raddb/sites-enabled/default
(0) preacct {
(0) [preprocess] = ok
(0) policy acct_unique {
(0) update request {
(0) &Tmp-String-9 := "ai:"
(0) } # update request = noop
(0) if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) && ("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i)) {
(0) EXPAND %{hex:&Class}
(0) -->
(0) EXPAND ^%{hex:&Tmp-String-9}
(0) --> ^61693a
(0) if (("%{hex:&Class}" =~ /^%{hex:&Tmp-String-9}/) && ("%{string:&Class}" =~ /^ai:([0-9a-f]{32})/i)) -> FALSE
(0) else {
(0) update request {
(0) EXPAND %{md5:%{User-Name},%{Acct-Session-ID},%{%{NAS-IPv6-Address}:-%{NAS-IP-Address}},%{NAS-Identifier},%{NAS-Port-ID},%{NAS-Port}}
(0) --> 2ce36d08ca5e9d33e496de3dacaa4328
(0) &Acct-Unique-Session-Id := 2ce36d08ca5e9d33e496de3dacaa4328
(0) } # update request = noop
(0) } # else = noop
(0) } # policy acct_unique = noop
(0) suffix: Checking for suffix after "@"
(0) suffix: No '@' in User-Name = "testuser", looking up realm NULL
(0) suffix: No such realm "NULL"
(0) [suffix] = noop
(0) [files] = noop
(0) } # preacct = ok
(0) # Executing section accounting from file /usr/local/etc/raddb/sites-enabled/default
(0) accounting {
(0) detail: EXPAND /usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d
(0) detail: --> /usr/local/var/log/radius/radacct/192.168.1.200/detail-20250115
(0) detail: /usr/local/var/log/radius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d expands to /usr/local/var/log/radius/radacct/192.168.1.200/detail-20250115
(0) detail: EXPAND %t
(0) detail: --> Wed Jan 15 13:54:49 2025
(0) [detail] = ok
(0) [unix] = ok
(0) [exec] = noop
(0) attr_filter.accounting_response: EXPAND %{User-Name}
(0) attr_filter.accounting_response: --> testuser
(0) attr_filter.accounting_response: Matched entry DEFAULT at line 12
(0) [attr_filter.accounting_response] = updated
(0) policy is_redundant_partner {
(0) if ( "%{Packet-src-IP-Address}" == "192.168.1.216" ) {
(0) EXPAND %{Packet-src-IP-Address}
(0) --> 192.168.1.200
(0) if ( "%{Packet-src-IP-Address}" == "192.168.1.216" ) -> FALSE
(0) [noop] = noop
(0) } # policy is_redundant_partner = noop
(0) if (noop) {
(0) if (noop) -> TRUE
(0) if (noop) {
(0) detail_redundant2: EXPAND /var/data/redundant2/detail
(0) detail_redundant2: --> /var/data/redundant2/detail
(0) detail_redundant2: /var/data/redundant2/detail expands to /var/data/redundant2/detail
(0) detail_redundant2: EXPAND %t
(0) detail_redundant2: --> Wed Jan 15 13:54:49 2025
(0) [detail_redundant2] = ok
(0) } # if (noop) = ok
(0) } # accounting = updated
(0) Sent Accounting-Response Id 1 from 192.168.1.204:1813 to 192.168.1.200:61807 length 20
(0) Finished request
(0) Cleaning up request packet ID 1 with timestamp +6 due to done
Ready to process requests
detail (/var/data/redundant2/detail): Polling for detail file
detail (/var/data/redundant2/detail): Renaming /var/data/redundant2/detail -> /var/data/redundant2/detail.work
detail (/var/data/redundant2/detail): Read packet from /var/data/redundant2/detail.work
User-Name = "testuser"
Acct-Status-Type = Start
Acct-Session-Id = "8592"
NAS-IP-Address = 192.168.1.200
Event-Timestamp = "Jan 15 2025 13:54:49 JST"
Tmp-String-9 = "ai:"
Acct-Unique-Session-Id = "2ce36d08ca5e9d33e496de3dacaa4328"
Packet-Original-Timestamp = "Jan 15 2025 13:54:48 JST"
Acct-Delay-Time = 0
Packet-Transmit-Counter = 1
(1) # Executing section accounting from file /usr/local/etc/raddb/sites-enabled/redundant-radrelay-2
(1) accounting {
(1) update control {
(1) Proxy-To-Realm := "redundant-2"
(1) } # update control = noop
(1) } # accounting = noop
(1) Starting proxy to home server 192.168.1.216 port 1813
(1) server redundant-2-server {
(1) }
(1) Proxying request to home server 192.168.1.216 port 1813 timeout 5.000000
Waking up in 0.3 seconds.
(1) Expecting proxy response no later than 4.666454 seconds from now
Waking up in 4.6 seconds.
(1) No proxy response, giving up on request and marking it done
Marking home server 192.168.1.216 port 1813 as zombie (it has not responded in 5.000000 seconds).
PING: Waiting 4 seconds for response to ping
(2) Sent Status-Server Id 74 from 0.0.0.0:44103 to 192.168.1.216:1813 length 70
(2) Message-Authenticator := 0x00
(2) NAS-Identifier := "Status Check 0. Are you alive?"
PING: Next status packet in 30 seconds
(1) ERROR: Failing proxied request for user "testuser", due to lack of any response from home server 192.168.1.216 port 1813
(1) Clearing existing &reply: attributes
(1) Found Post-Proxy-Type Fail-Accounting
(1) server redundant-2-server {
(1) Post-Proxy-Type sub-section not found. Ignoring.
(1) }
(1) detail (/var/data/redundant2/detail): No response to request. Will retry in 30 seconds
(1) Finished request
(1) Cleaning up request packet ID 0 with timestamp +7 due to done
Waking up in 3.9 seconds.
No response to status check 2 ID 74 for home server 192.168.1.216 port 1813
zsh: segmentation fault sudo /usr/local/sbin/radiusd -X
==========================================================================
This issue has been reported previously:
https://github.com/FreeRADIUS/freeradius-server/issues/5485
We would appreciate your prompt assistance in resolving this issue.
Thank you for your attention to this matter.
Best regards,
1
0
14 Jan '25
Thanks.
> OK. I suspect the problem is your local mailing system then. No one else has issues.
You do not have to guess / suspect, I am pretty sure it is on our side, but it is hard do find this needle in a haystack in this kind of big setup. Strangely it was only related to this explicit thread "Add TLS version to logs with linelog in FreeRADIUS 3.2.4".
> Please post the *full* debug output.
Here we go:
(182) Received Access-Request Id 31 from 9.9.9.9:60533 to 130.92.10.33:1812 length 446
(182) User-Name = "xyz(a)unibe.ch"
(182) Service-Type = Framed-User
(182) Cisco-AVPair = "service-type=Framed"
(182) Framed-MTU = 1485
(182) EAP-Message = 0x0201001d01646f6d696e69632e7374616c64657240756e6962652e6368
(182) Message-Authenticator = 0x11a30dec371519f50eb0809f117144db
(182) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(182) Cisco-AVPair = "method=dot1x"
(182) Cisco-AVPair = "client-iif-id=3724547122"
(182) Cisco-AVPair = "vlan-id=1876"
(182) NAS-IP-Address = 9.9.9.9
(182) NAS-Port-Type = Wireless-802.11
(182) NAS-Port = 4211
(182) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(182) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(182) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(182) Calling-Station-Id = "22-e0-73-f2-50-23"
(182) Airespace-Wlan-Id = 98
(182) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(182) WLAN-Group-Cipher = 1027076
(182) WLAN-Pairwise-Cipher = 1027076
(182) WLAN-AKM-Suite = 1027075
(182) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(182) authorize {
(182) policy rewrite_called_station_id {
(182) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(182) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(182) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(182) update request {
(182) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(182) --> 60-B9-C0-04-C4-40
(182) &Called-Station-Id := 60-B9-C0-04-C4-40
(182) } # update request = noop
(182) if ("%{8}") {
(182) EXPAND %{8}
(182) --> eduroam
(182) if ("%{8}") -> TRUE
(182) if ("%{8}") {
(182) update request {
(182) EXPAND %{8}
(182) --> eduroam
(182) &Called-Station-SSID := eduroam
(182) EXPAND %{Called-Station-Id}:%{8}
(182) --> 60-B9-C0-04-C4-40:eduroam
(182) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(182) } # update request = noop
(182) } # if ("%{8}") = noop
(182) [updated] = updated
(182) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(182) ... skipping else: Preceding "if" was taken
(182) } # policy rewrite_called_station_id = updated
(182) policy rewrite_calling_station_id {
(182) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(182) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(182) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(182) update request {
(182) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(182) --> 22-E0-73-F2-50-23
(182) &Calling-Station-Id := 22-E0-73-F2-50-23
(182) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(182) --> 22:E0:73:F2:50:23
(182) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(182) } # update request = noop
(182) [updated] = updated
(182) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(182) ... skipping else: Preceding "if" was taken
(182) } # policy rewrite_calling_station_id = updated
(182) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(182) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(182) if (Service-Type == Call-Check) {
(182) if (Service-Type == Call-Check) -> FALSE
(182) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(182) EXPAND Packet-Src-IP-Address
(182) --> 9.9.9.9
(182) EXPAND Packet-Src-IP-Address
(182) --> 9.9.9.9
(182) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(182) if (EAP-Message) {
(182) if (EAP-Message) -> TRUE
(182) if (EAP-Message) {
(182) policy filter_username {
(182) if (&User-Name) {
(182) if (&User-Name) -> TRUE
(182) if (&User-Name) {
(182) if (&User-Name =~ / /) {
(182) if (&User-Name =~ / /) -> FALSE
(182) if (&User-Name =~ /@[^@]*@/ ) {
(182) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(182) if (&User-Name =~ /\.\./ ) {
(182) if (&User-Name =~ /\.\./ ) -> FALSE
(182) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(182) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(182) if (&User-Name =~ /\.$/) {
(182) if (&User-Name =~ /\.$/) -> FALSE
(182) if (&User-Name =~ /(a)\./) {
(182) if (&User-Name =~ /(a)\./) -> FALSE
(182) } # if (&User-Name) = updated
(182) } # policy filter_username = updated
(182) suffix: Checking for suffix after "@"
(182) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(182) suffix: Found realm "UNIBE.CH"
(182) suffix: Adding Realm = "UNIBE.CH"
(182) suffix: Authentication realm is LOCAL
(182) [suffix] = ok
(182) policy deny_no_realm {
(182) if (User-Name && (User-Name !~ /@/)) {
(182) if (User-Name && (User-Name !~ /@/)) -> FALSE
(182) } # policy deny_no_realm = updated
(182) update request {
(182) EXPAND %{toupper:%{Realm}}
(182) --> UNIBE.CH
(182) Realm := UNIBE.CH
(182) } # update request = noop
(182) eap: Peer sent EAP Response (code 2) ID 1 length 29
(182) eap: EAP-Identity reply, returning 'ok' so we can short-circuit the rest of authorize
(182) [eap] = ok
(182) } # if (EAP-Message) = ok
(182) } # authorize = updated
(182) Found Auth-Type = eap
(182) # Executing group from file /etc/freeradius/sites-enabled/default
(182) Auth-Type eap {
(182) eap: Peer sent packet with method EAP Identity (1)
(182) eap: Calling submodule eap_peap to process data
(182) eap_peap: (TLS) PEAP -Initiating new session
(182) eap: Sending EAP Request (code 1) ID 2 length 6
(182) eap: EAP session adding &reply:State = 0xcf8ae573cf88fce6
(182) [eap] = handled
(182) if (handled && (Response-Packet-Type == Access-Challenge)) {
(182) EXPAND Response-Packet-Type
(182) --> Access-Challenge
(182) if (handled && (Response-Packet-Type == Access-Challenge)) -> TRUE
(182) if (handled && (Response-Packet-Type == Access-Challenge)) {
(182) attr_filter.access_challenge: EXPAND %{User-Name}
(182) attr_filter.access_challenge: --> xyz(a)unibe.ch
(182) attr_filter.access_challenge: Matched entry DEFAULT at line 12
(182) [attr_filter.access_challenge.post-auth] = updated
(182) [handled] = handled
(182) } # if (handled && (Response-Packet-Type == Access-Challenge)) = handled
(182) } # Auth-Type eap = handled
(182) Using Post-Auth-Type Challenge
(182) Post-Auth-Type sub-section not found. Ignoring.
(182) # Executing group from file /etc/freeradius/sites-enabled/default
(182) session-state: Saving cached attributes
(182) Framed-MTU = 1014
(182) Sent Access-Challenge Id 31 from 130.92.10.33:1812 to 9.9.9.9:60533 length 64
(182) EAP-Message = 0x010200061920
(182) Message-Authenticator = 0x00000000000000000000000000000000
(182) State = 0xcf8ae573cf88fce6e3b6e72de6bf5cbc
(182) Finished request
Waking up in 4.9 seconds.
(183) Received Access-Request Id 39 from 9.9.9.9:60533 to 130.92.10.33:1812 length 596
(183) User-Name = "xyz(a)unibe.ch"
(183) Service-Type = Framed-User
(183) Cisco-AVPair = "service-type=Framed"
(183) Framed-MTU = 1485
(183) EAP-Message = 0x020200a119800000009716030100920100008e030367374aaa0dddaf0e7d100625e3cfeeb8cd6518161994daa1847ad3002739d57600002c00ffc02cc02bc024c023c00ac009c008c030c02fc028c027c014c013c012009d009c003d003c0035002f000a01000039000a00080006001700180019000b00020100000d00120010040102010501060104030203050306030005000501000000000012000000170000
(183) Message-Authenticator = 0x29862be28b4764a547e61644a45d82bf
(183) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(183) Cisco-AVPair = "method=dot1x"
(183) Cisco-AVPair = "client-iif-id=3724547122"
(183) Cisco-AVPair = "vlan-id=1876"
(183) NAS-IP-Address = 9.9.9.9
(183) NAS-Port-Type = Wireless-802.11
(183) NAS-Port = 4211
(183) State = 0xcf8ae573cf88fce6e3b6e72de6bf5cbc
(183) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(183) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(183) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(183) Calling-Station-Id = "22-e0-73-f2-50-23"
(183) Airespace-Wlan-Id = 98
(183) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(183) WLAN-Group-Cipher = 1027076
(183) WLAN-Pairwise-Cipher = 1027076
(183) WLAN-AKM-Suite = 1027075
(183) Restoring &session-state
(183) &session-state:Framed-MTU = 1014
(183) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(183) authorize {
(183) policy rewrite_called_station_id {
(183) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(183) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(183) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(183) update request {
(183) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(183) --> 60-B9-C0-04-C4-40
(183) &Called-Station-Id := 60-B9-C0-04-C4-40
(183) } # update request = noop
(183) if ("%{8}") {
(183) EXPAND %{8}
(183) --> eduroam
(183) if ("%{8}") -> TRUE
(183) if ("%{8}") {
(183) update request {
(183) EXPAND %{8}
(183) --> eduroam
(183) &Called-Station-SSID := eduroam
(183) EXPAND %{Called-Station-Id}:%{8}
(183) --> 60-B9-C0-04-C4-40:eduroam
(183) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(183) } # update request = noop
(183) } # if ("%{8}") = noop
(183) [updated] = updated
(183) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(183) ... skipping else: Preceding "if" was taken
(183) } # policy rewrite_called_station_id = updated
(183) policy rewrite_calling_station_id {
(183) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(183) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(183) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(183) update request {
(183) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(183) --> 22-E0-73-F2-50-23
(183) &Calling-Station-Id := 22-E0-73-F2-50-23
(183) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(183) --> 22:E0:73:F2:50:23
(183) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(183) } # update request = noop
(183) [updated] = updated
(183) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(183) ... skipping else: Preceding "if" was taken
(183) } # policy rewrite_calling_station_id = updated
(183) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(183) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(183) if (Service-Type == Call-Check) {
(183) if (Service-Type == Call-Check) -> FALSE
(183) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(183) EXPAND Packet-Src-IP-Address
(183) --> 9.9.9.9
(183) EXPAND Packet-Src-IP-Address
(183) --> 9.9.9.9
(183) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(183) if (EAP-Message) {
(183) if (EAP-Message) -> TRUE
(183) if (EAP-Message) {
(183) policy filter_username {
(183) if (&User-Name) {
(183) if (&User-Name) -> TRUE
(183) if (&User-Name) {
(183) if (&User-Name =~ / /) {
(183) if (&User-Name =~ / /) -> FALSE
(183) if (&User-Name =~ /@[^@]*@/ ) {
(183) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(183) if (&User-Name =~ /\.\./ ) {
(183) if (&User-Name =~ /\.\./ ) -> FALSE
(183) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(183) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(183) if (&User-Name =~ /\.$/) {
(183) if (&User-Name =~ /\.$/) -> FALSE
(183) if (&User-Name =~ /(a)\./) {
(183) if (&User-Name =~ /(a)\./) -> FALSE
(183) } # if (&User-Name) = updated
(183) } # policy filter_username = updated
(183) suffix: Checking for suffix after "@"
(183) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(183) suffix: Found realm "UNIBE.CH"
(183) suffix: Adding Realm = "UNIBE.CH"
(183) suffix: Authentication realm is LOCAL
(183) [suffix] = ok
(183) policy deny_no_realm {
(183) if (User-Name && (User-Name !~ /@/)) {
(183) if (User-Name && (User-Name !~ /@/)) -> FALSE
(183) } # policy deny_no_realm = updated
(183) update request {
(183) EXPAND %{toupper:%{Realm}}
(183) --> UNIBE.CH
(183) Realm := UNIBE.CH
(183) } # update request = noop
(183) eap: Peer sent EAP Response (code 2) ID 2 length 161
(183) eap: Continuing tunnel setup
(183) [eap] = ok
(183) } # if (EAP-Message) = ok
(183) } # authorize = updated
(183) Found Auth-Type = eap
(183) # Executing group from file /etc/freeradius/sites-enabled/default
(183) Auth-Type eap {
(183) eap: Removing EAP session with state 0xcf8ae573cf88fce6
(183) eap: Previous EAP request found for state 0xcf8ae573cf88fce6, released from the list
(183) eap: Peer sent packet with method EAP PEAP (25)
(183) eap: Calling submodule eap_peap to process data
(183) eap_peap: (TLS) EAP Peer says that the final record size will be 151 bytes
(183) eap_peap: (TLS) EAP Got all data (151 bytes)
(183) eap_peap: (TLS) PEAP - Handshake state - before SSL initialization
(183) eap_peap: (TLS) PEAP - Handshake state - Server before SSL initialization
(183) eap_peap: (TLS) PEAP - Handshake state - Server before SSL initialization
(183) eap_peap: (TLS) PEAP - recv TLS 1.3 Handshake, ClientHello
(183) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS read client hello
(183) eap_peap: (TLS) PEAP - send TLS 1.2 Handshake, ServerHello
(183) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS write server hello
(183) eap_peap: (TLS) PEAP - send TLS 1.2 Handshake, Certificate
(183) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS write certificate
(183) eap_peap: (TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange
(183) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS write key exchange
(183) eap_peap: (TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone
(183) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS write server done
(183) eap_peap: (TLS) PEAP - Server : Need to read more data: SSLv3/TLS write server done
(183) eap_peap: (TLS) PEAP - In Handshake Phase
(183) eap: Sending EAP Request (code 1) ID 3 length 1024
(183) eap: EAP session adding &reply:State = 0xcf8ae573ce89fce6
(183) [eap] = handled
(183) if (handled && (Response-Packet-Type == Access-Challenge)) {
(183) EXPAND Response-Packet-Type
(183) --> Access-Challenge
(183) if (handled && (Response-Packet-Type == Access-Challenge)) -> TRUE
(183) if (handled && (Response-Packet-Type == Access-Challenge)) {
(183) attr_filter.access_challenge: EXPAND %{User-Name}
(183) attr_filter.access_challenge: --> xyz(a)unibe.ch
(183) attr_filter.access_challenge: Matched entry DEFAULT at line 12
(183) [attr_filter.access_challenge.post-auth] = updated
(183) [handled] = handled
(183) } # if (handled && (Response-Packet-Type == Access-Challenge)) = handled
(183) } # Auth-Type eap = handled
(183) Using Post-Auth-Type Challenge
(183) Post-Auth-Type sub-section not found. Ignoring.
(183) # Executing group from file /etc/freeradius/sites-enabled/default
(183) session-state: Saving cached attributes
(183) Framed-MTU = 1014
(183) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(183) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(183) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(183) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(183) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(183) Sent Access-Challenge Id 39 from 130.92.10.33:1812 to 9.9.9.9:60533 length 1090
(183) EAP-Message = 0x0103040019c000001135160303003d020000390303deaa040a2cd12b855def85a0f1cda085f35e6014c26e22fc444f574e4752440100c030000011ff01000100000b000403000102001700001603030f930b000f8f000f8c0007253082072130820609a003020102021006387c8dc0feba6f5f4a0c47e7c561cd300d06092a864886f70d01010b05003059310b300906035504061302555331153013060355040a130c446967694365727420496e63313330310603550403132a446967694365727420476c6f62616c20473220544c532052534120534841323536203230323020434131301e170d3234303532393030303030305a170d3235303532383233353935395a305f310b3009060355040613024348310d300b060355040813044265726e310d300b060355040713044265726e311b3019060355040a1312556e6976657273697479206f66204265726e311530130603550403130c6161692e756e6962652e636830820122300d06092a864886f70d01010105
(183) Message-Authenticator = 0x00000000000000000000000000000000
(183) State = 0xcf8ae573ce89fce6e3b6e72de6bf5cbc
(183) Finished request
Waking up in 4.9 seconds.
(184) Received Access-Request Id 47 from 9.9.9.9:60533 to 130.92.10.33:1812 length 441
(184) User-Name = "xyz(a)unibe.ch"
(184) Service-Type = Framed-User
(184) Cisco-AVPair = "service-type=Framed"
(184) Framed-MTU = 1485
(184) EAP-Message = 0x020300061900
(184) Message-Authenticator = 0xf94531ec1c265e936b60a676448e5edf
(184) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(184) Cisco-AVPair = "method=dot1x"
(184) Cisco-AVPair = "client-iif-id=3724547122"
(184) Cisco-AVPair = "vlan-id=1876"
(184) NAS-IP-Address = 9.9.9.9
(184) NAS-Port-Type = Wireless-802.11
(184) NAS-Port = 4211
(184) State = 0xcf8ae573ce89fce6e3b6e72de6bf5cbc
(184) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(184) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(184) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(184) Calling-Station-Id = "22-e0-73-f2-50-23"
(184) Airespace-Wlan-Id = 98
(184) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(184) WLAN-Group-Cipher = 1027076
(184) WLAN-Pairwise-Cipher = 1027076
(184) WLAN-AKM-Suite = 1027075
(184) Restoring &session-state
(184) &session-state:Framed-MTU = 1014
(184) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(184) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(184) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(184) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(184) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(184) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(184) authorize {
(184) policy rewrite_called_station_id {
(184) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(184) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(184) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(184) update request {
(184) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(184) --> 60-B9-C0-04-C4-40
(184) &Called-Station-Id := 60-B9-C0-04-C4-40
(184) } # update request = noop
(184) if ("%{8}") {
(184) EXPAND %{8}
(184) --> eduroam
(184) if ("%{8}") -> TRUE
(184) if ("%{8}") {
(184) update request {
(184) EXPAND %{8}
(184) --> eduroam
(184) &Called-Station-SSID := eduroam
(184) EXPAND %{Called-Station-Id}:%{8}
(184) --> 60-B9-C0-04-C4-40:eduroam
(184) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(184) } # update request = noop
(184) } # if ("%{8}") = noop
(184) [updated] = updated
(184) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(184) ... skipping else: Preceding "if" was taken
(184) } # policy rewrite_called_station_id = updated
(184) policy rewrite_calling_station_id {
(184) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(184) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(184) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(184) update request {
(184) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(184) --> 22-E0-73-F2-50-23
(184) &Calling-Station-Id := 22-E0-73-F2-50-23
(184) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(184) --> 22:E0:73:F2:50:23
(184) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(184) } # update request = noop
(184) [updated] = updated
(184) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(184) ... skipping else: Preceding "if" was taken
(184) } # policy rewrite_calling_station_id = updated
(184) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(184) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(184) if (Service-Type == Call-Check) {
(184) if (Service-Type == Call-Check) -> FALSE
(184) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(184) EXPAND Packet-Src-IP-Address
(184) --> 9.9.9.9
(184) EXPAND Packet-Src-IP-Address
(184) --> 9.9.9.9
(184) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(184) if (EAP-Message) {
(184) if (EAP-Message) -> TRUE
(184) if (EAP-Message) {
(184) policy filter_username {
(184) if (&User-Name) {
(184) if (&User-Name) -> TRUE
(184) if (&User-Name) {
(184) if (&User-Name =~ / /) {
(184) if (&User-Name =~ / /) -> FALSE
(184) if (&User-Name =~ /@[^@]*@/ ) {
(184) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(184) if (&User-Name =~ /\.\./ ) {
(184) if (&User-Name =~ /\.\./ ) -> FALSE
(184) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(184) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(184) if (&User-Name =~ /\.$/) {
(184) if (&User-Name =~ /\.$/) -> FALSE
(184) if (&User-Name =~ /(a)\./) {
(184) if (&User-Name =~ /(a)\./) -> FALSE
(184) } # if (&User-Name) = updated
(184) } # policy filter_username = updated
(184) suffix: Checking for suffix after "@"
(184) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(184) suffix: Found realm "UNIBE.CH"
(184) suffix: Adding Realm = "UNIBE.CH"
(184) suffix: Authentication realm is LOCAL
(184) [suffix] = ok
(184) policy deny_no_realm {
(184) if (User-Name && (User-Name !~ /@/)) {
(184) if (User-Name && (User-Name !~ /@/)) -> FALSE
(184) } # policy deny_no_realm = updated
(184) update request {
(184) EXPAND %{toupper:%{Realm}}
(184) --> UNIBE.CH
(184) Realm := UNIBE.CH
(184) } # update request = noop
(184) eap: Peer sent EAP Response (code 2) ID 3 length 6
(184) eap: Continuing tunnel setup
(184) [eap] = ok
(184) } # if (EAP-Message) = ok
(184) } # authorize = updated
(184) Found Auth-Type = eap
(184) # Executing group from file /etc/freeradius/sites-enabled/default
(184) Auth-Type eap {
(184) eap: Removing EAP session with state 0xcf8ae573ce89fce6
(184) eap: Previous EAP request found for state 0xcf8ae573ce89fce6, released from the list
(184) eap: Peer sent packet with method EAP PEAP (25)
(184) eap: Calling submodule eap_peap to process data
(184) eap_peap: (TLS) Peer ACKed our handshake fragment
(184) eap: Sending EAP Request (code 1) ID 4 length 1020
(184) eap: EAP session adding &reply:State = 0xcf8ae573cd8efce6
(184) [eap] = handled
(184) if (handled && (Response-Packet-Type == Access-Challenge)) {
(184) EXPAND Response-Packet-Type
(184) --> Access-Challenge
(184) if (handled && (Response-Packet-Type == Access-Challenge)) -> TRUE
(184) if (handled && (Response-Packet-Type == Access-Challenge)) {
(184) attr_filter.access_challenge: EXPAND %{User-Name}
(184) attr_filter.access_challenge: --> xyz(a)unibe.ch
(184) attr_filter.access_challenge: Matched entry DEFAULT at line 12
(184) [attr_filter.access_challenge.post-auth] = updated
(184) [handled] = handled
(184) } # if (handled && (Response-Packet-Type == Access-Challenge)) = handled
(184) } # Auth-Type eap = handled
(184) Using Post-Auth-Type Challenge
(184) Post-Auth-Type sub-section not found. Ignoring.
(184) # Executing group from file /etc/freeradius/sites-enabled/default
(184) session-state: Saving cached attributes
(184) Framed-MTU = 1014
(184) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(184) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(184) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(184) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(184) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(184) Sent Access-Challenge Id 47 from 130.92.10.33:1812 to 9.9.9.9:60533 length 1086
(184) EAP-Message = 0x010403fc1940312d312e63726c3048a046a0448642687474703a2f2f63726c342e64696769636572742e636f6d2f4469676943657274476c6f62616c4732544c53525341534841323536323032304341312d312e63726c30818706082b06010505070101047b3079302406082b060105050730018618687474703a2f2f6f6373702e64696769636572742e636f6d305106082b060105050730028645687474703a2f2f636163657274732e64696769636572742e636f6d2f4469676943657274476c6f62616c4732544c53525341534841323536323032304341312d312e637274300c0603551d130101ff040230003082017f060a2b06010401d6790204020482016f0482016b01690077004e75a3275c9a10c3385b6cd4df3f52eb1df0e08e1b8d69c0b1fa64b1629a39df0000018fc49a2e690000040300483046022100c3703d534899e5150ee51285759f020d6d69574d1db223e7a6fba90105e34a98022100a96786ea2924a95667b25b5efae9fb8e9b5e2b8494
(184) Message-Authenticator = 0x00000000000000000000000000000000
(184) State = 0xcf8ae573cd8efce6e3b6e72de6bf5cbc
(184) Finished request
Waking up in 4.9 seconds.
(185) Received Access-Request Id 55 from 9.9.9.9:60533 to 130.92.10.33:1812 length 441
(185) User-Name = "xyz(a)unibe.ch"
(185) Service-Type = Framed-User
(185) Cisco-AVPair = "service-type=Framed"
(185) Framed-MTU = 1485
(185) EAP-Message = 0x020400061900
(185) Message-Authenticator = 0x762039fe48480c9dd55c1af554ae2e9e
(185) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(185) Cisco-AVPair = "method=dot1x"
(185) Cisco-AVPair = "client-iif-id=3724547122"
(185) Cisco-AVPair = "vlan-id=1876"
(185) NAS-IP-Address = 9.9.9.9
(185) NAS-Port-Type = Wireless-802.11
(185) NAS-Port = 4211
(185) State = 0xcf8ae573cd8efce6e3b6e72de6bf5cbc
(185) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(185) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(185) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(185) Calling-Station-Id = "22-e0-73-f2-50-23"
(185) Airespace-Wlan-Id = 98
(185) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(185) WLAN-Group-Cipher = 1027076
(185) WLAN-Pairwise-Cipher = 1027076
(185) WLAN-AKM-Suite = 1027075
(185) Restoring &session-state
(185) &session-state:Framed-MTU = 1014
(185) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(185) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(185) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(185) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(185) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(185) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(185) authorize {
(185) policy rewrite_called_station_id {
(185) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(185) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(185) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(185) update request {
(185) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(185) --> 60-B9-C0-04-C4-40
(185) &Called-Station-Id := 60-B9-C0-04-C4-40
(185) } # update request = noop
(185) if ("%{8}") {
(185) EXPAND %{8}
(185) --> eduroam
(185) if ("%{8}") -> TRUE
(185) if ("%{8}") {
(185) update request {
(185) EXPAND %{8}
(185) --> eduroam
(185) &Called-Station-SSID := eduroam
(185) EXPAND %{Called-Station-Id}:%{8}
(185) --> 60-B9-C0-04-C4-40:eduroam
(185) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(185) } # update request = noop
(185) } # if ("%{8}") = noop
(185) [updated] = updated
(185) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(185) ... skipping else: Preceding "if" was taken
(185) } # policy rewrite_called_station_id = updated
(185) policy rewrite_calling_station_id {
(185) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(185) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(185) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(185) update request {
(185) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(185) --> 22-E0-73-F2-50-23
(185) &Calling-Station-Id := 22-E0-73-F2-50-23
(185) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(185) --> 22:E0:73:F2:50:23
(185) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(185) } # update request = noop
(185) [updated] = updated
(185) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(185) ... skipping else: Preceding "if" was taken
(185) } # policy rewrite_calling_station_id = updated
(185) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(185) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(185) if (Service-Type == Call-Check) {
(185) if (Service-Type == Call-Check) -> FALSE
(185) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(185) EXPAND Packet-Src-IP-Address
(185) --> 9.9.9.9
(185) EXPAND Packet-Src-IP-Address
(185) --> 9.9.9.9
(185) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(185) if (EAP-Message) {
(185) if (EAP-Message) -> TRUE
(185) if (EAP-Message) {
(185) policy filter_username {
(185) if (&User-Name) {
(185) if (&User-Name) -> TRUE
(185) if (&User-Name) {
(185) if (&User-Name =~ / /) {
(185) if (&User-Name =~ / /) -> FALSE
(185) if (&User-Name =~ /@[^@]*@/ ) {
(185) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(185) if (&User-Name =~ /\.\./ ) {
(185) if (&User-Name =~ /\.\./ ) -> FALSE
(185) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(185) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(185) if (&User-Name =~ /\.$/) {
(185) if (&User-Name =~ /\.$/) -> FALSE
(185) if (&User-Name =~ /(a)\./) {
(185) if (&User-Name =~ /(a)\./) -> FALSE
(185) } # if (&User-Name) = updated
(185) } # policy filter_username = updated
(185) suffix: Checking for suffix after "@"
(185) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(185) suffix: Found realm "UNIBE.CH"
(185) suffix: Adding Realm = "UNIBE.CH"
(185) suffix: Authentication realm is LOCAL
(185) [suffix] = ok
(185) policy deny_no_realm {
(185) if (User-Name && (User-Name !~ /@/)) {
(185) if (User-Name && (User-Name !~ /@/)) -> FALSE
(185) } # policy deny_no_realm = updated
(185) update request {
(185) EXPAND %{toupper:%{Realm}}
(185) --> UNIBE.CH
(185) Realm := UNIBE.CH
(185) } # update request = noop
(185) eap: Peer sent EAP Response (code 2) ID 4 length 6
(185) eap: Continuing tunnel setup
(185) [eap] = ok
(185) } # if (EAP-Message) = ok
(185) } # authorize = updated
(185) Found Auth-Type = eap
(185) # Executing group from file /etc/freeradius/sites-enabled/default
(185) Auth-Type eap {
(185) eap: Removing EAP session with state 0xcf8ae573cd8efce6
(185) eap: Previous EAP request found for state 0xcf8ae573cd8efce6, released from the list
(185) eap: Peer sent packet with method EAP PEAP (25)
(185) eap: Calling submodule eap_peap to process data
(185) eap_peap: (TLS) Peer ACKed our handshake fragment
(185) eap: Sending EAP Request (code 1) ID 5 length 1020
(185) eap: EAP session adding &reply:State = 0xcf8ae573cc8ffce6
(185) [eap] = handled
(185) if (handled && (Response-Packet-Type == Access-Challenge)) {
(185) EXPAND Response-Packet-Type
(185) --> Access-Challenge
(185) if (handled && (Response-Packet-Type == Access-Challenge)) -> TRUE
(185) if (handled && (Response-Packet-Type == Access-Challenge)) {
(185) attr_filter.access_challenge: EXPAND %{User-Name}
(185) attr_filter.access_challenge: --> xyz(a)unibe.ch
(185) attr_filter.access_challenge: Matched entry DEFAULT at line 12
(185) [attr_filter.access_challenge.post-auth] = updated
(185) [handled] = handled
(185) } # if (handled && (Response-Packet-Type == Access-Challenge)) = handled
(185) } # Auth-Type eap = handled
(185) Using Post-Auth-Type Challenge
(185) Post-Auth-Type sub-section not found. Ignoring.
(185) # Executing group from file /etc/freeradius/sites-enabled/default
(185) session-state: Saving cached attributes
(185) Framed-MTU = 1014
(185) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(185) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(185) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(185) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(185) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(185) Sent Access-Challenge Id 55 from 130.92.10.33:1812 to 9.9.9.9:60533 length 1086
(185) EAP-Message = 0x010503fc194006035504031317446967694365727420476c6f62616c20526f6f74204732301e170d3231303333303030303030305a170d3331303332393233353935395a3059310b300906035504061302555331153013060355040a130c446967694365727420496e63313330310603550403132a446967694365727420476c6f62616c20473220544c53205253412053484132353620323032302043413130820122300d06092a864886f70d01010105000382010f003082010a0282010100ccf710624fa6bb636fed905256c56d277b7a12568af1f4f9d6e7e18fbd95abf260411570db1200fa270ab557385b7db2519371950e6a41945b351bfa7bfabbc5be2430fe56efc4f37d97e314f5144dcba710f216eaab22f031221161699026ba78d9971fe37d66ab75449573c8acffef5d0a8a5943e1acb23a0ff348fcd76b37c163dcde46d6db45fe7d23fd90e851071e51a35fed4946547f2c88c5f4139c97153c03e8a139dc690c32c1af16574c9447427ca2c89c7d
(185) Message-Authenticator = 0x00000000000000000000000000000000
(185) State = 0xcf8ae573cc8ffce6e3b6e72de6bf5cbc
(185) Finished request
Waking up in 4.9 seconds.
(186) Received Access-Request Id 63 from 9.9.9.9:60533 to 130.92.10.33:1812 length 441
(186) User-Name = "xyz(a)unibe.ch"
(186) Service-Type = Framed-User
(186) Cisco-AVPair = "service-type=Framed"
(186) Framed-MTU = 1485
(186) EAP-Message = 0x020500061900
(186) Message-Authenticator = 0xe9653667a164bcf3999f9734716b49db
(186) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(186) Cisco-AVPair = "method=dot1x"
(186) Cisco-AVPair = "client-iif-id=3724547122"
(186) Cisco-AVPair = "vlan-id=1876"
(186) NAS-IP-Address = 9.9.9.9
(186) NAS-Port-Type = Wireless-802.11
(186) NAS-Port = 4211
(186) State = 0xcf8ae573cc8ffce6e3b6e72de6bf5cbc
(186) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(186) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(186) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(186) Calling-Station-Id = "22-e0-73-f2-50-23"
(186) Airespace-Wlan-Id = 98
(186) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(186) WLAN-Group-Cipher = 1027076
(186) WLAN-Pairwise-Cipher = 1027076
(186) WLAN-AKM-Suite = 1027075
(186) Restoring &session-state
(186) &session-state:Framed-MTU = 1014
(186) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(186) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(186) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(186) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(186) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(186) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(186) authorize {
(186) policy rewrite_called_station_id {
(186) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(186) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(186) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(186) update request {
(186) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(186) --> 60-B9-C0-04-C4-40
(186) &Called-Station-Id := 60-B9-C0-04-C4-40
(186) } # update request = noop
(186) if ("%{8}") {
(186) EXPAND %{8}
(186) --> eduroam
(186) if ("%{8}") -> TRUE
(186) if ("%{8}") {
(186) update request {
(186) EXPAND %{8}
(186) --> eduroam
(186) &Called-Station-SSID := eduroam
(186) EXPAND %{Called-Station-Id}:%{8}
(186) --> 60-B9-C0-04-C4-40:eduroam
(186) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(186) } # update request = noop
(186) } # if ("%{8}") = noop
(186) [updated] = updated
(186) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(186) ... skipping else: Preceding "if" was taken
(186) } # policy rewrite_called_station_id = updated
(186) policy rewrite_calling_station_id {
(186) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(186) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(186) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(186) update request {
(186) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(186) --> 22-E0-73-F2-50-23
(186) &Calling-Station-Id := 22-E0-73-F2-50-23
(186) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(186) --> 22:E0:73:F2:50:23
(186) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(186) } # update request = noop
(186) [updated] = updated
(186) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(186) ... skipping else: Preceding "if" was taken
(186) } # policy rewrite_calling_station_id = updated
(186) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(186) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(186) if (Service-Type == Call-Check) {
(186) if (Service-Type == Call-Check) -> FALSE
(186) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(186) EXPAND Packet-Src-IP-Address
(186) --> 9.9.9.9
(186) EXPAND Packet-Src-IP-Address
(186) --> 9.9.9.9
(186) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(186) if (EAP-Message) {
(186) if (EAP-Message) -> TRUE
(186) if (EAP-Message) {
(186) policy filter_username {
(186) if (&User-Name) {
(186) if (&User-Name) -> TRUE
(186) if (&User-Name) {
(186) if (&User-Name =~ / /) {
(186) if (&User-Name =~ / /) -> FALSE
(186) if (&User-Name =~ /@[^@]*@/ ) {
(186) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(186) if (&User-Name =~ /\.\./ ) {
(186) if (&User-Name =~ /\.\./ ) -> FALSE
(186) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(186) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(186) if (&User-Name =~ /\.$/) {
(186) if (&User-Name =~ /\.$/) -> FALSE
(186) if (&User-Name =~ /(a)\./) {
(186) if (&User-Name =~ /(a)\./) -> FALSE
(186) } # if (&User-Name) = updated
(186) } # policy filter_username = updated
(186) suffix: Checking for suffix after "@"
(186) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(186) suffix: Found realm "UNIBE.CH"
(186) suffix: Adding Realm = "UNIBE.CH"
(186) suffix: Authentication realm is LOCAL
(186) [suffix] = ok
(186) policy deny_no_realm {
(186) if (User-Name && (User-Name !~ /@/)) {
(186) if (User-Name && (User-Name !~ /@/)) -> FALSE
(186) } # policy deny_no_realm = updated
(186) update request {
(186) EXPAND %{toupper:%{Realm}}
(186) --> UNIBE.CH
(186) Realm := UNIBE.CH
(186) } # update request = noop
(186) eap: Peer sent EAP Response (code 2) ID 5 length 6
(186) eap: Continuing tunnel setup
(186) [eap] = ok
(186) } # if (EAP-Message) = ok
(186) } # authorize = updated
(186) Found Auth-Type = eap
(186) # Executing group from file /etc/freeradius/sites-enabled/default
(186) Auth-Type eap {
(186) eap: Removing EAP session with state 0xcf8ae573cc8ffce6
(186) eap: Previous EAP request found for state 0xcf8ae573cc8ffce6, released from the list
(186) eap: Peer sent packet with method EAP PEAP (25)
(186) eap: Calling submodule eap_peap to process data
(186) eap_peap: (TLS) Peer ACKed our handshake fragment
(186) eap: Sending EAP Request (code 1) ID 6 length 1020
(186) eap: EAP session adding &reply:State = 0xcf8ae573cb8cfce6
(186) [eap] = handled
(186) if (handled && (Response-Packet-Type == Access-Challenge)) {
(186) EXPAND Response-Packet-Type
(186) --> Access-Challenge
(186) if (handled && (Response-Packet-Type == Access-Challenge)) -> TRUE
(186) if (handled && (Response-Packet-Type == Access-Challenge)) {
(186) attr_filter.access_challenge: EXPAND %{User-Name}
(186) attr_filter.access_challenge: --> xyz(a)unibe.ch
(186) attr_filter.access_challenge: Matched entry DEFAULT at line 12
(186) [attr_filter.access_challenge.post-auth] = updated
(186) [handled] = handled
(186) } # if (handled && (Response-Packet-Type == Access-Challenge)) = handled
(186) } # Auth-Type eap = handled
(186) Using Post-Auth-Type Challenge
(186) Post-Auth-Type sub-section not found. Ignoring.
(186) # Executing group from file /etc/freeradius/sites-enabled/default
(186) session-state: Saving cached attributes
(186) Framed-MTU = 1014
(186) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(186) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(186) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(186) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(186) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(186) Sent Access-Challenge Id 63 from 130.92.10.33:1812 to 9.9.9.9:60533 length 1086
(186) EAP-Message = 0x010603fc1940c6278481d47e8c8ca39b52e7c688ec377c2afbf0555a387210d80013cf4c73dbaa3735a82981699c76bcde187b90d4cacfef6703fd045a2116b1ffea3fdfdc82f5ebf45992230d242a95254ccaa191e6d4b7ac8774b3f16da399dbf9d5bd84409f07980003923082038e30820276a0030201020210033af1e6a711a9a0bb2864b11d09fae5300d06092a864886f70d01010b05003061310b300906035504061302555331153013060355040a130c446967694365727420496e6331193017060355040b13107777772e64696769636572742e636f6d3120301e06035504031317446967694365727420476c6f62616c20526f6f74204732301e170d3133303830313132303030305a170d3338303131353132303030305a3061310b300906035504061302555331153013060355040a130c446967694365727420496e6331193017060355040b13107777772e64696769636572742e636f6d3120301e06035504031317446967694365727420476c6f6261
(186) Message-Authenticator = 0x00000000000000000000000000000000
(186) State = 0xcf8ae573cb8cfce6e3b6e72de6bf5cbc
(186) Finished request
Waking up in 4.9 seconds.
(187) Received Access-Request Id 71 from 9.9.9.9:60533 to 130.92.10.33:1812 length 441
(187) User-Name = "xyz(a)unibe.ch"
(187) Service-Type = Framed-User
(187) Cisco-AVPair = "service-type=Framed"
(187) Framed-MTU = 1485
(187) EAP-Message = 0x020600061900
(187) Message-Authenticator = 0x242a03db3080449327126d09317dcedf
(187) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(187) Cisco-AVPair = "method=dot1x"
(187) Cisco-AVPair = "client-iif-id=3724547122"
(187) Cisco-AVPair = "vlan-id=1876"
(187) NAS-IP-Address = 9.9.9.9
(187) NAS-Port-Type = Wireless-802.11
(187) NAS-Port = 4211
(187) State = 0xcf8ae573cb8cfce6e3b6e72de6bf5cbc
(187) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(187) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(187) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(187) Calling-Station-Id = "22-e0-73-f2-50-23"
(187) Airespace-Wlan-Id = 98
(187) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(187) WLAN-Group-Cipher = 1027076
(187) WLAN-Pairwise-Cipher = 1027076
(187) WLAN-AKM-Suite = 1027075
(187) Restoring &session-state
(187) &session-state:Framed-MTU = 1014
(187) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(187) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(187) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(187) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(187) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(187) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(187) authorize {
(187) policy rewrite_called_station_id {
(187) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(187) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(187) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(187) update request {
(187) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(187) --> 60-B9-C0-04-C4-40
(187) &Called-Station-Id := 60-B9-C0-04-C4-40
(187) } # update request = noop
(187) if ("%{8}") {
(187) EXPAND %{8}
(187) --> eduroam
(187) if ("%{8}") -> TRUE
(187) if ("%{8}") {
(187) update request {
(187) EXPAND %{8}
(187) --> eduroam
(187) &Called-Station-SSID := eduroam
(187) EXPAND %{Called-Station-Id}:%{8}
(187) --> 60-B9-C0-04-C4-40:eduroam
(187) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(187) } # update request = noop
(187) } # if ("%{8}") = noop
(187) [updated] = updated
(187) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(187) ... skipping else: Preceding "if" was taken
(187) } # policy rewrite_called_station_id = updated
(187) policy rewrite_calling_station_id {
(187) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(187) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(187) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(187) update request {
(187) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(187) --> 22-E0-73-F2-50-23
(187) &Calling-Station-Id := 22-E0-73-F2-50-23
(187) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(187) --> 22:E0:73:F2:50:23
(187) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(187) } # update request = noop
(187) [updated] = updated
(187) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(187) ... skipping else: Preceding "if" was taken
(187) } # policy rewrite_calling_station_id = updated
(187) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(187) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(187) if (Service-Type == Call-Check) {
(187) if (Service-Type == Call-Check) -> FALSE
(187) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(187) EXPAND Packet-Src-IP-Address
(187) --> 9.9.9.9
(187) EXPAND Packet-Src-IP-Address
(187) --> 9.9.9.9
(187) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(187) if (EAP-Message) {
(187) if (EAP-Message) -> TRUE
(187) if (EAP-Message) {
(187) policy filter_username {
(187) if (&User-Name) {
(187) if (&User-Name) -> TRUE
(187) if (&User-Name) {
(187) if (&User-Name =~ / /) {
(187) if (&User-Name =~ / /) -> FALSE
(187) if (&User-Name =~ /@[^@]*@/ ) {
(187) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(187) if (&User-Name =~ /\.\./ ) {
(187) if (&User-Name =~ /\.\./ ) -> FALSE
(187) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(187) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(187) if (&User-Name =~ /\.$/) {
(187) if (&User-Name =~ /\.$/) -> FALSE
(187) if (&User-Name =~ /(a)\./) {
(187) if (&User-Name =~ /(a)\./) -> FALSE
(187) } # if (&User-Name) = updated
(187) } # policy filter_username = updated
(187) suffix: Checking for suffix after "@"
(187) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(187) suffix: Found realm "UNIBE.CH"
(187) suffix: Adding Realm = "UNIBE.CH"
(187) suffix: Authentication realm is LOCAL
(187) [suffix] = ok
(187) policy deny_no_realm {
(187) if (User-Name && (User-Name !~ /@/)) {
(187) if (User-Name && (User-Name !~ /@/)) -> FALSE
(187) } # policy deny_no_realm = updated
(187) update request {
(187) EXPAND %{toupper:%{Realm}}
(187) --> UNIBE.CH
(187) Realm := UNIBE.CH
(187) } # update request = noop
(187) eap: Peer sent EAP Response (code 2) ID 6 length 6
(187) eap: Continuing tunnel setup
(187) [eap] = ok
(187) } # if (EAP-Message) = ok
(187) } # authorize = updated
(187) Found Auth-Type = eap
(187) # Executing group from file /etc/freeradius/sites-enabled/default
(187) Auth-Type eap {
(187) eap: Removing EAP session with state 0xcf8ae573cb8cfce6
(187) eap: Previous EAP request found for state 0xcf8ae573cb8cfce6, released from the list
(187) eap: Peer sent packet with method EAP PEAP (25)
(187) eap: Calling submodule eap_peap to process data
(187) eap_peap: (TLS) Peer ACKed our handshake fragment
(187) eap: Sending EAP Request (code 1) ID 7 length 355
(187) eap: EAP session adding &reply:State = 0xcf8ae573ca8dfce6
(187) [eap] = handled
(187) if (handled && (Response-Packet-Type == Access-Challenge)) {
(187) EXPAND Response-Packet-Type
(187) --> Access-Challenge
(187) if (handled && (Response-Packet-Type == Access-Challenge)) -> TRUE
(187) if (handled && (Response-Packet-Type == Access-Challenge)) {
(187) attr_filter.access_challenge: EXPAND %{User-Name}
(187) attr_filter.access_challenge: --> xyz(a)unibe.ch
(187) attr_filter.access_challenge: Matched entry DEFAULT at line 12
(187) [attr_filter.access_challenge.post-auth] = updated
(187) [handled] = handled
(187) } # if (handled && (Response-Packet-Type == Access-Challenge)) = handled
(187) } # Auth-Type eap = handled
(187) Using Post-Auth-Type Challenge
(187) Post-Auth-Type sub-section not found. Ignoring.
(187) # Executing group from file /etc/freeradius/sites-enabled/default
(187) session-state: Saving cached attributes
(187) Framed-MTU = 1014
(187) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(187) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(187) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(187) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(187) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(187) Sent Access-Challenge Id 71 from 130.92.10.33:1812 to 9.9.9.9:60533 length 415
(187) EAP-Message = 0x01070163190032b6160303014d0c00014903001741042ecf4619c88bd3f9d2564d80ccf135283bc2bf397860861137ed899ad3521a198102a135ceee9d6c4a1f365b28ca6fa1abcb775e7e39e54dd612eb5ea0af4c4704010100a678c60510cecc8151c293799b383fe4f21878672e4c20666f9ffbc3ee8b6ca2c799b658371ca3e82a5758e91dc96d03d419fd4a932df264d4568b93bbd88395b905d1d80917f36fd8c3bf5c88e446eabfe1b16a1c6e2d34514955ea4939e33714149c6fd768a2b751326ce3d5efcd074dc01a14d4e6cf1c21be0873fb694c9f1c06533e3788bcd5a8f3c4dfe09dedf9d6a305597ef549c9a5e270d5ed0da6e7bac6cf43a793922384b33438ef8c270441d243379e2bcaf877c216a6757c4a87cc867650abd212201fcee3745132d5988be5e2a355565b413277794fa983b381bc7d3ef806fe84e20259008fde46fbec88934273fcb43051eb51e6ffc7bc215516030300040e000000
(187) Message-Authenticator = 0x00000000000000000000000000000000
(187) State = 0xcf8ae573ca8dfce6e3b6e72de6bf5cbc
(187) Finished request
Waking up in 4.9 seconds.
(188) Received Access-Request Id 79 from 9.9.9.9:60533 to 130.92.10.33:1812 length 571
(188) User-Name = "xyz(a)unibe.ch"
(188) Service-Type = Framed-User
(188) Cisco-AVPair = "service-type=Framed"
(188) Framed-MTU = 1485
(188) EAP-Message = 0x0207008819800000007e1603030046100000424104e6595813fcf61f0bcf33212269292b56b96c43fa1c8521b7e9ca6253bc8ba93a42bbf48836d9cd888fe082cfa6fab40327beb814a7fb7f88dd37f9af6caafe2c1403030001011603030028205b847b10fba1568b03991cae85dab7c8553e4b8fbf36eca8a4ec3411939e1e7f4d5270df2d81d8
(188) Message-Authenticator = 0x5dc9e821834fdb1a0dbda25c60505863
(188) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(188) Cisco-AVPair = "method=dot1x"
(188) Cisco-AVPair = "client-iif-id=3724547122"
(188) Cisco-AVPair = "vlan-id=1876"
(188) NAS-IP-Address = 9.9.9.9
(188) NAS-Port-Type = Wireless-802.11
(188) NAS-Port = 4211
(188) State = 0xcf8ae573ca8dfce6e3b6e72de6bf5cbc
(188) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(188) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(188) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(188) Calling-Station-Id = "22-e0-73-f2-50-23"
(188) Airespace-Wlan-Id = 98
(188) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(188) WLAN-Group-Cipher = 1027076
(188) WLAN-Pairwise-Cipher = 1027076
(188) WLAN-AKM-Suite = 1027075
(188) Restoring &session-state
(188) &session-state:Framed-MTU = 1014
(188) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(188) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(188) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(188) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(188) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(188) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(188) authorize {
(188) policy rewrite_called_station_id {
(188) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(188) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(188) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(188) update request {
(188) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(188) --> 60-B9-C0-04-C4-40
(188) &Called-Station-Id := 60-B9-C0-04-C4-40
(188) } # update request = noop
(188) if ("%{8}") {
(188) EXPAND %{8}
(188) --> eduroam
(188) if ("%{8}") -> TRUE
(188) if ("%{8}") {
(188) update request {
(188) EXPAND %{8}
(188) --> eduroam
(188) &Called-Station-SSID := eduroam
(188) EXPAND %{Called-Station-Id}:%{8}
(188) --> 60-B9-C0-04-C4-40:eduroam
(188) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(188) } # update request = noop
(188) } # if ("%{8}") = noop
(188) [updated] = updated
(188) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(188) ... skipping else: Preceding "if" was taken
(188) } # policy rewrite_called_station_id = updated
(188) policy rewrite_calling_station_id {
(188) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(188) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(188) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(188) update request {
(188) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(188) --> 22-E0-73-F2-50-23
(188) &Calling-Station-Id := 22-E0-73-F2-50-23
(188) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(188) --> 22:E0:73:F2:50:23
(188) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(188) } # update request = noop
(188) [updated] = updated
(188) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(188) ... skipping else: Preceding "if" was taken
(188) } # policy rewrite_calling_station_id = updated
(188) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(188) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(188) if (Service-Type == Call-Check) {
(188) if (Service-Type == Call-Check) -> FALSE
(188) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(188) EXPAND Packet-Src-IP-Address
(188) --> 9.9.9.9
(188) EXPAND Packet-Src-IP-Address
(188) --> 9.9.9.9
(188) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(188) if (EAP-Message) {
(188) if (EAP-Message) -> TRUE
(188) if (EAP-Message) {
(188) policy filter_username {
(188) if (&User-Name) {
(188) if (&User-Name) -> TRUE
(188) if (&User-Name) {
(188) if (&User-Name =~ / /) {
(188) if (&User-Name =~ / /) -> FALSE
(188) if (&User-Name =~ /@[^@]*@/ ) {
(188) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(188) if (&User-Name =~ /\.\./ ) {
(188) if (&User-Name =~ /\.\./ ) -> FALSE
(188) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(188) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(188) if (&User-Name =~ /\.$/) {
(188) if (&User-Name =~ /\.$/) -> FALSE
(188) if (&User-Name =~ /(a)\./) {
(188) if (&User-Name =~ /(a)\./) -> FALSE
(188) } # if (&User-Name) = updated
(188) } # policy filter_username = updated
(188) suffix: Checking for suffix after "@"
(188) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(188) suffix: Found realm "UNIBE.CH"
(188) suffix: Adding Realm = "UNIBE.CH"
(188) suffix: Authentication realm is LOCAL
(188) [suffix] = ok
(188) policy deny_no_realm {
(188) if (User-Name && (User-Name !~ /@/)) {
(188) if (User-Name && (User-Name !~ /@/)) -> FALSE
(188) } # policy deny_no_realm = updated
(188) update request {
(188) EXPAND %{toupper:%{Realm}}
(188) --> UNIBE.CH
(188) Realm := UNIBE.CH
(188) } # update request = noop
(188) eap: Peer sent EAP Response (code 2) ID 7 length 136
(188) eap: Continuing tunnel setup
(188) [eap] = ok
(188) } # if (EAP-Message) = ok
(188) } # authorize = updated
(188) Found Auth-Type = eap
(188) # Executing group from file /etc/freeradius/sites-enabled/default
(188) Auth-Type eap {
(188) eap: Removing EAP session with state 0xcf8ae573ca8dfce6
(188) eap: Previous EAP request found for state 0xcf8ae573ca8dfce6, released from the list
(188) eap: Peer sent packet with method EAP PEAP (25)
(188) eap: Calling submodule eap_peap to process data
(188) eap_peap: (TLS) EAP Peer says that the final record size will be 126 bytes
(188) eap_peap: (TLS) EAP Got all data (126 bytes)
(188) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS write server done
(188) eap_peap: (TLS) PEAP - recv TLS 1.2 Handshake, ClientKeyExchange
(188) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS read client key exchange
(188) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS read change cipher spec
(188) eap_peap: (TLS) PEAP - recv TLS 1.2 Handshake, Finished
(188) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS read finished
(188) eap_peap: (TLS) PEAP - send TLS 1.2 ChangeCipherSpec
(188) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS write change cipher spec
(188) eap_peap: (TLS) PEAP - send TLS 1.2 Handshake, Finished
(188) eap_peap: (TLS) PEAP - Handshake state - Server SSLv3/TLS write finished
(188) eap_peap: (TLS) PEAP - Handshake state - SSL negotiation finished successfully
(188) eap_peap: (TLS) PEAP - Connection Established
(188) eap_peap: TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(188) eap_peap: TLS-Session-Version = "TLS 1.2"
(188) eap: Sending EAP Request (code 1) ID 8 length 57
(188) eap: EAP session adding &reply:State = 0xcf8ae573c982fce6
(188) [eap] = handled
(188) if (handled && (Response-Packet-Type == Access-Challenge)) {
(188) EXPAND Response-Packet-Type
(188) --> Access-Challenge
(188) if (handled && (Response-Packet-Type == Access-Challenge)) -> TRUE
(188) if (handled && (Response-Packet-Type == Access-Challenge)) {
(188) attr_filter.access_challenge: EXPAND %{User-Name}
(188) attr_filter.access_challenge: --> xyz(a)unibe.ch
(188) attr_filter.access_challenge: Matched entry DEFAULT at line 12
(188) [attr_filter.access_challenge.post-auth] = updated
(188) [handled] = handled
(188) } # if (handled && (Response-Packet-Type == Access-Challenge)) = handled
(188) } # Auth-Type eap = handled
(188) Using Post-Auth-Type Challenge
(188) Post-Auth-Type sub-section not found. Ignoring.
(188) # Executing group from file /etc/freeradius/sites-enabled/default
(188) session-state: Saving cached attributes
(188) Framed-MTU = 1014
(188) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(188) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(188) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(188) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(188) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(188) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, ClientKeyExchange"
(188) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, Finished"
(188) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 ChangeCipherSpec"
(188) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Finished"
(188) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(188) TLS-Session-Version = "TLS 1.2"
(188) Sent Access-Challenge Id 79 from 130.92.10.33:1812 to 9.9.9.9:60533 length 115
(188) EAP-Message = 0x010800391900140303000101160303002804f99461d03fc2be43b472810aaccc1082398a50bfe278395884ee9a22cacc6e5f0aa86dc8a3021e
(188) Message-Authenticator = 0x00000000000000000000000000000000
(188) State = 0xcf8ae573c982fce6e3b6e72de6bf5cbc
(188) Finished request
Waking up in 2.0 seconds.
(189) Received Access-Request Id 87 from 9.9.9.9:60533 to 130.92.10.33:1812 length 441
(189) User-Name = "xyz(a)unibe.ch"
(189) Service-Type = Framed-User
(189) Cisco-AVPair = "service-type=Framed"
(189) Framed-MTU = 1485
(189) EAP-Message = 0x020800061900
(189) Message-Authenticator = 0xa5b00fd17fe7b04da57e577d073ddcf4
(189) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(189) Cisco-AVPair = "method=dot1x"
(189) Cisco-AVPair = "client-iif-id=3724547122"
(189) Cisco-AVPair = "vlan-id=1876"
(189) NAS-IP-Address = 9.9.9.9
(189) NAS-Port-Type = Wireless-802.11
(189) NAS-Port = 4211
(189) State = 0xcf8ae573c982fce6e3b6e72de6bf5cbc
(189) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(189) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(189) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(189) Calling-Station-Id = "22-e0-73-f2-50-23"
(189) Airespace-Wlan-Id = 98
(189) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(189) WLAN-Group-Cipher = 1027076
(189) WLAN-Pairwise-Cipher = 1027076
(189) WLAN-AKM-Suite = 1027075
(189) Restoring &session-state
(189) &session-state:Framed-MTU = 1014
(189) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(189) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(189) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(189) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(189) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(189) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, ClientKeyExchange"
(189) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, Finished"
(189) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 ChangeCipherSpec"
(189) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Finished"
(189) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(189) &session-state:TLS-Session-Version = "TLS 1.2"
(189) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(189) authorize {
(189) policy rewrite_called_station_id {
(189) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(189) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(189) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(189) update request {
(189) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(189) --> 60-B9-C0-04-C4-40
(189) &Called-Station-Id := 60-B9-C0-04-C4-40
(189) } # update request = noop
(189) if ("%{8}") {
(189) EXPAND %{8}
(189) --> eduroam
(189) if ("%{8}") -> TRUE
(189) if ("%{8}") {
(189) update request {
(189) EXPAND %{8}
(189) --> eduroam
(189) &Called-Station-SSID := eduroam
(189) EXPAND %{Called-Station-Id}:%{8}
(189) --> 60-B9-C0-04-C4-40:eduroam
(189) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(189) } # update request = noop
(189) } # if ("%{8}") = noop
(189) [updated] = updated
(189) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(189) ... skipping else: Preceding "if" was taken
(189) } # policy rewrite_called_station_id = updated
(189) policy rewrite_calling_station_id {
(189) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(189) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(189) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(189) update request {
(189) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(189) --> 22-E0-73-F2-50-23
(189) &Calling-Station-Id := 22-E0-73-F2-50-23
(189) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(189) --> 22:E0:73:F2:50:23
(189) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(189) } # update request = noop
(189) [updated] = updated
(189) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(189) ... skipping else: Preceding "if" was taken
(189) } # policy rewrite_calling_station_id = updated
(189) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(189) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(189) if (Service-Type == Call-Check) {
(189) if (Service-Type == Call-Check) -> FALSE
(189) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(189) EXPAND Packet-Src-IP-Address
(189) --> 9.9.9.9
(189) EXPAND Packet-Src-IP-Address
(189) --> 9.9.9.9
(189) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(189) if (EAP-Message) {
(189) if (EAP-Message) -> TRUE
(189) if (EAP-Message) {
(189) policy filter_username {
(189) if (&User-Name) {
(189) if (&User-Name) -> TRUE
(189) if (&User-Name) {
(189) if (&User-Name =~ / /) {
(189) if (&User-Name =~ / /) -> FALSE
(189) if (&User-Name =~ /@[^@]*@/ ) {
(189) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(189) if (&User-Name =~ /\.\./ ) {
(189) if (&User-Name =~ /\.\./ ) -> FALSE
(189) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(189) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(189) if (&User-Name =~ /\.$/) {
(189) if (&User-Name =~ /\.$/) -> FALSE
(189) if (&User-Name =~ /(a)\./) {
(189) if (&User-Name =~ /(a)\./) -> FALSE
(189) } # if (&User-Name) = updated
(189) } # policy filter_username = updated
(189) suffix: Checking for suffix after "@"
(189) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(189) suffix: Found realm "UNIBE.CH"
(189) suffix: Adding Realm = "UNIBE.CH"
(189) suffix: Authentication realm is LOCAL
(189) [suffix] = ok
(189) policy deny_no_realm {
(189) if (User-Name && (User-Name !~ /@/)) {
(189) if (User-Name && (User-Name !~ /@/)) -> FALSE
(189) } # policy deny_no_realm = updated
(189) update request {
(189) EXPAND %{toupper:%{Realm}}
(189) --> UNIBE.CH
(189) Realm := UNIBE.CH
(189) } # update request = noop
(189) eap: Peer sent EAP Response (code 2) ID 8 length 6
(189) eap: Continuing tunnel setup
(189) [eap] = ok
(189) } # if (EAP-Message) = ok
(189) } # authorize = updated
(189) Found Auth-Type = eap
(189) # Executing group from file /etc/freeradius/sites-enabled/default
(189) Auth-Type eap {
(189) eap: Removing EAP session with state 0xcf8ae573c982fce6
(189) eap: Previous EAP request found for state 0xcf8ae573c982fce6, released from the list
(189) eap: Peer sent packet with method EAP PEAP (25)
(189) eap: Calling submodule eap_peap to process data
(189) eap_peap: (TLS) Peer ACKed our handshake fragment. handshake is finished
(189) eap_peap: Session established. Decoding tunneled attributes
(189) eap_peap: PEAP state TUNNEL ESTABLISHED
(189) eap: Sending EAP Request (code 1) ID 9 length 40
(189) eap: EAP session adding &reply:State = 0xcf8ae573c883fce6
(189) [eap] = handled
(189) if (handled && (Response-Packet-Type == Access-Challenge)) {
(189) EXPAND Response-Packet-Type
(189) --> Access-Challenge
(189) if (handled && (Response-Packet-Type == Access-Challenge)) -> TRUE
(189) if (handled && (Response-Packet-Type == Access-Challenge)) {
(189) attr_filter.access_challenge: EXPAND %{User-Name}
(189) attr_filter.access_challenge: --> xyz(a)unibe.ch
(189) attr_filter.access_challenge: Matched entry DEFAULT at line 12
(189) [attr_filter.access_challenge.post-auth] = updated
(189) [handled] = handled
(189) } # if (handled && (Response-Packet-Type == Access-Challenge)) = handled
(189) } # Auth-Type eap = handled
(189) Using Post-Auth-Type Challenge
(189) Post-Auth-Type sub-section not found. Ignoring.
(189) # Executing group from file /etc/freeradius/sites-enabled/default
(189) session-state: Saving cached attributes
(189) Framed-MTU = 1014
(189) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(189) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(189) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(189) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(189) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(189) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, ClientKeyExchange"
(189) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, Finished"
(189) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 ChangeCipherSpec"
(189) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Finished"
(189) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(189) TLS-Session-Version = "TLS 1.2"
(189) Sent Access-Challenge Id 87 from 130.92.10.33:1812 to 9.9.9.9:60533 length 98
(189) EAP-Message = 0x010900281900170303001d04f99461d03fc2bfcba8de001c3d804bdee9841e17c66ad8e895cc716f
(189) Message-Authenticator = 0x00000000000000000000000000000000
(189) State = 0xcf8ae573c883fce6e3b6e72de6bf5cbc
(189) Finished request
Waking up in 2.0 seconds.
(190) Received Access-Request Id 95 from 9.9.9.9:60533 to 130.92.10.33:1812 length 495
(190) User-Name = "xyz(a)unibe.ch"
(190) Service-Type = Framed-User
(190) Cisco-AVPair = "service-type=Framed"
(190) Framed-MTU = 1485
(190) EAP-Message = 0x0209003c19001703030031205b847b10fba1571aeefaf72e8f9d6bacb5c5b0c60ea6e48b4fbe8b47377db78af34cb6696f2d542aac549b9d859dfb64
(190) Message-Authenticator = 0x4798ae57b2ed9970df767d1ac0b91c74
(190) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(190) Cisco-AVPair = "method=dot1x"
(190) Cisco-AVPair = "client-iif-id=3724547122"
(190) Cisco-AVPair = "vlan-id=1876"
(190) NAS-IP-Address = 9.9.9.9
(190) NAS-Port-Type = Wireless-802.11
(190) NAS-Port = 4211
(190) State = 0xcf8ae573c883fce6e3b6e72de6bf5cbc
(190) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(190) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(190) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(190) Calling-Station-Id = "22-e0-73-f2-50-23"
(190) Airespace-Wlan-Id = 98
(190) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(190) WLAN-Group-Cipher = 1027076
(190) WLAN-Pairwise-Cipher = 1027076
(190) WLAN-AKM-Suite = 1027075
(190) Restoring &session-state
(190) &session-state:Framed-MTU = 1014
(190) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(190) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(190) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(190) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(190) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(190) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, ClientKeyExchange"
(190) &session-state:TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, Finished"
(190) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 ChangeCipherSpec"
(190) &session-state:TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Finished"
(190) &session-state:TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(190) &session-state:TLS-Session-Version = "TLS 1.2"
(190) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(190) authorize {
(190) policy rewrite_called_station_id {
(190) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(190) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(190) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(190) update request {
(190) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(190) --> 60-B9-C0-04-C4-40
(190) &Called-Station-Id := 60-B9-C0-04-C4-40
(190) } # update request = noop
(190) if ("%{8}") {
(190) EXPAND %{8}
(190) --> eduroam
(190) if ("%{8}") -> TRUE
(190) if ("%{8}") {
(190) update request {
(190) EXPAND %{8}
(190) --> eduroam
(190) &Called-Station-SSID := eduroam
(190) EXPAND %{Called-Station-Id}:%{8}
(190) --> 60-B9-C0-04-C4-40:eduroam
(190) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(190) } # update request = noop
(190) } # if ("%{8}") = noop
(190) [updated] = updated
(190) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(190) ... skipping else: Preceding "if" was taken
(190) } # policy rewrite_called_station_id = updated
(190) policy rewrite_calling_station_id {
(190) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(190) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(190) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(190) update request {
(190) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(190) --> 22-E0-73-F2-50-23
(190) &Calling-Station-Id := 22-E0-73-F2-50-23
(190) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(190) --> 22:E0:73:F2:50:23
(190) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(190) } # update request = noop
(190) [updated] = updated
(190) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(190) ... skipping else: Preceding "if" was taken
(190) } # policy rewrite_calling_station_id = updated
(190) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(190) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(190) if (Service-Type == Call-Check) {
(190) if (Service-Type == Call-Check) -> FALSE
(190) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(190) EXPAND Packet-Src-IP-Address
(190) --> 9.9.9.9
(190) EXPAND Packet-Src-IP-Address
(190) --> 9.9.9.9
(190) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(190) if (EAP-Message) {
(190) if (EAP-Message) -> TRUE
(190) if (EAP-Message) {
(190) policy filter_username {
(190) if (&User-Name) {
(190) if (&User-Name) -> TRUE
(190) if (&User-Name) {
(190) if (&User-Name =~ / /) {
(190) if (&User-Name =~ / /) -> FALSE
(190) if (&User-Name =~ /@[^@]*@/ ) {
(190) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(190) if (&User-Name =~ /\.\./ ) {
(190) if (&User-Name =~ /\.\./ ) -> FALSE
(190) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(190) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(190) if (&User-Name =~ /\.$/) {
(190) if (&User-Name =~ /\.$/) -> FALSE
(190) if (&User-Name =~ /(a)\./) {
(190) if (&User-Name =~ /(a)\./) -> FALSE
(190) } # if (&User-Name) = updated
(190) } # policy filter_username = updated
(190) suffix: Checking for suffix after "@"
(190) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(190) suffix: Found realm "UNIBE.CH"
(190) suffix: Adding Realm = "UNIBE.CH"
(190) suffix: Authentication realm is LOCAL
(190) [suffix] = ok
(190) policy deny_no_realm {
(190) if (User-Name && (User-Name !~ /@/)) {
(190) if (User-Name && (User-Name !~ /@/)) -> FALSE
(190) } # policy deny_no_realm = updated
(190) update request {
(190) EXPAND %{toupper:%{Realm}}
(190) --> UNIBE.CH
(190) Realm := UNIBE.CH
(190) } # update request = noop
(190) eap: Peer sent EAP Response (code 2) ID 9 length 60
(190) eap: Continuing tunnel setup
(190) [eap] = ok
(190) } # if (EAP-Message) = ok
(190) } # authorize = updated
(190) Found Auth-Type = eap
(190) # Executing group from file /etc/freeradius/sites-enabled/default
(190) Auth-Type eap {
(190) eap: Removing EAP session with state 0xcf8ae573c883fce6
(190) eap: Previous EAP request found for state 0xcf8ae573c883fce6, released from the list
(190) eap: Peer sent packet with method EAP PEAP (25)
(190) eap: Calling submodule eap_peap to process data
(190) eap_peap: (TLS) EAP Done initial handshake
(190) eap_peap: Session established. Decoding tunneled attributes
(190) eap_peap: PEAP state WAITING FOR INNER IDENTITY
(190) eap_peap: Identity - xyz(a)unibe.ch
(190) eap_peap: Got inner identity 'xyz(a)unibe.ch'
(190) eap_peap: Setting default EAP type for tunneled EAP session
(190) eap_peap: Got tunneled request
(190) eap_peap: EAP-Message = 0x0209001d01646f6d696e69632e7374616c64657240756e6962652e6368
(190) eap_peap: Setting User-Name to xyz(a)unibe.ch
(190) eap_peap: Sending tunneled request to proxy-inner-tunnel
(190) eap_peap: EAP-Message = 0x0209001d01646f6d696e69632e7374616c64657240756e6962652e6368
(190) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1
(190) eap_peap: User-Name = "xyz(a)unibe.ch"
(190) eap_peap: Service-Type = Framed-User
(190) eap_peap: Cisco-AVPair = "service-type=Framed"
(190) eap_peap: Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(190) eap_peap: Cisco-AVPair = "method=dot1x"
(190) eap_peap: Cisco-AVPair = "client-iif-id=3724547122"
(190) eap_peap: Cisco-AVPair = "vlan-id=1876"
(190) eap_peap: Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(190) eap_peap: Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(190) eap_peap: Framed-MTU = 1485
(190) eap_peap: NAS-IP-Address = 9.9.9.9
(190) eap_peap: NAS-Port-Type = Wireless-802.11
(190) eap_peap: NAS-Port = 4211
(190) eap_peap: Called-Station-Id := "60-B9-C0-04-C4-40:eduroam"
(190) eap_peap: Calling-Station-Id := "22-E0-73-F2-50-23"
(190) eap_peap: Airespace-Wlan-Id = 98
(190) eap_peap: NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(190) eap_peap: WLAN-Group-Cipher = 1027076
(190) eap_peap: WLAN-Pairwise-Cipher = 1027076
(190) eap_peap: WLAN-AKM-Suite = 1027075
(190) Virtual server proxy-inner-tunnel received request
(190) EAP-Message = 0x0209001d01646f6d696e69632e7374616c64657240756e6962652e6368
(190) FreeRADIUS-Proxied-To = 127.0.0.1
(190) User-Name = "xyz(a)unibe.ch"
(190) Service-Type = Framed-User
(190) Cisco-AVPair = "service-type=Framed"
(190) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(190) Cisco-AVPair = "method=dot1x"
(190) Cisco-AVPair = "client-iif-id=3724547122"
(190) Cisco-AVPair = "vlan-id=1876"
(190) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(190) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(190) Framed-MTU = 1485
(190) NAS-IP-Address = 9.9.9.9
(190) NAS-Port-Type = Wireless-802.11
(190) NAS-Port = 4211
(190) Called-Station-Id := "60-B9-C0-04-C4-40:eduroam"
(190) Calling-Station-Id := "22-E0-73-F2-50-23"
(190) Airespace-Wlan-Id = 98
(190) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(190) WLAN-Group-Cipher = 1027076
(190) WLAN-Pairwise-Cipher = 1027076
(190) WLAN-AKM-Suite = 1027075
(190) WARNING: Outer and inner identities are the same. User privacy is compromised.
(190) server proxy-inner-tunnel {
(190) # Executing section authorize from file /etc/freeradius/sites-enabled/proxy-inner-tunnel
(190) authorize {
(190) if (User-Name !~ /^([\w-.]{1,}\.[\w-.]{1,}@((unibe\.ch)|(faculty\.unibe\.ch)|(students\.unibe\.ch)|(ext\.unibe\.ch)))|(^[\w-]{1,20}@((campus\.unibe\.ch)|(unibe\.ch)))/) {
(190) if (User-Name !~ /^([\w-.]{1,}\.[\w-.]{1,}@((unibe\.ch)|(faculty\.unibe\.ch)|(students\.unibe\.ch)|(ext\.unibe\.ch)))|(^[\w-]{1,20}@((campus\.unibe\.ch)|(unibe\.ch)))/) -> FALSE
(190) if (!NAS-Port-Type){
(190) if (!NAS-Port-Type) -> FALSE
(190) update control {
(190) &Proxy-To-Realm := REALM-NPS-DEV
(190) } # update control = noop
(190) } # authorize = noop
(190) } # server proxy-inner-tunnel
(190) Virtual server sending reply
(190) eap_peap: Got tunneled reply code 0
(190) eap_peap: Tunnelled authentication will be proxied to REALM-NPS-DEV
(190) eap: WARNING: Tunneled session will be proxied. Not doing EAP
(190) [eap] = handled
(190) if (handled && (Response-Packet-Type == Access-Challenge)) {
(190) EXPAND Response-Packet-Type
(190) -->
(190) if (handled && (Response-Packet-Type == Access-Challenge)) -> FALSE
(190) } # Auth-Type eap = handled
(190) Starting proxy to home server 130.92.14.27 port 1812
(190) server default {
(190) # Executing section pre-proxy from file /etc/freeradius/sites-enabled/default
(190) pre-proxy {
(190) attr_filter.pre-proxy: EXPAND %{Realm}
(190) attr_filter.pre-proxy: --> UNIBE.CH
(190) attr_filter.pre-proxy: Matched entry DEFAULT at line 58
(190) [attr_filter.pre-proxy] = updated
(190) } # pre-proxy = updated
(190) }
(190) Proxying request to home server 130.92.14.27 port 1812 timeout 20.000000
(190) Sent Access-Request Id 190 from 0.0.0.0:38376 to 130.92.14.27:1812 length 195
(190) Operator-Name := "1unibe.ch"
(190) EAP-Message = 0x0209001d01646f6d696e69632e7374616c64657240756e6962652e6368
(190) User-Name = "xyz(a)unibe.ch"
(190) NAS-IP-Address = 9.9.9.9
(190) NAS-Port-Type = Wireless-802.11
(190) Called-Station-Id := "60-B9-C0-04-C4-40:eduroam"
(190) Calling-Station-Id := "22-E0-73-F2-50-23"
(190) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(190) Message-Authenticator = 0x
(190) Proxy-State = 0x3935
Waking up in 0.3 seconds.
(190) Clearing existing &reply: attributes
(190) Received Access-Challenge Id 190 from 130.92.14.27:1812 to 130.92.10.33:38376 length 127
(190) Proxy-State = 0x3935
(190) Session-Timeout = 60
(190) EAP-Message = 0x010a00271a010a002210c83761488cca2718c679660556394dee4141492d4e50532d4544555632
(190) State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(190) Message-Authenticator = 0xa3812c370e044725e89c60fee08004f3
(190) server default {
(190) # Executing section post-proxy from file /etc/freeradius/sites-enabled/default
(190) post-proxy {
(190) attr_filter.post-proxy: EXPAND %{Realm}
(190) attr_filter.post-proxy: --> UNIBE.CH
(190) attr_filter.post-proxy: Matched entry UNIBE.CH at line 102
(190) [attr_filter.post-proxy] = updated
(190) eap: Doing post-proxy callback
(190) eap: Passing reply from proxy back into the tunnel
(190) eap: Got tunneled reply RADIUS code 11
(190) eap: Tunnel-Type := VLAN
(190) eap: Tunnel-Medium-Type := IEEE-802
(190) eap: Proxy-State = 0x3935
(190) eap: EAP-Message = 0x010a00271a010a002210c83761488cca2718c679660556394dee4141492d4e50532d4544555632
(190) eap: State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(190) eap: Message-Authenticator = 0xa3812c370e044725e89c60fee08004f3
(190) eap: Got tunneled Access-Challenge
(190) eap: Reply was handled
(190) eap: Sending EAP Request (code 1) ID 10 length 70
(190) eap: EAP session adding &reply:State = 0xcf8ae573c780fce6
(190) [eap] = ok
(190) } # post-proxy = updated
(190) }
(190) session-state: Saving cached attributes
(190) Framed-MTU = 1014
(190) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.3 Handshake, ClientHello"
(190) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHello"
(190) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Certificate"
(190) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerKeyExchange"
(190) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, ServerHelloDone"
(190) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, ClientKeyExchange"
(190) TLS-Session-Information = "(TLS) PEAP - recv TLS 1.2 Handshake, Finished"
(190) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 ChangeCipherSpec"
(190) TLS-Session-Information = "(TLS) PEAP - send TLS 1.2 Handshake, Finished"
(190) TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(190) TLS-Session-Version = "TLS 1.2"
(190) Using Post-Auth-Type Challenge
(190) Post-Auth-Type sub-section not found. Ignoring.
(190) # Executing group from file /etc/freeradius/sites-enabled/default
(190) Sent Access-Challenge Id 95 from 130.92.10.33:1812 to 9.9.9.9:60533 length 128
(190) EAP-Message = 0x010a00461900170303003b04f99461d03fc2c0ac23d67f4ddb067ebf0aab5a9c002f61bc4a0be3c85a32f413a556f4f955e47114a5bd3076e920126f217073cb89e19f73e9b7
(190) Message-Authenticator = 0x00000000000000000000000000000000
(190) State = 0xcf8ae573c780fce6e3b6e72de6bf5cbc
(190) Finished request
Waking up in 2.0 seconds.
(191) Received Access-Request Id 103 from 9.9.9.9:60533 to 130.92.10.33:1812 length 549
(191) User-Name = "xyz(a)unibe.ch"
(191) Service-Type = Framed-User
(191) Cisco-AVPair = "service-type=Framed"
(191) Framed-MTU = 1485
(191) EAP-Message = 0x020a007219001703030067205b847b10fba1584559915251d4673e0abf889721cd70283f669b7bc2790a707ee10b32db67326f5dc5ff040d06c69d2abac6cc1d42f3121fd59414b1064d38037caa197e338ac30a55ba2f77cc8e976d46335a5dfb2dd86e2f89a299d8ea1d97945192b49dbe
(191) Message-Authenticator = 0xf3f378571c227125d81046d457c56823
(191) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(191) Cisco-AVPair = "method=dot1x"
(191) Cisco-AVPair = "client-iif-id=3724547122"
(191) Cisco-AVPair = "vlan-id=1876"
(191) NAS-IP-Address = 9.9.9.9
(191) NAS-Port-Type = Wireless-802.11
(191) NAS-Port = 4211
(191) State = 0xcf8ae573c780fce6e3b6e72de6bf5cbc
(191) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(191) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(191) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(191) Calling-Station-Id = "22-e0-73-f2-50-23"
(191) Airespace-Wlan-Id = 98
(191) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(191) WLAN-Group-Cipher = 1027076
(191) WLAN-Pairwise-Cipher = 1027076
(191) WLAN-AKM-Suite = 1027075
(191) session-state: No cached attributes
(191) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(191) authorize {
(191) policy rewrite_called_station_id {
(191) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(191) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(191) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(191) update request {
(191) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(191) --> 60-B9-C0-04-C4-40
(191) &Called-Station-Id := 60-B9-C0-04-C4-40
(191) } # update request = noop
(191) if ("%{8}") {
(191) EXPAND %{8}
(191) --> eduroam
(191) if ("%{8}") -> TRUE
(191) if ("%{8}") {
(191) update request {
(191) EXPAND %{8}
(191) --> eduroam
(191) &Called-Station-SSID := eduroam
(191) EXPAND %{Called-Station-Id}:%{8}
(191) --> 60-B9-C0-04-C4-40:eduroam
(191) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(191) } # update request = noop
(191) } # if ("%{8}") = noop
(191) [updated] = updated
(191) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(191) ... skipping else: Preceding "if" was taken
(191) } # policy rewrite_called_station_id = updated
(191) policy rewrite_calling_station_id {
(191) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(191) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(191) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(191) update request {
(191) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(191) --> 22-E0-73-F2-50-23
(191) &Calling-Station-Id := 22-E0-73-F2-50-23
(191) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(191) --> 22:E0:73:F2:50:23
(191) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(191) } # update request = noop
(191) [updated] = updated
(191) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(191) ... skipping else: Preceding "if" was taken
(191) } # policy rewrite_calling_station_id = updated
(191) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(191) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(191) if (Service-Type == Call-Check) {
(191) if (Service-Type == Call-Check) -> FALSE
(191) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(191) EXPAND Packet-Src-IP-Address
(191) --> 9.9.9.9
(191) EXPAND Packet-Src-IP-Address
(191) --> 9.9.9.9
(191) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(191) if (EAP-Message) {
(191) if (EAP-Message) -> TRUE
(191) if (EAP-Message) {
(191) policy filter_username {
(191) if (&User-Name) {
(191) if (&User-Name) -> TRUE
(191) if (&User-Name) {
(191) if (&User-Name =~ / /) {
(191) if (&User-Name =~ / /) -> FALSE
(191) if (&User-Name =~ /@[^@]*@/ ) {
(191) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(191) if (&User-Name =~ /\.\./ ) {
(191) if (&User-Name =~ /\.\./ ) -> FALSE
(191) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(191) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(191) if (&User-Name =~ /\.$/) {
(191) if (&User-Name =~ /\.$/) -> FALSE
(191) if (&User-Name =~ /(a)\./) {
(191) if (&User-Name =~ /(a)\./) -> FALSE
(191) } # if (&User-Name) = updated
(191) } # policy filter_username = updated
(191) suffix: Checking for suffix after "@"
(191) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(191) suffix: Found realm "UNIBE.CH"
(191) suffix: Adding Realm = "UNIBE.CH"
(191) suffix: Authentication realm is LOCAL
(191) [suffix] = ok
(191) policy deny_no_realm {
(191) if (User-Name && (User-Name !~ /@/)) {
(191) if (User-Name && (User-Name !~ /@/)) -> FALSE
(191) } # policy deny_no_realm = updated
(191) update request {
(191) EXPAND %{toupper:%{Realm}}
(191) --> UNIBE.CH
(191) Realm := UNIBE.CH
(191) } # update request = noop
(191) eap: Peer sent EAP Response (code 2) ID 10 length 114
(191) eap: Continuing tunnel setup
(191) [eap] = ok
(191) } # if (EAP-Message) = ok
(191) } # authorize = updated
(191) Found Auth-Type = eap
(191) # Executing group from file /etc/freeradius/sites-enabled/default
(191) Auth-Type eap {
(191) eap: Removing EAP session with state 0xcf8ae573c780fce6
(191) eap: Previous EAP request found for state 0xcf8ae573c780fce6, released from the list
(191) eap: Peer sent packet with method EAP PEAP (25)
(191) eap: Calling submodule eap_peap to process data
(191) eap_peap: (TLS) EAP Done initial handshake
(191) eap_peap: Session established. Decoding tunneled attributes
(191) eap_peap: PEAP state phase2
(191) eap_peap: EAP method MSCHAPv2 (26)
(191) eap_peap: Got tunneled request
(191) eap_peap: EAP-Message = 0x020a00531a020a004e3197d74d4a32fbacd2fa345e05a04b070700000000000000008c45061c2def02f04f327c8c1994b030c364f8a9115efe2a00646f6d696e69632e7374616c64657240756e6962652e6368
(191) eap_peap: Setting User-Name to xyz(a)unibe.ch
(191) eap_peap: Sending tunneled request to proxy-inner-tunnel
(191) eap_peap: EAP-Message = 0x020a00531a020a004e3197d74d4a32fbacd2fa345e05a04b070700000000000000008c45061c2def02f04f327c8c1994b030c364f8a9115efe2a00646f6d696e69632e7374616c64657240756e6962652e6368
(191) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1
(191) eap_peap: User-Name = "xyz(a)unibe.ch"
(191) eap_peap: State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(191) eap_peap: Service-Type = Framed-User
(191) eap_peap: Cisco-AVPair = "service-type=Framed"
(191) eap_peap: Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(191) eap_peap: Cisco-AVPair = "method=dot1x"
(191) eap_peap: Cisco-AVPair = "client-iif-id=3724547122"
(191) eap_peap: Cisco-AVPair = "vlan-id=1876"
(191) eap_peap: Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(191) eap_peap: Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(191) eap_peap: Framed-MTU = 1485
(191) eap_peap: NAS-IP-Address = 9.9.9.9
(191) eap_peap: NAS-Port-Type = Wireless-802.11
(191) eap_peap: NAS-Port = 4211
(191) eap_peap: Called-Station-Id := "60-B9-C0-04-C4-40:eduroam"
(191) eap_peap: Calling-Station-Id := "22-E0-73-F2-50-23"
(191) eap_peap: Airespace-Wlan-Id = 98
(191) eap_peap: NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(191) eap_peap: WLAN-Group-Cipher = 1027076
(191) eap_peap: WLAN-Pairwise-Cipher = 1027076
(191) eap_peap: WLAN-AKM-Suite = 1027075
(191) Virtual server proxy-inner-tunnel received request
(191) EAP-Message = 0x020a00531a020a004e3197d74d4a32fbacd2fa345e05a04b070700000000000000008c45061c2def02f04f327c8c1994b030c364f8a9115efe2a00646f6d696e69632e7374616c64657240756e6962652e6368
(191) FreeRADIUS-Proxied-To = 127.0.0.1
(191) User-Name = "xyz(a)unibe.ch"
(191) State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(191) Service-Type = Framed-User
(191) Cisco-AVPair = "service-type=Framed"
(191) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(191) Cisco-AVPair = "method=dot1x"
(191) Cisco-AVPair = "client-iif-id=3724547122"
(191) Cisco-AVPair = "vlan-id=1876"
(191) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(191) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(191) Framed-MTU = 1485
(191) NAS-IP-Address = 9.9.9.9
(191) NAS-Port-Type = Wireless-802.11
(191) NAS-Port = 4211
(191) Called-Station-Id := "60-B9-C0-04-C4-40:eduroam"
(191) Calling-Station-Id := "22-E0-73-F2-50-23"
(191) Airespace-Wlan-Id = 98
(191) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(191) WLAN-Group-Cipher = 1027076
(191) WLAN-Pairwise-Cipher = 1027076
(191) WLAN-AKM-Suite = 1027075
(191) WARNING: Outer and inner identities are the same. User privacy is compromised.
(191) server proxy-inner-tunnel {
(191) session-state: No cached attributes
(191) # Executing section authorize from file /etc/freeradius/sites-enabled/proxy-inner-tunnel
(191) authorize {
(191) if (User-Name !~ /^([\w-.]{1,}\.[\w-.]{1,}@((unibe\.ch)|(faculty\.unibe\.ch)|(students\.unibe\.ch)|(ext\.unibe\.ch)))|(^[\w-]{1,20}@((campus\.unibe\.ch)|(unibe\.ch)))/) {
(191) if (User-Name !~ /^([\w-.]{1,}\.[\w-.]{1,}@((unibe\.ch)|(faculty\.unibe\.ch)|(students\.unibe\.ch)|(ext\.unibe\.ch)))|(^[\w-]{1,20}@((campus\.unibe\.ch)|(unibe\.ch)))/) -> FALSE
(191) if (!NAS-Port-Type){
(191) if (!NAS-Port-Type) -> FALSE
(191) update control {
(191) &Proxy-To-Realm := REALM-NPS-DEV
(191) } # update control = noop
(191) } # authorize = noop
(191) } # server proxy-inner-tunnel
(191) Virtual server sending reply
(191) eap_peap: Got tunneled reply code 0
(191) eap_peap: Tunnelled authentication will be proxied to REALM-NPS-DEV
(191) eap: WARNING: Tunneled session will be proxied. Not doing EAP
(191) [eap] = handled
(191) if (handled && (Response-Packet-Type == Access-Challenge)) {
(191) EXPAND Response-Packet-Type
(191) -->
(191) if (handled && (Response-Packet-Type == Access-Challenge)) -> FALSE
(191) } # Auth-Type eap = handled
(191) Starting proxy to home server 130.92.14.27 port 1812
(191) server default {
(191) # Executing section pre-proxy from file /etc/freeradius/sites-enabled/default
(191) pre-proxy {
(191) attr_filter.pre-proxy: EXPAND %{Realm}
(191) attr_filter.pre-proxy: --> UNIBE.CH
(191) attr_filter.pre-proxy: Matched entry DEFAULT at line 58
(191) [attr_filter.pre-proxy] = updated
(191) } # pre-proxy = updated
(191) }
(191) Proxying request to home server 130.92.14.27 port 1812 timeout 20.000000
(191) Sent Access-Request Id 191 from 0.0.0.0:38376 to 130.92.14.27:1812 length 288
(191) Operator-Name := "1unibe.ch"
(191) EAP-Message = 0x020a00531a020a004e3197d74d4a32fbacd2fa345e05a04b070700000000000000008c45061c2def02f04f327c8c1994b030c364f8a9115efe2a00646f6d696e69632e7374616c64657240756e6962652e6368
(191) User-Name = "xyz(a)unibe.ch"
(191) State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(191) NAS-IP-Address = 9.9.9.9
(191) NAS-Port-Type = Wireless-802.11
(191) Called-Station-Id := "60-B9-C0-04-C4-40:eduroam"
(191) Calling-Station-Id := "22-E0-73-F2-50-23"
(191) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(191) Message-Authenticator = 0x
(191) Proxy-State = 0x313033
Waking up in 0.3 seconds.
(191) Clearing existing &reply: attributes
(191) Received Access-Challenge Id 191 from 130.92.14.27:1812 to 130.92.10.33:38376 length 140
(191) Proxy-State = 0x313033
(191) Session-Timeout = 60
(191) EAP-Message = 0x010b00331a030a002e533d36323537434330314631324434464143463944453131333631363541363935354444423345344438
(191) State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(191) Message-Authenticator = 0x8ca6aae399c7f203dc1a20ce85e5750b
(191) server default {
(191) # Executing section post-proxy from file /etc/freeradius/sites-enabled/default
(191) post-proxy {
(191) attr_filter.post-proxy: EXPAND %{Realm}
(191) attr_filter.post-proxy: --> UNIBE.CH
(191) attr_filter.post-proxy: Matched entry UNIBE.CH at line 102
(191) [attr_filter.post-proxy] = updated
(191) eap: Doing post-proxy callback
(191) eap: Passing reply from proxy back into the tunnel
(191) eap: Got tunneled reply RADIUS code 11
(191) eap: Tunnel-Type := VLAN
(191) eap: Tunnel-Medium-Type := IEEE-802
(191) eap: Proxy-State = 0x313033
(191) eap: EAP-Message = 0x010b00331a030a002e533d36323537434330314631324434464143463944453131333631363541363935354444423345344438
(191) eap: State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(191) eap: Message-Authenticator = 0x8ca6aae399c7f203dc1a20ce85e5750b
(191) eap: Got tunneled Access-Challenge
(191) eap: Reply was handled
(191) eap: Sending EAP Request (code 1) ID 11 length 82
(191) eap: EAP session adding &reply:State = 0xcf8ae573c681fce6
(191) [eap] = ok
(191) } # post-proxy = updated
(191) }
(191) Using Post-Auth-Type Challenge
(191) Post-Auth-Type sub-section not found. Ignoring.
(191) # Executing group from file /etc/freeradius/sites-enabled/default
(191) Sent Access-Challenge Id 103 from 130.92.10.33:1812 to 9.9.9.9:60533 length 140
(191) EAP-Message = 0x010b00521900170303004704f99461d03fc2c1394041037baef530edfd9b8bf3fa86b0e63dd7b2ccbec2333eb2a290f24dcaa4882575e6ace41e0ab2b5a7b86b753145bb360713633e4a7d4d11d21c93b2d4
(191) Message-Authenticator = 0x00000000000000000000000000000000
(191) State = 0xcf8ae573c681fce6e3b6e72de6bf5cbc
(191) Finished request
Waking up in 1.9 seconds.
(192) Received Access-Request Id 111 from 9.9.9.9:60533 to 130.92.10.33:1812 length 472
(192) User-Name = "xyz(a)unibe.ch"
(192) Service-Type = Framed-User
(192) Cisco-AVPair = "service-type=Framed"
(192) Framed-MTU = 1485
(192) EAP-Message = 0x020b00251900170303001a205b847b10fba159867591b547327317b26e0f7da7607738977b
(192) Message-Authenticator = 0x80bb23fad6417fe1677e1055aac4907e
(192) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(192) Cisco-AVPair = "method=dot1x"
(192) Cisco-AVPair = "client-iif-id=3724547122"
(192) Cisco-AVPair = "vlan-id=1876"
(192) NAS-IP-Address = 9.9.9.9
(192) NAS-Port-Type = Wireless-802.11
(192) NAS-Port = 4211
(192) State = 0xcf8ae573c681fce6e3b6e72de6bf5cbc
(192) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(192) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(192) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(192) Calling-Station-Id = "22-e0-73-f2-50-23"
(192) Airespace-Wlan-Id = 98
(192) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(192) WLAN-Group-Cipher = 1027076
(192) WLAN-Pairwise-Cipher = 1027076
(192) WLAN-AKM-Suite = 1027075
(192) session-state: No cached attributes
(192) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(192) authorize {
(192) policy rewrite_called_station_id {
(192) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(192) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(192) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(192) update request {
(192) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(192) --> 60-B9-C0-04-C4-40
(192) &Called-Station-Id := 60-B9-C0-04-C4-40
(192) } # update request = noop
(192) if ("%{8}") {
(192) EXPAND %{8}
(192) --> eduroam
(192) if ("%{8}") -> TRUE
(192) if ("%{8}") {
(192) update request {
(192) EXPAND %{8}
(192) --> eduroam
(192) &Called-Station-SSID := eduroam
(192) EXPAND %{Called-Station-Id}:%{8}
(192) --> 60-B9-C0-04-C4-40:eduroam
(192) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(192) } # update request = noop
(192) } # if ("%{8}") = noop
(192) [updated] = updated
(192) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(192) ... skipping else: Preceding "if" was taken
(192) } # policy rewrite_called_station_id = updated
(192) policy rewrite_calling_station_id {
(192) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(192) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(192) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(192) update request {
(192) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(192) --> 22-E0-73-F2-50-23
(192) &Calling-Station-Id := 22-E0-73-F2-50-23
(192) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(192) --> 22:E0:73:F2:50:23
(192) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(192) } # update request = noop
(192) [updated] = updated
(192) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(192) ... skipping else: Preceding "if" was taken
(192) } # policy rewrite_calling_station_id = updated
(192) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(192) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(192) if (Service-Type == Call-Check) {
(192) if (Service-Type == Call-Check) -> FALSE
(192) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(192) EXPAND Packet-Src-IP-Address
(192) --> 9.9.9.9
(192) EXPAND Packet-Src-IP-Address
(192) --> 9.9.9.9
(192) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(192) if (EAP-Message) {
(192) if (EAP-Message) -> TRUE
(192) if (EAP-Message) {
(192) policy filter_username {
(192) if (&User-Name) {
(192) if (&User-Name) -> TRUE
(192) if (&User-Name) {
(192) if (&User-Name =~ / /) {
(192) if (&User-Name =~ / /) -> FALSE
(192) if (&User-Name =~ /@[^@]*@/ ) {
(192) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(192) if (&User-Name =~ /\.\./ ) {
(192) if (&User-Name =~ /\.\./ ) -> FALSE
(192) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(192) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(192) if (&User-Name =~ /\.$/) {
(192) if (&User-Name =~ /\.$/) -> FALSE
(192) if (&User-Name =~ /(a)\./) {
(192) if (&User-Name =~ /(a)\./) -> FALSE
(192) } # if (&User-Name) = updated
(192) } # policy filter_username = updated
(192) suffix: Checking for suffix after "@"
(192) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(192) suffix: Found realm "UNIBE.CH"
(192) suffix: Adding Realm = "UNIBE.CH"
(192) suffix: Authentication realm is LOCAL
(192) [suffix] = ok
(192) policy deny_no_realm {
(192) if (User-Name && (User-Name !~ /@/)) {
(192) if (User-Name && (User-Name !~ /@/)) -> FALSE
(192) } # policy deny_no_realm = updated
(192) update request {
(192) EXPAND %{toupper:%{Realm}}
(192) --> UNIBE.CH
(192) Realm := UNIBE.CH
(192) } # update request = noop
(192) eap: Peer sent EAP Response (code 2) ID 11 length 37
(192) eap: Continuing tunnel setup
(192) [eap] = ok
(192) } # if (EAP-Message) = ok
(192) } # authorize = updated
(192) Found Auth-Type = eap
(192) # Executing group from file /etc/freeradius/sites-enabled/default
(192) Auth-Type eap {
(192) eap: Removing EAP session with state 0xcf8ae573c681fce6
(192) eap: Previous EAP request found for state 0xcf8ae573c681fce6, released from the list
(192) eap: Peer sent packet with method EAP PEAP (25)
(192) eap: Calling submodule eap_peap to process data
(192) eap_peap: (TLS) EAP Done initial handshake
(192) eap_peap: Session established. Decoding tunneled attributes
(192) eap_peap: PEAP state phase2
(192) eap_peap: EAP method MSCHAPv2 (26)
(192) eap_peap: Got tunneled request
(192) eap_peap: EAP-Message = 0x020b00061a03
(192) eap_peap: Setting User-Name to xyz(a)unibe.ch
(192) eap_peap: Sending tunneled request to proxy-inner-tunnel
(192) eap_peap: EAP-Message = 0x020b00061a03
(192) eap_peap: FreeRADIUS-Proxied-To = 127.0.0.1
(192) eap_peap: User-Name = "xyz(a)unibe.ch"
(192) eap_peap: State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(192) eap_peap: Service-Type = Framed-User
(192) eap_peap: Cisco-AVPair = "service-type=Framed"
(192) eap_peap: Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(192) eap_peap: Cisco-AVPair = "method=dot1x"
(192) eap_peap: Cisco-AVPair = "client-iif-id=3724547122"
(192) eap_peap: Cisco-AVPair = "vlan-id=1876"
(192) eap_peap: Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(192) eap_peap: Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(192) eap_peap: Framed-MTU = 1485
(192) eap_peap: NAS-IP-Address = 9.9.9.9
(192) eap_peap: NAS-Port-Type = Wireless-802.11
(192) eap_peap: NAS-Port = 4211
(192) eap_peap: Called-Station-Id := "60-B9-C0-04-C4-40:eduroam"
(192) eap_peap: Calling-Station-Id := "22-E0-73-F2-50-23"
(192) eap_peap: Airespace-Wlan-Id = 98
(192) eap_peap: NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(192) eap_peap: WLAN-Group-Cipher = 1027076
(192) eap_peap: WLAN-Pairwise-Cipher = 1027076
(192) eap_peap: WLAN-AKM-Suite = 1027075
(192) Virtual server proxy-inner-tunnel received request
(192) EAP-Message = 0x020b00061a03
(192) FreeRADIUS-Proxied-To = 127.0.0.1
(192) User-Name = "xyz(a)unibe.ch"
(192) State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(192) Service-Type = Framed-User
(192) Cisco-AVPair = "service-type=Framed"
(192) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(192) Cisco-AVPair = "method=dot1x"
(192) Cisco-AVPair = "client-iif-id=3724547122"
(192) Cisco-AVPair = "vlan-id=1876"
(192) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(192) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(192) Framed-MTU = 1485
(192) NAS-IP-Address = 9.9.9.9
(192) NAS-Port-Type = Wireless-802.11
(192) NAS-Port = 4211
(192) Called-Station-Id := "60-B9-C0-04-C4-40:eduroam"
(192) Calling-Station-Id := "22-E0-73-F2-50-23"
(192) Airespace-Wlan-Id = 98
(192) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(192) WLAN-Group-Cipher = 1027076
(192) WLAN-Pairwise-Cipher = 1027076
(192) WLAN-AKM-Suite = 1027075
(192) WARNING: Outer and inner identities are the same. User privacy is compromised.
(192) server proxy-inner-tunnel {
(192) session-state: No cached attributes
(192) # Executing section authorize from file /etc/freeradius/sites-enabled/proxy-inner-tunnel
(192) authorize {
(192) if (User-Name !~ /^([\w-.]{1,}\.[\w-.]{1,}@((unibe\.ch)|(faculty\.unibe\.ch)|(students\.unibe\.ch)|(ext\.unibe\.ch)))|(^[\w-]{1,20}@((campus\.unibe\.ch)|(unibe\.ch)))/) {
(192) if (User-Name !~ /^([\w-.]{1,}\.[\w-.]{1,}@((unibe\.ch)|(faculty\.unibe\.ch)|(students\.unibe\.ch)|(ext\.unibe\.ch)))|(^[\w-]{1,20}@((campus\.unibe\.ch)|(unibe\.ch)))/) -> FALSE
(192) if (!NAS-Port-Type){
(192) if (!NAS-Port-Type) -> FALSE
(192) update control {
(192) &Proxy-To-Realm := REALM-NPS-DEV
(192) } # update control = noop
(192) } # authorize = noop
(192) } # server proxy-inner-tunnel
(192) Virtual server sending reply
(192) eap_peap: Got tunneled reply code 0
(192) eap_peap: Tunnelled authentication will be proxied to REALM-NPS-DEV
(192) eap: WARNING: Tunneled session will be proxied. Not doing EAP
(192) [eap] = handled
(192) if (handled && (Response-Packet-Type == Access-Challenge)) {
(192) EXPAND Response-Packet-Type
(192) -->
(192) if (handled && (Response-Packet-Type == Access-Challenge)) -> FALSE
(192) } # Auth-Type eap = handled
(192) Starting proxy to home server 130.92.14.27 port 1812
(192) server default {
(192) # Executing section pre-proxy from file /etc/freeradius/sites-enabled/default
(192) pre-proxy {
(192) attr_filter.pre-proxy: EXPAND %{Realm}
(192) attr_filter.pre-proxy: --> UNIBE.CH
(192) attr_filter.pre-proxy: Matched entry DEFAULT at line 58
(192) [attr_filter.pre-proxy] = updated
(192) } # pre-proxy = updated
(192) }
(192) Proxying request to home server 130.92.14.27 port 1812 timeout 20.000000
(192) Sent Access-Request Id 192 from 0.0.0.0:38376 to 130.92.14.27:1812 length 211
(192) Operator-Name := "1unibe.ch"
(192) EAP-Message = 0x020b00061a03
(192) User-Name = "xyz(a)unibe.ch"
(192) State = 0x22df03070000013700010200825c0e1b000000000000000000000000000000043a958c65
(192) NAS-IP-Address = 9.9.9.9
(192) NAS-Port-Type = Wireless-802.11
(192) Called-Station-Id := "60-B9-C0-04-C4-40:eduroam"
(192) Calling-Station-Id := "22-E0-73-F2-50-23"
(192) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(192) Message-Authenticator = 0x
(192) Proxy-State = 0x313131
Waking up in 0.3 seconds.
(192) Clearing existing &reply: attributes
(192) Received Access-Accept Id 192 from 130.92.14.27:1812 to 130.92.10.33:38376 length 289
(192) Proxy-State = 0x313131
(192) Class = 0x7374616666
(192) Filter-Id = "staff"
(192) Framed-Protocol = PPP
(192) Service-Type = Framed-User
(192) Tunnel-Medium-Type:0 = IEEE-802
(192) Tunnel-Private-Group-Id:0 = "1874"
(192) Tunnel-Type:0 = VLAN
(192) EAP-Message = 0x030b0004
(192) Class = 0x577206960000013700010200825c0e1b00000000000000000000000001dac0032e975ae0000000000057c996
(192) MS-CHAP-Domain = "\001CAMPUS"
(192) MS-MPPE-Send-Key = 0xfe66eab21e8b02b3e1c4b4f57f508f7a
(192) MS-MPPE-Recv-Key = 0x1d45747249960c52c1ceeaf9378ad8aa
(192) MS-CHAP2-Success = 0x01533d36323537434330314631324434464143463944453131333631363541363935354444423345344438
(192) Message-Authenticator = 0x332c0b8965d8c87621614cec5d9820b5
(192) server default {
(192) # Executing section post-proxy from file /etc/freeradius/sites-enabled/default
(192) post-proxy {
(192) attr_filter.post-proxy: EXPAND %{Realm}
(192) attr_filter.post-proxy: --> UNIBE.CH
(192) attr_filter.post-proxy: Matched entry UNIBE.CH at line 102
(192) [attr_filter.post-proxy] = updated
(192) eap: Doing post-proxy callback
(192) eap: Passing reply from proxy back into the tunnel
(192) eap: Got tunneled reply RADIUS code 2
(192) eap: Tunnel-Type := VLAN
(192) eap: Tunnel-Medium-Type := IEEE-802
(192) eap: Proxy-State = 0x313131
(192) eap: Class = 0x7374616666
(192) eap: Filter-Id = "staff"
(192) eap: Tunnel-Private-Group-Id:0 = "1874"
(192) eap: EAP-Message = 0x030b0004
(192) eap: Class = 0x577206960000013700010200825c0e1b00000000000000000000000001dac0032e975ae0000000000057c996
(192) eap: MS-MPPE-Send-Key = 0xfe66eab21e8b02b3e1c4b4f57f508f7a
(192) eap: MS-MPPE-Recv-Key = 0x1d45747249960c52c1ceeaf9378ad8aa
(192) eap: Message-Authenticator = 0x332c0b8965d8c87621614cec5d9820b5
(192) eap: Tunneled authentication was successful
(192) eap: SUCCESS
(192) eap: Saving tunneled attributes for later
(192) eap: Reply was handled
(192) eap: Sending EAP Request (code 1) ID 12 length 46
(192) eap: EAP session adding &reply:State = 0xcf8ae573c586fce6
(192) [eap] = ok
(192) } # post-proxy = updated
(192) }
(192) Using Post-Auth-Type Challenge
(192) Post-Auth-Type sub-section not found. Ignoring.
(192) # Executing group from file /etc/freeradius/sites-enabled/default
(192) Sent Access-Challenge Id 111 from 130.92.10.33:1812 to 9.9.9.9:60533 length 104
(192) EAP-Message = 0x010c002e1900170303002304f99461d03fc2c2b4dd16ee98eb7b0ed3a137545de5ddc88bf5b3423c2b5f193225fc
(192) Message-Authenticator = 0x00000000000000000000000000000000
(192) State = 0xcf8ae573c586fce6e3b6e72de6bf5cbc
(192) Finished request
Waking up in 1.9 seconds.
(193) Received Access-Request Id 119 from 9.9.9.9:60533 to 130.92.10.33:1812 length 481
(193) User-Name = "xyz(a)unibe.ch"
(193) Service-Type = Framed-User
(193) Cisco-AVPair = "service-type=Framed"
(193) Framed-MTU = 1485
(193) EAP-Message = 0x020c002e19001703030023205b847b10fba15afce16997166d4cb19322461fe577bbdaf9ad0ee9efac33751092a9
(193) Message-Authenticator = 0xb4660f308f2de4f2c559a9a233219dd9
(193) Cisco-AVPair = "audit-session-id=0F2A5C820000093C2FFBA7DF"
(193) Cisco-AVPair = "method=dot1x"
(193) Cisco-AVPair = "client-iif-id=3724547122"
(193) Cisco-AVPair = "vlan-id=1876"
(193) NAS-IP-Address = 9.9.9.9
(193) NAS-Port-Type = Wireless-802.11
(193) NAS-Port = 4211
(193) State = 0xcf8ae573c586fce6e3b6e72de6bf5cbc
(193) Cisco-AVPair = "cisco-wlan-ssid=eduroam"
(193) Cisco-AVPair = "wlan-profile-name=eduroam-DEV"
(193) Called-Station-Id = "60-b9-c0-04-c4-40:eduroam"
(193) Calling-Station-Id = "22-e0-73-f2-50-23"
(193) Airespace-Wlan-Id = 98
(193) NAS-Identifier = "60-b9-c0-04-c4-40:eduroam"
(193) WLAN-Group-Cipher = 1027076
(193) WLAN-Pairwise-Cipher = 1027076
(193) WLAN-AKM-Suite = 1027075
(193) session-state: No cached attributes
(193) # Executing section authorize from file /etc/freeradius/sites-enabled/default
(193) authorize {
(193) policy rewrite_called_station_id {
(193) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(193) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) -> TRUE
(193) if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) {
(193) update request {
(193) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(193) --> 60-B9-C0-04-C4-40
(193) &Called-Station-Id := 60-B9-C0-04-C4-40
(193) } # update request = noop
(193) if ("%{8}") {
(193) EXPAND %{8}
(193) --> eduroam
(193) if ("%{8}") -> TRUE
(193) if ("%{8}") {
(193) update request {
(193) EXPAND %{8}
(193) --> eduroam
(193) &Called-Station-SSID := eduroam
(193) EXPAND %{Called-Station-Id}:%{8}
(193) --> 60-B9-C0-04-C4-40:eduroam
(193) &Called-Station-Id := 60-B9-C0-04-C4-40:eduroam
(193) } # update request = noop
(193) } # if ("%{8}") = noop
(193) [updated] = updated
(193) } # if (&Called-Station-Id && (&Called-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})([^0-9a-f](.+))?$/i)) = updated
(193) ... skipping else: Preceding "if" was taken
(193) } # policy rewrite_called_station_id = updated
(193) policy rewrite_calling_station_id {
(193) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(193) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) -> TRUE
(193) if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) {
(193) update request {
(193) EXPAND %{toupper:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}
(193) --> 22-E0-73-F2-50-23
(193) &Calling-Station-Id := 22-E0-73-F2-50-23
(193) EXPAND %{toupper:%{1}:%{2}:%{3}:%{4}:%{5}:%{6}}
(193) --> 22:E0:73:F2:50:23
(193) &locMacAuth-Calling-Station-Id := 22:E0:73:F2:50:23
(193) } # update request = noop
(193) [updated] = updated
(193) } # if (&Calling-Station-Id && (&Calling-Station-Id =~ /^([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})[^0-9a-f]?([0-9a-f]{2})$/i)) = updated
(193) ... skipping else: Preceding "if" was taken
(193) } # policy rewrite_calling_station_id = updated
(193) if (NAS-Identifier == "uvisrz0215.insel.ch") {
(193) if (NAS-Identifier == "uvisrz0215.insel.ch") -> FALSE
(193) if (Service-Type == Call-Check) {
(193) if (Service-Type == Call-Check) -> FALSE
(193) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) {
(193) EXPAND Packet-Src-IP-Address
(193) --> 9.9.9.9
(193) EXPAND Packet-Src-IP-Address
(193) --> 9.9.9.9
(193) if (Packet-Src-IP-Address == 130.59.31.24 || Packet-Src-IP-Address == 130.59.31.25) -> FALSE
(193) if (EAP-Message) {
(193) if (EAP-Message) -> TRUE
(193) if (EAP-Message) {
(193) policy filter_username {
(193) if (&User-Name) {
(193) if (&User-Name) -> TRUE
(193) if (&User-Name) {
(193) if (&User-Name =~ / /) {
(193) if (&User-Name =~ / /) -> FALSE
(193) if (&User-Name =~ /@[^@]*@/ ) {
(193) if (&User-Name =~ /@[^@]*@/ ) -> FALSE
(193) if (&User-Name =~ /\.\./ ) {
(193) if (&User-Name =~ /\.\./ ) -> FALSE
(193) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) {
(193) if ((&User-Name =~ /@/) && (&User-Name !~ /(a)(.+)\.(.+)$/)) -> FALSE
(193) if (&User-Name =~ /\.$/) {
(193) if (&User-Name =~ /\.$/) -> FALSE
(193) if (&User-Name =~ /(a)\./) {
(193) if (&User-Name =~ /(a)\./) -> FALSE
(193) } # if (&User-Name) = updated
(193) } # policy filter_username = updated
(193) suffix: Checking for suffix after "@"
(193) suffix: Looking up realm "unibe.ch" for User-Name = "xyz(a)unibe.ch"
(193) suffix: Found realm "UNIBE.CH"
(193) suffix: Adding Realm = "UNIBE.CH"
(193) suffix: Authentication realm is LOCAL
(193) [suffix] = ok
(193) policy deny_no_realm {
(193) if (User-Name && (User-Name !~ /@/)) {
(193) if (User-Name && (User-Name !~ /@/)) -> FALSE
(193) } # policy deny_no_realm = updated
(193) update request {
(193) EXPAND %{toupper:%{Realm}}
(193) --> UNIBE.CH
(193) Realm := UNIBE.CH
(193) } # update request = noop
(193) eap: Peer sent EAP Response (code 2) ID 12 length 46
(193) eap: Continuing tunnel setup
(193) [eap] = ok
(193) } # if (EAP-Message) = ok
(193) } # authorize = updated
(193) Found Auth-Type = eap
(193) # Executing group from file /etc/freeradius/sites-enabled/default
(193) Auth-Type eap {
(193) eap: Removing EAP session with state 0xcf8ae573c586fce6
(193) eap: Previous EAP request found for state 0xcf8ae573c586fce6, released from the list
(193) eap: Peer sent packet with method EAP PEAP (25)
(193) eap: Calling submodule eap_peap to process data
(193) eap_peap: (TLS) EAP Done initial handshake
(193) eap_peap: Session established. Decoding tunneled attributes
(193) eap_peap: PEAP state send tlv success
(193) eap_peap: Received EAP-TLV response
(193) eap_peap: Success
(193) eap_peap: Using saved attributes from the original Access-Accept
(193) eap_peap: Tunnel-Type := VLAN
(193) eap_peap: Tunnel-Medium-Type := IEEE-802
(193) eap_peap: Class = 0x7374616666
(193) eap_peap: Filter-Id = "staff"
(193) eap_peap: Tunnel-Private-Group-Id:0 = "1874"
(193) eap_peap: Class = 0x577206960000013700010200825c0e1b00000000000000000000000001dac0032e975ae0000000000057c996
(193) eap: Sending EAP Success (code 3) ID 12 length 4
(193) eap: Freeing handler
(193) [eap] = ok
(193) if (handled && (Response-Packet-Type == Access-Challenge)) {
(193) if (handled && (Response-Packet-Type == Access-Challenge)) -> FALSE
(193) } # Auth-Type eap = ok
(193) # Executing section post-auth from file /etc/freeradius/sites-enabled/default
(193) post-auth {
(193) update {
(193) No attributes updated for RHS &session-state:
(193) } # update = noop
(193) 802.1x_authz_log: EXPAND sp.%{%{reply:Packet-Type}:-format}
(193) 802.1x_authz_log: --> sp.Access-Accept
(193) 802.1x_authz_log: EXPAND %t : AuthZ: (%I) Access-Accept: [%{%{reply:User-Name}:-%{User-Name}}] TLS-Version=%{%{session-state:TLS-Session-Version}:-NULL} TLS-Ciphers=%{%{session-state:TLS-Session-Cipher-Suite}:-NULL} SSID=%{%{request:Called-Station-SSID}:-NULL} Calling-Station-Id=%{%{request:Calling-Station-Id}:-Unknown} Called-Station-Id=%{%{request:Called-Station-Id}:-Unknown} Filter-ID=%{%{reply:Filter-Id}:-NULL} VLAN=%{%{reply:Tunnel-Private-Group-Id}:-NULL} Class=%{%{reply:Class}:-NULL} (from client %{Client-Shortname} port %{%{request:Nas-Port}:-0} operator-name %{%{request:Operator-Name}:-Unknown})
(193) 802.1x_authz_log: --> Fri Nov 15 14:20:45 2024 : AuthZ: (119) Access-Accept: [xyz(a)unibe.ch] TLS-Version=NULL TLS-Ciphers=NULL SSID=eduroam Calling-Station-Id=22-E0-73-F2-50-23 Called-Station-Id=60-B9-C0-04-C4-40:eduroam Filter-ID=staff VLAN=1874 Class=0x7374616666 (from client cisco-wlc-9800-dev-mgmt.wifi.unibe.ch port 4211 operator-name Unknown)
(193) 802.1x_authz_log: EXPAND /var/log/freeradius/authz.log
(193) 802.1x_authz_log: --> /var/log/freeradius/authz.log
(193) [802.1x_authz_log] = ok
(193) policy remove_reply_message_if_eap {
(193) if (&reply:EAP-Message && &reply:Reply-Message) {
(193) if (&reply:EAP-Message && &reply:Reply-Message) -> FALSE
(193) else {
(193) [noop] = noop
(193) } # else = noop
(193) } # policy remove_reply_message_if_eap = noop
(193) } # post-auth = ok
(193) Login OK: [xyz(a)unibe.ch] (from client cisco-wlc-9800-dev-mgmt.wifi.unibe.ch port 4211 cli 22-E0-73-F2-50-23)
(193) Sent Access-Accept Id 119 from 130.92.10.33:1812 to 9.9.9.9:60533 length 264
(193) Tunnel-Type := VLAN
(193) Tunnel-Medium-Type := IEEE-802
(193) Class = 0x7374616666
(193) Filter-Id = "staff"
(193) Tunnel-Private-Group-Id:0 = "1874"
(193) Class = 0x577206960000013700010200825c0e1b00000000000000000000000001dac0032e975ae0000000000057c996
(193) MS-MPPE-Recv-Key = 0xa0c1ae0b7eeb1e5c11689f0921a1cd1bda85111a84912ecbbb853107fe90372a
(193) MS-MPPE-Send-Key = 0x4f4bdb175d9d487f81ddf1e819a82c37de9d37605d47a226923fc335d3e805a4
(193) EAP-Message = 0x030c0004
(193) Message-Authenticator = 0x00000000000000000000000000000000
(193) User-Name = "xyz(a)unibe.ch"
(193) Finished request
Waking up in 1.9 seconds.
If you look at src/main/tls.c, it adds that attribute when the debug output shows "Connection established". And, it prints out the attribute it's added.
(188) eap_peap: (TLS) PEAP - Connection Established
(188) eap_peap: TLS-Session-Cipher-Suite = "ECDHE-RSA-AES256-GCM-SHA384"
(188) eap_peap: TLS-Session-Version = "TLS 1.2"
Why the f**k did I miss this in version 3.2.4? Or was it maybe "reintroduced" in 3.2.6 since I upgraded to this version lately; is is this another “SSL thing” patched by Nick?
- More debugging for SSL ciphers. Patch from Nick Porter.
Nonetheless, I am going to figure out how adjust my linelog module configuration to get it back into the logs, because at the moment I still see NULL (example):
linelog 802.1x_authz_log {
filename = ${logdir}/authz.log
reference = "sp.%{%{reply:Packet-Type}:-format}"
sp {
Access-Accept = "%t : AuthZ: (%I) Access-Accept: [%{%{reply:User-Name}:-%{User-Name}}] TLS-Version=%{%{session-state:TLS-Session-Version}:-NULL} TLS-Ciphers=%{%{session-state:TLS-Session-Cipher-Suite}:-NULL} SSID=%{%{request:Called-Station-SSID}:-NULL} Calling-Station-Id=%{%{request:Calling-Station-Id}:-Unknown} Called-Station-Id=%{%{request:Called-Station-Id}:-Unknown} Filter-ID=%{%{reply:Filter-Id}:-NULL} VLAN=%{%{reply:Tunnel-Private-Group-Id}:-NULL} Class=%{%{reply:Class}:-NULL} (from client %{Client-Shortname} port %{%{request:Nas-Port}:-0} operator-name %{%{request:Operator-Name}:-Unknown})"
}
}
Fri Nov 15 14:25:34 2024 : AuthZ: (11) Access-Accept: [anonymous(a)unibe.ch] TLS-Version=NULL TLS-Ciphers=NULL SSID=eduroam Calling-Station-Id=02-00-00-00-00-01 Called-Station-Id=11-22-33-44-55-66:eduroam Filter-ID=external VLAN=1876 Class=0x65787465726e616c (from client localhost port 0 operator-name Unknown)
4
7
Hi,
Openssl is upgraded to 3.2.2 in Rocky linux 9.5 and hence I would request
you to upgrade the rpm's with openssl 3.2.2.
Thank you.
2
2
i just can’t make it work. I just want to see executing section session in my debug with Access-Request
iPhone’umdan gönderildi
> Erdal Emlik <erdalemlik(a)icloud.com> şunları yazdı (12 Oca 2025 14:19):
> Thank you Igor,
> I will give it a try.
> iPhone’umdan gönderildi
>
>> Igor Smitran <sigor(a)blic.net> şunları yazdı (12 Oca 2025 02:47):
>> As far as i remember you need to enable checkrad.pl to have Simultaneous-Use working.
>> SQL query will retrieve row with Accounting-Stop=NULL and get session id from it.
>> checkrad.pl will check if that session id exists on NAS or this row was not updated (missing/missed acct stop packet from NAS).
>> If session exists on NAS then freeradius will respond with reject message "Simultaneous use not allowed".
>> Other members of group can correct me if i am wrong regarding this.
>> Igor
>>>> On 12.1.2025. 00:20, Erdal Emlik via Freeradius-Users wrote:
>>> Hi, I’m trying to implement Simultaneous-Use with postgreSQL. I add Simultaneous-Use for every group at radgroupcheck. Uncommented simultaneous use checking queries at queries.conf. Uncommented sql in default and inner-tunnel at session section. Trying to simulate Simultaneous-Use from proxy. I know NAS sending accounting-request. I’m sending manual Access-Request and I sent Accounting-Response before that and I see at my radacct table I have accounting record with acctstoptime is null. So at the end of the day, I have access-request, I have accounting at the radacct table which it has acctstoptime is null. I expect to see when I send Access-Request RADIUS should return Access-Reject because user already have session with acctstoptime is null. Here is my radius debug and Im not seeing executing of session section in my debug.
>>> FreeRADIUS Version 3.2.1
>>> 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 ...
>>> ...
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
2
1