Freeradius-Users
Threads by month
- ----- 2026 -----
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
May 2024
- 19 participants
- 20 discussions
30 May '24
I'm working on setting up FreeRADIUS on some pretty small servers with limited memory. I was wondering if anyone here has tips or tricks for reducing the memory footprint of FreeRADIUS. Are there any config tweaks to lower memory usage? I am running version 3.2.3 and the servers have about 256MB of RAM.
Thanks,
Pete
3
6
Hi,
I've attempted to upgrade FreeRADIUS from 3.2.3 to 3.2.4 on two test
machines running Ubuntu 24. After the upgrade, I noticed the directory
structure was off, with files residing outside of the 3.0 directory, and
running freeradius -X would no longer load (not really the purpose of this
message).
Did I do something wrong with the upgrade?
Below is the output of the folder structure of ls -al /etc/freeradius after
doing the upgrade.
jonathan@vm:~$ sudo ls -al /etc/freeradius/
total 168
drwxr-s--- 10 freerad freerad 4096 May 30 03:37 .
drwxr-xr-x 110 root root 4096 May 30 03:37 ..
drwxr-xr-x 9 freerad freerad 4096 May 30 03:37 3.0
drwxr-xr-x 3 root root 4096 May 30 03:37 certs
-rw-r--r-- 1 root root 9054 May 29 18:42 clients.conf
-rw-r--r-- 1 root root 1420 May 29 18:42 dictionary
-rw-r--r-- 1 root root 2661 May 29 18:42 experimental.conf
lrwxrwxrwx 1 root root 28 May 29 18:42 hints ->
mods-config/preprocess/hints
lrwxrwxrwx 1 root root 33 May 29 18:42 huntgroups ->
mods-config/preprocess/huntgroups
drwxr-xr-x 2 root root 4096 May 30 03:37 mods-available
drwxr-xr-x 10 root root 4096 May 30 03:37 mods-config
drwxr-xr-x 2 root root 4096 May 30 03:37 mods-enabled
-rw-r--r-- 1 root root 52 May 29 18:42 panic.gdb
drwxr-xr-x 2 root root 4096 May 30 03:37 policy.d
-rw-r--r-- 1 root root 29779 May 29 18:42 proxy.conf
-rw-r--r-- 1 root root 31890 May 29 18:42 radiusd.conf
-rw-r--r-- 1 root root 20754 May 29 18:42 README.rst
drwxr-xr-x 2 root root 4096 May 30 03:37 sites-available
drwxr-xr-x 2 root root 4096 May 30 03:37 sites-enabled
-rw-r--r-- 1 root root 3470 May 29 18:42 templates.conf
-rw-r--r-- 1 root root 8536 May 29 18:42 trigger.conf
lrwxrwxrwx 1 root root 27 May 29 18:42 users ->
mods-config/files/authorize
jonathan@vm:~$ sudo ls -al /etc/freeradius/3.0
total 176
drwxr-xr-x 9 freerad freerad 4096 May 30 03:37 .
drwxr-s--- 10 freerad freerad 4096 May 30 03:37 ..
drwxr-xr-x 2 freerad freerad 4096 May 1 08:22 certs
-rw-r----- 1 freerad freerad 8330 May 21 02:03 clients.conf
-rw-r----- 1 root root 8323 May 11 09:59 clients.conf.orig
-rw-r----- 1 freerad freerad 1420 Mar 31 05:22 dictionary
-rw-r----- 1 freerad freerad 2661 Mar 31 05:22 experimental.conf
drwxr-xr-x 2 freerad freerad 4096 May 21 19:12 mods-available
drwxr-xr-x 10 freerad freerad 4096 May 1 08:22 mods-config
drwxr-xr-x 2 freerad freerad 4096 May 1 08:22 mods-enabled
-rw-r----- 1 freerad freerad 52 Mar 31 05:22 panic.gdb
drwxr-xr-x 2 freerad freerad 4096 May 1 08:22 policy.d
-rw-r----- 1 freerad freerad 30005 May 21 20:41 proxy.conf
-rw-r----- 1 freerad freerad 30773 Mar 31 05:22 radiusd.conf
-rw-r----- 1 freerad freerad 20754 Mar 31 05:22 README.rst
drwxr-xr-x 2 freerad freerad 4096 May 30 03:18 sites-available
drwxr-xr-x 2 freerad freerad 4096 May 21 04:36 sites-enabled
-rw-r----- 1 freerad freerad 3470 Mar 31 05:22 templates.conf
-rw-r----- 1 freerad freerad 8536 Mar 31 05:22 trigger.conf
And here's the output from running sudo apt install freeradius:
jonathan@vm:~$ sudo apt install freeradius
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer
required:
freetds-common libct4 libdbi-perl
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
freeradius-common freeradius-config freeradius-python3 freeradius-utils
libfreeradius3 libpcre3
Suggested packages:
freeradius-ldap freeradius-postgresql freeradius-mysql freeradius-krb5
snmp
The following NEW packages will be installed:
freeradius-python3 libpcre3
The following packages will be upgraded:
freeradius freeradius-common freeradius-config freeradius-utils
libfreeradius3
5 upgraded, 2 newly installed, 0 to remove and 21 not upgraded.
Need to get 2,815 kB of archives.
After this operation, 2,025 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu noble/universe amd64 libpcre3
amd64 2:8.39-15build1 [248 kB]
Get:2 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius-common all 3.2.4-1 [248 kB]
Get:3 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius-config amd64 3.2.4-1 [216 kB]
Get:4 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius-utils amd64 3.2.4-1 [116 kB]
Get:5 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius amd64 3.2.4-1 [1,761 kB]
Get:6 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 libfreeradius3 amd64 3.2.4-1 [204 kB]
Get:7 http://packages.networkradius.com/freeradius-3.2/ubuntu/noble
noble/main amd64 freeradius-python3 amd64 3.2.4-1 [21.5 kB]
Fetched 2,815 kB in 2s (1,462 kB/s)
(Reading database ... 84870 files and directories currently installed.)
Preparing to unpack .../0-freeradius-common_3.2.4-1_all.deb ...
Unpacking freeradius-common (3.2.4-1) over (3.2.3+dfsg-2build7) ...
Preparing to unpack .../1-freeradius-config_3.2.4-1_amd64.deb ...
Unpacking freeradius-config (3.2.4-1) over (3.2.3+dfsg-2build7) ...
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/sites-enabled': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/sites-available': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/policy.d': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-enabled': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/unbound': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/moonshot-targeted-ids/sqlite':
Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/moonshot-targeted-ids/postgresql':
Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/moonshot-targeted-ids/mysql':
Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/moonshot-targeted-ids': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/postgresql/extras': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/postgresql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/oracle': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/ndb': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mysql/extras/wimax': Directory
not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mysql/extras': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mssql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main/mongo': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/main': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/sqlite': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/postgresql': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/oracle': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp/mssql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool-dhcp': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/postgresql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/oracle': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/mssql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool/mongo': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/ippool': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/postgresql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/oracle': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp/mssql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/dhcp': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/cui/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/cui/postgresql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/cui/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/cui': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/counter/sqlite': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/counter/postgresql': Directory not
empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/counter/mysql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql/counter': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/sql': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/realm': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/python3': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/preprocess': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/perl': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/files': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config/attr_filter': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-config': Directory not empty
dpkg: warning: unable to delete old directory
'/etc/freeradius/3.0/mods-available': Directory not empty
dpkg: warning: unable to delete old directory '/etc/freeradius/3.0/certs':
Directory not empty
dpkg: warning: unable to delete old directory '/etc/freeradius/3.0':
Directory not empty
Selecting previously unselected package libpcre3:amd64.
Preparing to unpack .../2-libpcre3_2%3a8.39-15build1_amd64.deb ...
Unpacking libpcre3:amd64 (2:8.39-15build1) ...
Preparing to unpack .../3-freeradius-utils_3.2.4-1_amd64.deb ...
Unpacking freeradius-utils (3.2.4-1) over (3.2.3+dfsg-2build7) ...
Preparing to unpack .../4-freeradius_3.2.4-1_amd64.deb ...
Unpacking freeradius (3.2.4-1) over (3.2.3+dfsg-2build7) ...
Preparing to unpack .../5-libfreeradius3_3.2.4-1_amd64.deb ...
Unpacking libfreeradius3 (3.2.4-1) over (3.2.3+dfsg-2build7) ...
Selecting previously unselected package freeradius-python3.
Preparing to unpack .../6-freeradius-python3_3.2.4-1_amd64.deb ...
Unpacking freeradius-python3 (3.2.4-1) ...
Setting up libpcre3:amd64 (2:8.39-15build1) ...
Setting up freeradius-common (3.2.4-1) ...
Setting up libfreeradius3 (3.2.4-1) ...
Setting up freeradius-config (3.2.4-1) ...
Setting up freeradius (3.2.4-1) ...
Installing new version of config file /etc/default/freeradius ...
Installing new version of config file /etc/init.d/freeradius ...
Installing new version of config file /etc/logrotate.d/freeradius ...
Warning: The unit file, source configuration file or drop-ins of
freeradius.service changed on disk. Run 'systemctl daemon-reload' to reload
units.
Job for freeradius.service failed because the control process exited with
error code.
See "systemctl status freeradius.service" and "journalctl -xeu
freeradius.service" for details.
invoke-rc.d: initscript freeradius, action "restart" failed.
● freeradius.service - FreeRADIUS multi-protocol policy server
Loaded: loaded (/usr/lib/systemd/system/freeradius.service; enabled;
preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu
2024-05-30 03:37:48 UTC; 57ms ago
Docs: man:radiusd(8)
man:radiusd.conf(5)
http://wiki.freeradius.org/
http://networkradius.com/doc/
Process: 1926 ExecStartPre=/usr/sbin/freeradius $FREERADIUS_OPTIONS -Cx
-lstdout (code=exited, status=1/FAILURE)
CPU: 219ms
Warning: The unit file, source configuration file or drop-ins of
freeradius.service changed on disk. Run 'systemctl daemon-reload' to reload
units.
Setting up freeradius-python3 (3.2.4-1) ...
Warning: The unit file, source configuration file or drop-ins of
freeradius.service changed on disk. Run 'systemctl daemon-reload' to reload
units.
freeradius.service is not active, cannot reload.
invoke-rc.d: initscript freeradius, action "force-reload" failed.
Setting up freeradius-utils (3.2.4-1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.1) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
2
1
28 May '24
The FreeRADIUS DHCP 3.2.2 Server on Ubuntu 24.04 I had issues with last time starts without displaying errors, however as I'm testing the functionalities by sending packets from a different host, the DHCP server only receives requests without replying.
Thanks in advance,
Kind regards,
Jan-Willem Curinckx
The dhcpclient sending packets from a different host:
root@frituur:~# dhcpclient 193.191.177.231:6700 -f dhcp-packet.txt -x discover
DHCP-Client-Identifier := 0x616263313233
----------------------------------------------------------------------
DHCP-Opcode = 0x01
DHCP-Hardware-Type = 0x01
DHCP-Hardware-Address-Length = 0x06
DHCP-Hop-Count = 0x00
DHCP-Transaction-Id = 0x3603f3f3
DHCP-Number-of-Seconds = 0x0000
DHCP-Flags = 0x0000
DHCP-Client-IP-Address = 0x00000000
DHCP-Your-IP-Address = 0x00000000
DHCP-Server-IP-Address = 0x00000000
DHCP-Gateway-IP-Address = 0x00000000
DHCP-Client-Hardware-Address = 0x0201aabbccdd00000000000000000000
DHCP-Server-Host-Name = 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
DHCP-Boot-Filename = 0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
63 82 53 63
35 01 01
3d 06 61 62 63 31 32 33
----------------------------------------------------------------------
dhcpclient: Error receiving reply: Failed reading DHCP socket: Resource temporarily unavailable
root@frituur:~# dhcpclient 193.191.177.231:6700 -f dhcp-packet.txt -x auto
DHCP-Client-Identifier := 0x616263313233
----------------------------------------------------------------------
DHCP-Opcode = 0x01
DHCP-Hardware-Type = 0x01
DHCP-Hardware-Address-Length = 0x06
DHCP-Hop-Count = 0x00
DHCP-Transaction-Id = 0xdc1551df
DHCP-Number-of-Seconds = 0x0000
DHCP-Flags = 0x0000
DHCP-Client-IP-Address = 0x00000000
DHCP-Your-IP-Address = 0x00000000
DHCP-Server-IP-Address = 0x00000000
DHCP-Gateway-IP-Address = 0x00000000
DHCP-Client-Hardware-Address = 0x0201aabbccdd00000000000000000000
DHCP-Server-Host-Name = 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
DHCP-Boot-Filename = 0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
63 82 53 63
35 01 01
3d 06 61 62 63 31 32 33
----------------------------------------------------------------------
dhcpclient: Error receiving reply: Failed reading DHCP socket: Resource temporarily unavailable
The logs from using freeradius -X:
FreeRADIUS Version 3.2.3
Copyright (C) 1999-2022 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/share/freeradius/dictionary
including dictionary file /usr/share/freeradius/dictionary.dhcp
including dictionary file /usr/share/freeradius/dictionary.vqp
including dictionary file /etc/freeradius/dictionary
including configuration file /etc/freeradius/radiusd.conf
including configuration file /etc/freeradius/proxy.conf
including configuration file /etc/freeradius/clients.conf
including files in directory /etc/freeradius/mods-enabled/
including configuration file /etc/freeradius/mods-enabled/unpack
including configuration file /etc/freeradius/mods-enabled/radutmp
including configuration file /etc/freeradius/mods-enabled/always
including configuration file /etc/freeradius/mods-enabled/eap
including configuration file /etc/freeradius/mods-enabled/sradutmp
including configuration file /etc/freeradius/mods-enabled/exec
including configuration file /etc/freeradius/mods-enabled/date
including configuration file /etc/freeradius/mods-enabled/unix
including configuration file /etc/freeradius/mods-enabled/detail
including configuration file /etc/freeradius/mods-enabled/digest
including configuration file /etc/freeradius/mods-enabled/ntlm_auth
including configuration file /etc/freeradius/mods-enabled/replicate
including configuration file /etc/freeradius/mods-enabled/files
including configuration file /etc/freeradius/mods-enabled/echo
including configuration file /etc/freeradius/mods-enabled/dhcp_sqlippool
including configuration file /etc/freeradius/mods-config/sql/ippool-dhcp/mysql/queries.conf
including configuration file /etc/freeradius/mods-enabled/expr
including configuration file /etc/freeradius/mods-enabled/logintime
including configuration file /etc/freeradius/mods-enabled/linelog
including configuration file /etc/freeradius/mods-enabled/attr_filter
including configuration file /etc/freeradius/mods-enabled/soh
including configuration file /etc/freeradius/mods-enabled/chap
including configuration file /etc/freeradius/mods-enabled/expiration
including configuration file /etc/freeradius/mods-enabled/dhcp_sql
including configuration file /etc/freeradius/mods-config/sql/dhcp/mysql/queries.conf
including configuration file /etc/freeradius/mods-enabled/dynamic_clients
including configuration file /etc/freeradius/mods-enabled/preprocess
including configuration file /etc/freeradius/mods-enabled/passwd
including configuration file /etc/freeradius/mods-enabled/detail.log
including configuration file /etc/freeradius/mods-enabled/mschap
including configuration file /etc/freeradius/mods-enabled/pap
including configuration file /etc/freeradius/mods-enabled/totp
including configuration file /etc/freeradius/mods-enabled/realm
including configuration file /etc/freeradius/mods-enabled/utf8
including files in directory /etc/freeradius/policy.d/
including configuration file /etc/freeradius/policy.d/cui
including configuration file /etc/freeradius/policy.d/eap
including configuration file /etc/freeradius/policy.d/control
including configuration file /etc/freeradius/policy.d/operator-name
including configuration file /etc/freeradius/policy.d/canonicalization
including configuration file /etc/freeradius/policy.d/moonshot-targeted-ids
including configuration file /etc/freeradius/policy.d/debug
including configuration file /etc/freeradius/policy.d/abfab-tr
including configuration file /etc/freeradius/policy.d/dhcp
including configuration file /etc/freeradius/policy.d/rfc7542
including configuration file /etc/freeradius/policy.d/accounting
including configuration file /etc/freeradius/policy.d/filter
including files in directory /etc/freeradius/sites-enabled/
including configuration file /etc/freeradius/sites-enabled/inner-tunnel
including configuration file /etc/freeradius/sites-enabled/default
including configuration file /etc/freeradius/sites-enabled/dhcp
main {
security {
user = "freerad"
group = "freerad"
allow_core_dumps = no
}
name = "freeradius"
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/freeradius"
run_dir = "/var/run/freeradius"
}
main {
name = "freeradius"
prefix = "/usr"
localstatedir = "/var"
sbindir = "/usr/sbin"
logdir = "/var/log/freeradius"
run_dir = "/var/run/freeradius"
libdir = "/usr/lib/freeradius"
radacctdir = "/var/log/freeradius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 16384
postauth_client_lost = no
pidfile = "/var/run/freeradius/freeradius.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
home_server localhost {
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
}
recv_coa {
}
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = <<< secret >>>
nas_type = "other"
proto = "*"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client localhost_ipv6 {
ipv6addr = ::1
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debugger not attached
systemd watchdog is disabled
# Creating Auth-Type = mschap
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
# Creating Auth-Type = digest
# Creating Autz-Type = New-TLS-Connection
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_unpack
# Loading module "unpack" from file /etc/freeradius/mods-enabled/unpack
# Loaded module rlm_radutmp
# Loading module "radutmp" from file /etc/freeradius/mods-enabled/radutmp
radutmp {
filename = "/var/log/freeradius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_always
# Loading module "reject" from file /etc/freeradius/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /etc/freeradius/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /etc/freeradius/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /etc/freeradius/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /etc/freeradius/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /etc/freeradius/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /etc/freeradius/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /etc/freeradius/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /etc/freeradius/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_eap
# Loading module "eap" from file /etc/freeradius/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
}
# Loading module "sradutmp" from file /etc/freeradius/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/var/log/freeradius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_exec
# Loading module "exec" from file /etc/freeradius/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_date
# Loading module "date" from file /etc/freeradius/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file /etc/freeradius/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_unix
# Loading module "unix" from file /etc/freeradius/mods-enabled/unix
unix {
radwtmp = "/var/log/freeradius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_detail
# Loading module "detail" from file /etc/freeradius/mods-enabled/detail
detail {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_digest
# Loading module "digest" from file /etc/freeradius/mods-enabled/digest
# Loading module "ntlm_auth" from file /etc/freeradius/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_replicate
# Loading module "replicate" from file /etc/freeradius/mods-enabled/replicate
# Loaded module rlm_files
# Loading module "files" from file /etc/freeradius/mods-enabled/files
files {
filename = "/etc/freeradius/mods-config/files/authorize"
acctusersfile = "/etc/freeradius/mods-config/files/accounting"
preproxy_usersfile = "/etc/freeradius/mods-config/files/pre-proxy"
}
# Loading module "echo" from file /etc/freeradius/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loaded module rlm_sqlippool
# Loading module "dhcp_sqlippool" from file /etc/freeradius/mods-enabled/dhcp_sqlippool
sqlippool dhcp_sqlippool {
sql_module_instance = "dhcp_sql"
lease_duration = 7200
pool_name = "Pool-Name"
default_pool = "main_pool"
attribute_name = "DHCP-Your-IP-Address"
req_attribute_name = "DHCP-Requested-IP-Address"
allocate_begin = "START TRANSACTION"
allocate_clear = ""
allocate_clear_timeout = 1
allocate_existing = "SELECT framedipaddress FROM dhcpippool WHERE pool_name = '%{control:Pool-Name}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND `status` IN ('dynamic', 'static') ORDER BY expiry_time DESC LIMIT 1 FOR UPDATE SKIP LOCKED"
allocate_requested = "SELECT framedipaddress FROM dhcpippool WHERE pool_name = '%{control:Pool-Name}' AND framedipaddress = '%{%{DHCP-Requested-IP-Address}:-0.0.0.0}' AND `status` = 'dynamic' AND expiry_time < NOW() FOR UPDATE SKIP LOCKED"
allocate_find = "SELECT framedipaddress FROM dhcpippool WHERE pool_name = '%{control:Pool-Name}' AND expiry_time < NOW() AND `status` = 'dynamic' ORDER BY expiry_time LIMIT 1 FOR UPDATE SKIP LOCKED"
allocate_update = "UPDATE dhcpippool SET gateway = '%{DHCP-Gateway-IP-Address}', pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}', expiry_time = NOW() + INTERVAL 10 SECOND WHERE framedipaddress = '%I'"
allocate_commit = "COMMIT"
pool_check = "SELECT id FROM dhcpippool WHERE pool_name='%{control:Pool-Name}' LIMIT 1"
start_begin = ""
start_update = "UPDATE dhcpippool SET gateway = '', pool_key = '', expiry_time = NOW() WHERE pool_name = '%{control:Pool-Name}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND framedipaddress <> '%{DHCP-Requested-IP-Address}' AND expiry_time > NOW() AND `status` = 'dynamic'"
start_commit = ""
alive_begin = ""
alive_update = "UPDATE dhcpippool SET expiry_time = NOW() + INTERVAL 7200 SECOND, counter = counter + 1 WHERE pool_name = '%{control:Pool-Name}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND framedipaddress = '%{%{DHCP-Requested-IP-Address}:-%{DHCP-Client-IP-Address}}'"
alive_commit = ""
stop_begin = ""
stop_clear = "UPDATE dhcpippool SET gateway = '', pool_key = '', expiry_time = NOW() WHERE pool_name = '%{control:Pool-Name}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND framedipaddress = '%{DHCP-Client-IP-Address}' AND `status` = 'dynamic'"
stop_commit = ""
on_begin = ""
on_clear = ""
on_commit = ""
off_begin = ""
off_clear = "UPDATE dhcpippool SET status = 'declined' WHERE pool_name = '%{control:Pool-Name}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND framedipaddress = '%{DHCP-Requested-IP-Address}'"
off_commit = ""
messages {
exists = "DHCP: Existing IP: %{reply:DHCP-Your-IP-Address} (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
success = "DHCP: Allocated IP: %{reply:DHCP-Your-IP-Address} from %{control:Pool-Name} (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
clear = "DHCP: Released IP %{DHCP-Client-IP-Address} (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
failed = "DHCP: IP Allocation FAILED from %{control:Pool-Name} (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
nopool = "DHCP: No Pool-Name defined (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
}
}
# Loaded module rlm_expr
# Loading module "expr" from file /etc/freeradius/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loaded module rlm_logintime
# Loading module "logintime" from file /etc/freeradius/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_linelog
# Loading module "linelog" from file /etc/freeradius/mods-enabled/linelog
linelog {
filename = "/var/log/freeradius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /etc/freeradius/mods-enabled/linelog
linelog log_accounting {
filename = "/var/log/freeradius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/etc/freeradius/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/etc/freeradius/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/etc/freeradius/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.coa" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.coa {
filename = "/etc/freeradius/mods-config/attr_filter/coa"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_soh
# Loading module "soh" from file /etc/freeradius/mods-enabled/soh
soh {
dhcp = yes
}
# Loaded module rlm_chap
# Loading module "chap" from file /etc/freeradius/mods-enabled/chap
# Loaded module rlm_expiration
# Loading module "expiration" from file /etc/freeradius/mods-enabled/expiration
# Loaded module rlm_sql
# Loading module "dhcp_sql" from file /etc/freeradius/mods-enabled/dhcp_sql
sql dhcp_sql {
driver = "rlm_sql_mysql"
server = "localhost"
port = 3306
login = "radius"
password = <<< secret >>>
radius_db = "radius"
read_groups = no
read_profiles = yes
read_clients = no
delete_stale_sessions = yes
sql_user_name = "%{control:DHCP-SQL-Option-Identifier}"
default_user_profile = ""
client_query = "SELECT id,nasname,shortname,type,secret FROM nas"
authorize_reply_query = "SELECT id, identifier, attribute, value, Op FROM dhcpreply WHERE identifier = '%{SQL-User-Name}' AND context = '%{control:DHCP-SQL-Option-Context}' ORDER BY id"
authorize_group_reply_query = "SELECT id, groupname, attribute, value, op FROM dhcpgroupreply WHERE groupname = '%{dhcp_sql-SQL-Group}' AND context = '%{control:DHCP-SQL-Option-Context}' ORDER BY id"
group_membership_query = "SELECT groupnme FROM dhcpgroup WHERE identifier='%{SQL-User-Name}' AND context = '%{control:DHCP-SQL-Option-Context}' ORDER BY priority"
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
auto_escape = no
accounting {
reference = ".query"
type {
accounting-on {
}
accounting-off {
}
start {
}
interim-update {
}
stop {
}
}
}
post-auth {
reference = ".query"
}
}
rlm_sql (dhcp_sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
Creating attribute dhcp_sql-SQL-Group
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file /etc/freeradius/mods-enabled/dynamic_clients
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /etc/freeradius/mods-enabled/preprocess
preprocess {
huntgroups = "/etc/freeradius/mods-config/preprocess/huntgroups"
hints = "/etc/freeradius/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /etc/freeradius/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loading module "auth_log" from file /etc/freeradius/mods-enabled/detail.log
detail auth_log {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /etc/freeradius/mods-enabled/detail.log
detail reply_log {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
detail post_proxy_log {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /etc/freeradius/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loaded module rlm_pap
# Loading module "pap" from file /etc/freeradius/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_totp
# Loading module "totp" from file /etc/freeradius/mods-enabled/totp
# Loaded module rlm_realm
# Loading module "IPASS" from file /etc/freeradius/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /etc/freeradius/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "bangpath" from file /etc/freeradius/mods-enabled/realm
realm bangpath {
format = "prefix"
delimiter = "!"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /etc/freeradius/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /etc/freeradius/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_utf8
# Loading module "utf8" from file /etc/freeradius/mods-enabled/utf8
instantiate {
}
# Instantiating module "reject" from file /etc/freeradius/mods-enabled/always
# Instantiating module "fail" from file /etc/freeradius/mods-enabled/always
# Instantiating module "ok" from file /etc/freeradius/mods-enabled/always
# Instantiating module "handled" from file /etc/freeradius/mods-enabled/always
# Instantiating module "invalid" from file /etc/freeradius/mods-enabled/always
# Instantiating module "userlock" from file /etc/freeradius/mods-enabled/always
# Instantiating module "notfound" from file /etc/freeradius/mods-enabled/always
# Instantiating module "noop" from file /etc/freeradius/mods-enabled/always
# Instantiating module "updated" from file /etc/freeradius/mods-enabled/always
# Instantiating module "eap" from file /etc/freeradius/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
# Linked to sub-module rlm_eap_gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/etc/freeradius/certs"
pem_file_type = yes
private_key_file = "/etc/freeradius/certs/server.pem"
certificate_file = "/etc/freeradius/certs/server.pem"
ca_file = "/etc/freeradius/certs/ca.pem"
private_key_password = <<< secret >>>
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 = ""
tls_max_version = "1.2"
tls_min_version = "1.2"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "md5"
copy_request_to_tunnel = no
use_tunneled_reply = no
virtual_server = "inner-tunnel"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = no
use_tunneled_reply = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "detail" from file /etc/freeradius/mods-enabled/detail
# Instantiating module "files" from file /etc/freeradius/mods-enabled/files
reading pairlist file /etc/freeradius/mods-config/files/authorize
reading pairlist file /etc/freeradius/mods-config/files/accounting
reading pairlist file /etc/freeradius/mods-config/files/pre-proxy
# Instantiating module "dhcp_sqlippool" from file /etc/freeradius/mods-enabled/dhcp_sqlippool
# Instantiating module "dhcp_sql" from file /etc/freeradius/mods-enabled/dhcp_sql
rlm_sql_mysql: libmysql version: 8.0.36
mysql {
tls {
ca_file = "/etc/ssl/certs/ca-cert.pem"
ca_path = "/etc/ssl/certs/"
certificate_file = "/etc/ssl/certs/private/client-cert.pem"
private_key_file = "/etc/ssl/certs/private/client-key.pem"
cipher = "DHE-RSA-AES256-SHA:AES128-SHA"
tls_required = no
check_cert = no
check_cert_cn = no
}
warnings = "auto"
}
rlm_sql (dhcp_sql): Attempting to connect to database "radius"
rlm_sql (dhcp_sql): Initialising connection pool
pool {
start = 5
min = 3
max = 32
spare = 10
uses = 0
lifetime = 0
cleanup_interval = 30
idle_timeout = 60
retry_delay = 30
max_retries = 5
spread = no
}
rlm_sql (dhcp_sql): Opening additional connection (0), 1 of 32 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket, server version 5.5.5-10.11.7-MariaDB-2ubuntu2, protocol version 10
rlm_sql (dhcp_sql): Opening additional connection (1), 1 of 31 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket, server version 5.5.5-10.11.7-MariaDB-2ubuntu2, protocol version 10
rlm_sql (dhcp_sql): Opening additional connection (2), 1 of 30 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket, server version 5.5.5-10.11.7-MariaDB-2ubuntu2, protocol version 10
rlm_sql (dhcp_sql): Opening additional connection (3), 1 of 29 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket, server version 5.5.5-10.11.7-MariaDB-2ubuntu2, protocol version 10
rlm_sql (dhcp_sql): Opening additional connection (4), 1 of 28 pending slots used
rlm_sql_mysql: Starting connect to MySQL server
WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
rlm_sql_mysql: Connected to database 'radius' on Localhost via UNIX socket, server version 5.5.5-10.11.7-MariaDB-2ubuntu2, protocol version 10
# Instantiating module "logintime" from file /etc/freeradius/mods-enabled/logintime
# Instantiating module "linelog" from file /etc/freeradius/mods-enabled/linelog
# Instantiating module "log_accounting" from file /etc/freeradius/mods-enabled/linelog
# Instantiating module "attr_filter.post-proxy" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/post-proxy
# Instantiating module "attr_filter.pre-proxy" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/pre-proxy
# Instantiating module "attr_filter.access_reject" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/access_reject
# Instantiating module "attr_filter.access_challenge" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/access_challenge
# Instantiating module "attr_filter.accounting_response" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/accounting_response
# Instantiating module "attr_filter.coa" from file /etc/freeradius/mods-enabled/attr_filter
reading pairlist file /etc/freeradius/mods-config/attr_filter/coa
# Instantiating module "expiration" from file /etc/freeradius/mods-enabled/expiration
# Instantiating module "preprocess" from file /etc/freeradius/mods-enabled/preprocess
reading pairlist file /etc/freeradius/mods-config/preprocess/huntgroups
reading pairlist file /etc/freeradius/mods-config/preprocess/hints
# Instantiating module "etc_passwd" from file /etc/freeradius/mods-enabled/passwd
rlm_passwd: nfields: 3 keyfield 0(User-Name) listable: no
# Instantiating module "auth_log" from file /etc/freeradius/mods-enabled/detail.log
rlm_detail (auth_log): 'User-Password' suppressed, will not appear in detail output
# Instantiating module "reply_log" from file /etc/freeradius/mods-enabled/detail.log
# Instantiating module "pre_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
# Instantiating module "post_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
# Instantiating module "mschap" from file /etc/freeradius/mods-enabled/mschap
rlm_mschap (mschap): using internal authentication
# Instantiating module "pap" from file /etc/freeradius/mods-enabled/pap
# Instantiating module "IPASS" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "suffix" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "bangpath" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "realmpercent" from file /etc/freeradius/mods-enabled/realm
# Instantiating module "ntdomain" from file /etc/freeradius/mods-enabled/realm
} # modules
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/freeradius/radiusd.conf
} # server
server inner-tunnel { # from file /etc/freeradius/sites-enabled/inner-tunnel
# Loading authenticate {...}
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 session {...}
# Loading post-proxy {...}
# Loading post-auth {...}
# Skipping contents of 'if' as it is always 'false' -- /etc/freeradius/sites-enabled/inner-tunnel:366
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
} # server inner-tunnel
server default { # from file /etc/freeradius/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 {...}
Compiling Autz-Type New-TLS-Connection for attr Autz-Type
# Loading preacct {...}
# Loading accounting {...}
# Loading post-proxy {...}
# Loading post-auth {...}
Compiling Post-Auth-Type REJECT for attr Post-Auth-Type
Compiling Post-Auth-Type Challenge for attr Post-Auth-Type
Compiling Post-Auth-Type Client-Lost for attr Post-Auth-Type
} # server default
server dhcp { # from file /etc/freeradius/sites-enabled/dhcp
# Loading dhcp DHCP-Discover {...}
Compiling dhcp DHCP-Discover for attr DHCP-Message-Type
# Loading dhcp DHCP-Request {...}
Compiling dhcp DHCP-Request for attr DHCP-Message-Type
# Loading dhcp DHCP-Decline {...}
Compiling dhcp DHCP-Decline for attr DHCP-Message-Type
# Loading dhcp DHCP-Inform {...}
Compiling dhcp DHCP-Inform for attr DHCP-Message-Type
# Loading dhcp DHCP-Release {...}
Compiling dhcp DHCP-Release for attr DHCP-Message-Type
# Loading dhcp DHCP-Lease-Query {...}
Compiling dhcp DHCP-Lease-Query for attr DHCP-Message-Type
} # server dhcp
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = 127.0.0.1
port = 18120
}
listen {
type = "auth"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipaddr = *
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "auth"
ipv6addr = ::
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "acct"
ipv6addr = ::
port = 0
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
listen {
type = "dhcp"
ipaddr = 193.191.177.231
port = 6700
performance {
skip_duplicate_checks = no
}
src_ipaddr = 193.191.177.231
}
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address :: port 1812 bound to server default
Listening on acct address :: port 1813 bound to server default
Listening on dhcp interface ens18 address 193.191.177.231 port 6700 bound to server dhcp
Listening on proxy address * port 48665
Listening on proxy address :: port 53697
Ready to process requests
Received DHCP-Discover of Id e0807a36 from 193.191.177.230:6701 to 193.191.177.231:6700
DHCP-Opcode = Client-Message
DHCP-Hardware-Type = Ethernet
DHCP-Hardware-Address-Length = 6
DHCP-Hop-Count = 0
DHCP-Transaction-Id = 3766516278
DHCP-Number-of-Seconds = 0
DHCP-Flags = 0
DHCP-Client-IP-Address = 0.0.0.0
DHCP-Your-IP-Address = 0.0.0.0
DHCP-Server-IP-Address = 0.0.0.0
DHCP-Gateway-IP-Address = 0.0.0.0
DHCP-Client-Hardware-Address = 02:01:aa:bb:cc:dd
DHCP-Message-Type = DHCP-Discover
DHCP-Client-Identifier = 0x616263313233
DHCP-Network-Subnet = 0.0.0.0/32
(0) Received code 1025 Id 3766516278 from 193.191.177.230:6701 to 193.191.177.231:6700 length 300
(0) DHCP-Opcode = Client-Message
(0) DHCP-Hardware-Type = Ethernet
(0) DHCP-Hardware-Address-Length = 6
(0) DHCP-Hop-Count = 0
(0) DHCP-Transaction-Id = 3766516278
(0) DHCP-Number-of-Seconds = 0
(0) DHCP-Flags = 0
(0) DHCP-Client-IP-Address = 0.0.0.0
(0) DHCP-Your-IP-Address = 0.0.0.0
(0) DHCP-Server-IP-Address = 0.0.0.0
(0) DHCP-Gateway-IP-Address = 0.0.0.0
(0) DHCP-Client-Hardware-Address = 02:01:aa:bb:cc:dd
(0) DHCP-Message-Type = DHCP-Discover
(0) DHCP-Client-Identifier = 0x616263313233
(0) DHCP-Network-Subnet = 0.0.0.0/32
Trying sub-section dhcp DHCP-Discover {...}
(0) dhcp DHCP-Discover {
(0) update control {
(0) &DHCP-DHCP-Server-Identifier = 193.191.177.231
(0) } # update control = noop
(0) policy dhcp_common {
(0) update reply {
(0) &DHCP-Domain-Name-Server = 127.0.0.1
(0) &DHCP-Domain-Name-Server += 127.0.0.2
(0) &DHCP-Subnet-Mask = 255.255.255.0
(0) &DHCP-Router-Address = 192.0.2.1
(0) &DHCP-Broadcast-Address = 192.0.2.255
(0) &DHCP-IP-Address-Lease-Time = 7200
(0) &DHCP-DHCP-Server-Identifier = &control:DHCP-DHCP-Server-Identifier -> 193.191.177.231
(0) } # update reply = noop
(0) } # policy dhcp_common = noop
(0) update reply {
(0) &DHCP-Your-IP-Address := 1.2.3.4
(0) } # update reply = noop
(0) } # dhcp DHCP-Discover = noop
(0) Not sending reply to client.
(0) Finished request
(0) Cleaning up request packet ID 3766516278 with timestamp +66 due to done
Ready to process requests
Received DHCP-Discover of Id 3603f3f3 from 193.191.177.230:6701 to 193.191.177.231:6700
DHCP-Opcode = Client-Message
DHCP-Hardware-Type = Ethernet
DHCP-Hardware-Address-Length = 6
DHCP-Hop-Count = 0
DHCP-Transaction-Id = 906228723
DHCP-Number-of-Seconds = 0
DHCP-Flags = 0
DHCP-Client-IP-Address = 0.0.0.0
DHCP-Your-IP-Address = 0.0.0.0
DHCP-Server-IP-Address = 0.0.0.0
DHCP-Gateway-IP-Address = 0.0.0.0
DHCP-Client-Hardware-Address = 02:01:aa:bb:cc:dd
DHCP-Message-Type = DHCP-Discover
DHCP-Client-Identifier = 0x616263313233
DHCP-Network-Subnet = 0.0.0.0/32
(1) Received code 1025 Id 906228723 from 193.191.177.230:6701 to 193.191.177.231:6700 length 300
(1) DHCP-Opcode = Client-Message
(1) DHCP-Hardware-Type = Ethernet
(1) DHCP-Hardware-Address-Length = 6
(1) DHCP-Hop-Count = 0
(1) DHCP-Transaction-Id = 906228723
(1) DHCP-Number-of-Seconds = 0
(1) DHCP-Flags = 0
(1) DHCP-Client-IP-Address = 0.0.0.0
(1) DHCP-Your-IP-Address = 0.0.0.0
(1) DHCP-Server-IP-Address = 0.0.0.0
(1) DHCP-Gateway-IP-Address = 0.0.0.0
(1) DHCP-Client-Hardware-Address = 02:01:aa:bb:cc:dd
(1) DHCP-Message-Type = DHCP-Discover
(1) DHCP-Client-Identifier = 0x616263313233
(1) DHCP-Network-Subnet = 0.0.0.0/32
Trying sub-section dhcp DHCP-Discover {...}
(1) dhcp DHCP-Discover {
(1) update control {
(1) &DHCP-DHCP-Server-Identifier = 193.191.177.231
(1) } # update control = noop
(1) policy dhcp_common {
(1) update reply {
(1) &DHCP-Domain-Name-Server = 127.0.0.1
(1) &DHCP-Domain-Name-Server += 127.0.0.2
(1) &DHCP-Subnet-Mask = 255.255.255.0
(1) &DHCP-Router-Address = 192.0.2.1
(1) &DHCP-Broadcast-Address = 192.0.2.255
(1) &DHCP-IP-Address-Lease-Time = 7200
(1) &DHCP-DHCP-Server-Identifier = &control:DHCP-DHCP-Server-Identifier -> 193.191.177.231
(1) } # update reply = noop
(1) } # policy dhcp_common = noop
(1) update reply {
(1) &DHCP-Your-IP-Address := 1.2.3.4
(1) } # update reply = noop
(1) } # dhcp DHCP-Discover = noop
(1) Not sending reply to client.
(1) Finished request
(1) Cleaning up request packet ID 906228723 with timestamp +90 due to done
Ready to process requests
Received DHCP-Discover of Id dc1551df from 193.191.177.230:6701 to 193.191.177.231:6700
DHCP-Opcode = Client-Message
DHCP-Hardware-Type = Ethernet
DHCP-Hardware-Address-Length = 6
DHCP-Hop-Count = 0
DHCP-Transaction-Id = 3692384735
DHCP-Number-of-Seconds = 0
DHCP-Flags = 0
DHCP-Client-IP-Address = 0.0.0.0
DHCP-Your-IP-Address = 0.0.0.0
DHCP-Server-IP-Address = 0.0.0.0
DHCP-Gateway-IP-Address = 0.0.0.0
DHCP-Client-Hardware-Address = 02:01:aa:bb:cc:dd
DHCP-Message-Type = DHCP-Discover
DHCP-Client-Identifier = 0x616263313233
DHCP-Network-Subnet = 0.0.0.0/32
(2) Received code 1025 Id 3692384735 from 193.191.177.230:6701 to 193.191.177.231:6700 length 300
(2) DHCP-Opcode = Client-Message
(2) DHCP-Hardware-Type = Ethernet
(2) DHCP-Hardware-Address-Length = 6
(2) DHCP-Hop-Count = 0
(2) DHCP-Transaction-Id = 3692384735
(2) DHCP-Number-of-Seconds = 0
(2) DHCP-Flags = 0
(2) DHCP-Client-IP-Address = 0.0.0.0
(2) DHCP-Your-IP-Address = 0.0.0.0
(2) DHCP-Server-IP-Address = 0.0.0.0
(2) DHCP-Gateway-IP-Address = 0.0.0.0
(2) DHCP-Client-Hardware-Address = 02:01:aa:bb:cc:dd
(2) DHCP-Message-Type = DHCP-Discover
(2) DHCP-Client-Identifier = 0x616263313233
(2) DHCP-Network-Subnet = 0.0.0.0/32
Trying sub-section dhcp DHCP-Discover {...}
(2) dhcp DHCP-Discover {
(2) update control {
(2) &DHCP-DHCP-Server-Identifier = 193.191.177.231
(2) } # update control = noop
(2) policy dhcp_common {
(2) update reply {
(2) &DHCP-Domain-Name-Server = 127.0.0.1
(2) &DHCP-Domain-Name-Server += 127.0.0.2
(2) &DHCP-Subnet-Mask = 255.255.255.0
(2) &DHCP-Router-Address = 192.0.2.1
(2) &DHCP-Broadcast-Address = 192.0.2.255
(2) &DHCP-IP-Address-Lease-Time = 7200
(2) &DHCP-DHCP-Server-Identifier = &control:DHCP-DHCP-Server-Identifier -> 193.191.177.231
(2) } # update reply = noop
(2) } # policy dhcp_common = noop
(2) update reply {
(2) &DHCP-Your-IP-Address := 1.2.3.4
(2) } # update reply = noop
(2) } # dhcp DHCP-Discover = noop
(2) Not sending reply to client.
(2) Finished request
(2) Cleaning up request packet ID 3692384735 with timestamp +502 due to done
Ready to process requests
2
1
We're Trying to set up FreeRADIUS 3.2.2 as a DHCP server on Ubuntu 24.04, we've been having the same issue for a while now, where FreeRADIUS can't start the service because of an error.
Kind regards,
In the logs upon executing 'freeradius -X':
FreeRADIUS Version 3.2.3
Copyright (C) 1999-2022 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/share/freeradius/dictionary
including dictionary file /usr/share/freeradius/dictionary.dhcp
including dictionary file /usr/share/freeradius/dictionary.vqp
including dictionary file /etc/freeradius/dictionary
including configuration file /etc/freeradius/radiusd.conf
including configuration file /etc/freeradius/proxy.conf
including configuration file /etc/freeradius/clients.conf
including files in directory /etc/freeradius/mods-enabled/
including configuration file /etc/freeradius/mods-enabled/unpack
including configuration file /etc/freeradius/mods-enabled/radutmp
including configuration file /etc/freeradius/mods-enabled/always
including configuration file /etc/freeradius/mods-enabled/eap
including configuration file /etc/freeradius/mods-enabled/sradutmp
including configuration file /etc/freeradius/mods-enabled/exec
including configuration file /etc/freeradius/mods-enabled/date
including configuration file /etc/freeradius/mods-enabled/unix
including configuration file /etc/freeradius/mods-enabled/detail
including configuration file /etc/freeradius/mods-enabled/digest
including configuration file /etc/freeradius/mods-enabled/ntlm_auth
including configuration file /etc/freeradius/mods-enabled/replicate
including configuration file /etc/freeradius/mods-enabled/files
including configuration file /etc/freeradius/mods-enabled/echo
including configuration file /etc/freeradius/mods-enabled/dhcp_sqlippool
including configuration file /etc/freeradius/mods-config/sql/ippool-dhcp/mysql/queries.conf
including configuration file /etc/freeradius/mods-enabled/expr
including configuration file /etc/freeradius/mods-enabled/logintime
including configuration file /etc/freeradius/mods-enabled/linelog
including configuration file /etc/freeradius/mods-enabled/attr_filter
including configuration file /etc/freeradius/mods-enabled/soh
including configuration file /etc/freeradius/mods-enabled/chap
including configuration file /etc/freeradius/mods-enabled/expiration
including configuration file /etc/freeradius/mods-enabled/dhcp_sql
including configuration file /etc/freeradius/mods-config/sql/dhcp/mysql/queries.conf
including configuration file /etc/freeradius/mods-enabled/dynamic_clients
including configuration file /etc/freeradius/mods-enabled/preprocess
including configuration file /etc/freeradius/mods-enabled/passwd
including configuration file /etc/freeradius/mods-enabled/detail.log
including configuration file /etc/freeradius/mods-enabled/mschap
including configuration file /etc/freeradius/mods-enabled/pap
including configuration file /etc/freeradius/mods-enabled/totp
including configuration file /etc/freeradius/mods-enabled/realm
including configuration file /etc/freeradius/mods-enabled/utf8
including files in directory /etc/freeradius/policy.d/
including configuration file /etc/freeradius/policy.d/cui
including configuration file /etc/freeradius/policy.d/eap
including configuration file /etc/freeradius/policy.d/control
including configuration file /etc/freeradius/policy.d/operator-name
including configuration file /etc/freeradius/policy.d/canonicalization
including configuration file /etc/freeradius/policy.d/moonshot-targeted-ids
including configuration file /etc/freeradius/policy.d/debug
including configuration file /etc/freeradius/policy.d/abfab-tr
including configuration file /etc/freeradius/policy.d/dhcp
including configuration file /etc/freeradius/policy.d/rfc7542
including configuration file /etc/freeradius/policy.d/accounting
including configuration file /etc/freeradius/policy.d/filter
including files in directory /etc/freeradius/sites-enabled/
including configuration file /etc/freeradius/sites-enabled/inner-tunnel
including configuration file /etc/freeradius/sites-enabled/default
including configuration file /etc/freeradius/sites-enabled/dhcp
main {
security {
user = "freerad"
group = "freerad"
allow_core_dumps = no
}
name = "freeradius"
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/freeradius"
run_dir = "/var/run/freeradius"
}
main {
name = "freeradius"
prefix = "/usr"
localstatedir = "/var"
sbindir = "/usr/sbin"
logdir = "/var/log/freeradius"
run_dir = "/var/run/freeradius"
libdir = "/usr/lib/freeradius"
radacctdir = "/var/log/freeradius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 16384
postauth_client_lost = no
pidfile = "/var/run/freeradius/freeradius.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
colourise = yes
msg_denied = "You are already logged in - access denied"
}
resources {
}
security {
max_attributes = 200
reject_delay = 1.000000
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
home_server localhost {
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
}
recv_coa {
}
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
require_message_authenticator = no
secret = <<< secret >>>
nas_type = "other"
proto = "*"
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client localhost_ipv6 {
ipv6addr = ::1
require_message_authenticator = no
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
Debugger not attached
# Creating Auth-Type = mschap
# Creating Auth-Type = eap
# Creating Auth-Type = PAP
# Creating Auth-Type = CHAP
# Creating Auth-Type = MS-CHAP
# Creating Auth-Type = digest
# Creating Autz-Type = New-TLS-Connection
radiusd: #### Instantiating modules ####
modules {
# Loaded module rlm_unpack
# Loading module "unpack" from file /etc/freeradius/mods-enabled/unpack
# Loaded module rlm_radutmp
# Loading module "radutmp" from file /etc/freeradius/mods-enabled/radutmp
radutmp {
filename = "/var/log/freeradius/radutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 384
caller_id = yes
}
# Loaded module rlm_always
# Loading module "reject" from file /etc/freeradius/mods-enabled/always
always reject {
rcode = "reject"
simulcount = 0
mpp = no
}
# Loading module "fail" from file /etc/freeradius/mods-enabled/always
always fail {
rcode = "fail"
simulcount = 0
mpp = no
}
# Loading module "ok" from file /etc/freeradius/mods-enabled/always
always ok {
rcode = "ok"
simulcount = 0
mpp = no
}
# Loading module "handled" from file /etc/freeradius/mods-enabled/always
always handled {
rcode = "handled"
simulcount = 0
mpp = no
}
# Loading module "invalid" from file /etc/freeradius/mods-enabled/always
always invalid {
rcode = "invalid"
simulcount = 0
mpp = no
}
# Loading module "userlock" from file /etc/freeradius/mods-enabled/always
always userlock {
rcode = "userlock"
simulcount = 0
mpp = no
}
# Loading module "notfound" from file /etc/freeradius/mods-enabled/always
always notfound {
rcode = "notfound"
simulcount = 0
mpp = no
}
# Loading module "noop" from file /etc/freeradius/mods-enabled/always
always noop {
rcode = "noop"
simulcount = 0
mpp = no
}
# Loading module "updated" from file /etc/freeradius/mods-enabled/always
always updated {
rcode = "updated"
simulcount = 0
mpp = no
}
# Loaded module rlm_eap
# Loading module "eap" from file /etc/freeradius/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
}
# Loading module "sradutmp" from file /etc/freeradius/mods-enabled/sradutmp
radutmp sradutmp {
filename = "/var/log/freeradius/sradutmp"
username = "%{User-Name}"
case_sensitive = yes
check_with_nas = yes
permissions = 420
caller_id = no
}
# Loaded module rlm_exec
# Loading module "exec" from file /etc/freeradius/mods-enabled/exec
exec {
wait = no
input_pairs = "request"
shell_escape = yes
timeout = 10
}
# Loaded module rlm_date
# Loading module "date" from file /etc/freeradius/mods-enabled/date
date {
format = "%b %e %Y %H:%M:%S %Z"
utc = no
}
# Loading module "wispr2date" from file /etc/freeradius/mods-enabled/date
date wispr2date {
format = "%Y-%m-%dT%H:%M:%S"
utc = no
}
# Loaded module rlm_unix
# Loading module "unix" from file /etc/freeradius/mods-enabled/unix
unix {
radwtmp = "/var/log/freeradius/radwtmp"
}
Creating attribute Unix-Group
# Loaded module rlm_detail
# Loading module "detail" from file /etc/freeradius/mods-enabled/detail
detail {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_digest
# Loading module "digest" from file /etc/freeradius/mods-enabled/digest
# Loading module "ntlm_auth" from file /etc/freeradius/mods-enabled/ntlm_auth
exec ntlm_auth {
wait = yes
program = "/path/to/ntlm_auth --request-nt-key --domain=MYDOMAIN --username=%{mschap:User-Name} --password=%{User-Password}"
shell_escape = yes
}
# Loaded module rlm_replicate
# Loading module "replicate" from file /etc/freeradius/mods-enabled/replicate
# Loaded module rlm_files
# Loading module "files" from file /etc/freeradius/mods-enabled/files
files {
filename = "/etc/freeradius/mods-config/files/authorize"
acctusersfile = "/etc/freeradius/mods-config/files/accounting"
preproxy_usersfile = "/etc/freeradius/mods-config/files/pre-proxy"
}
# Loading module "echo" from file /etc/freeradius/mods-enabled/echo
exec echo {
wait = yes
program = "/bin/echo %{User-Name}"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
# Loaded module rlm_sqlippool
# Loading module "dhcp_sqlippool" from file /etc/freeradius/mods-enabled/dhcp_sqlippool
sqlippool dhcp_sqlippool {
sql_module_instance = "dhcp_sql"
lease_duration = 7200
pool_name = "IP-Pool"
default_pool = "main_pool"
attribute_name = "DHCP-Your-IP-Address"
req_attribute_name = "DHCP-Requested-IP-Address"
allocate_begin = "START TRANSACTION"
allocate_clear = ""
allocate_clear_timeout = 1
allocate_existing = "SELECT framedipaddress FROM dhcpippool WHERE pool_name = '%{control:IP-Pool}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND `status` IN ('dynamic', 'static') ORDER BY expiry_time DESC LIMIT 1 FOR UPDATE SKIP LOCKED"
allocate_requested = "SELECT framedipaddress FROM dhcpippool WHERE pool_name = '%{control:IP-Pool}' AND framedipaddress = '%{%{DHCP-Requested-IP-Address}:-0.0.0.0}' AND `status` = 'dynamic' AND expiry_time < NOW() FOR UPDATE SKIP LOCKED"
allocate_find = "SELECT framedipaddress FROM dhcpippool WHERE pool_name = '%{control:IP-Pool}' AND expiry_time < NOW() AND `status` = 'dynamic' ORDER BY expiry_time LIMIT 1 FOR UPDATE SKIP LOCKED"
allocate_update = "UPDATE dhcpippool SET gateway = '%{DHCP-Gateway-IP-Address}', pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}', expiry_time = NOW() + INTERVAL 10 SECOND WHERE framedipaddress = '%I'"
allocate_commit = "COMMIT"
pool_check = "SELECT id FROM dhcpippool WHERE pool_name='%{control:IP-Pool}' LIMIT 1"
start_begin = ""
start_update = "UPDATE dhcpippool SET gateway = '', pool_key = '', expiry_time = NOW() WHERE pool_name = '%{control:IP-Pool}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND framedipaddress <> '%{DHCP-Requested-IP-Address}' AND expiry_time > NOW() AND `status` = 'dynamic'"
start_commit = ""
alive_begin = ""
alive_update = "UPDATE dhcpippool SET expiry_time = NOW() + INTERVAL 7200 SECOND, counter = counter + 1 WHERE pool_name = '%{control:IP-Pool}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND framedipaddress = '%{%{DHCP-Requested-IP-Address}:-%{DHCP-Client-IP-Address}}'"
alive_commit = ""
stop_begin = ""
stop_clear = "UPDATE dhcpippool SET gateway = '', pool_key = '', expiry_time = NOW() WHERE pool_name = '%{control:IP-Pool}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND framedipaddress = '%{DHCP-Client-IP-Address}' AND `status` = 'dynamic'"
stop_commit = ""
on_begin = ""
on_clear = ""
on_commit = ""
off_begin = ""
off_clear = "UPDATE dhcpippool SET status = 'declined' WHERE pool_name = '%{control:IP-Pool}' AND pool_key = '%{%{DHCP-Client-Identifier}:-%{DHCP-Client-Hardware-Address}}' AND framedipaddress = '%{DHCP-Requested-IP-Address}'"
off_commit = ""
messages {
exists = "DHCP: Existing IP: %{reply:DHCP-Your-IP-Address} (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
success = "DHCP: Allocated IP: %{reply:DHCP-Your-IP-Address} from %{control:IP-Pool} (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
clear = "DHCP: Released IP %{DHCP-Client-IP-Address} (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
failed = "DHCP: IP Allocation FAILED from %{control:IP-Pool} (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
nopool = "DHCP: No IP-Pool defined (cid %{DHCP-Client-Identifier} chaddr %{DHCP-Client-Hardware-Address} giaddr %{DHCP-Gateway-IP-Address})"
}
}
# Loaded module rlm_expr
# Loading module "expr" from file /etc/freeradius/mods-enabled/expr
expr {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
# Loaded module rlm_logintime
# Loading module "logintime" from file /etc/freeradius/mods-enabled/logintime
logintime {
minimum_timeout = 60
}
# Loaded module rlm_linelog
# Loading module "linelog" from file /etc/freeradius/mods-enabled/linelog
linelog {
filename = "/var/log/freeradius/linelog"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = "This is a log message for %{User-Name}"
reference = "messages.%{%{reply:Packet-Type}:-default}"
}
# Loading module "log_accounting" from file /etc/freeradius/mods-enabled/linelog
linelog log_accounting {
filename = "/var/log/freeradius/linelog-accounting"
escape_filenames = no
syslog_severity = "info"
permissions = 384
format = ""
reference = "Accounting-Request.%{%{Acct-Status-Type}:-unknown}"
}
# Loaded module rlm_attr_filter
# Loading module "attr_filter.post-proxy" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.post-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/post-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.pre-proxy" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.pre-proxy {
filename = "/etc/freeradius/mods-config/attr_filter/pre-proxy"
key = "%{Realm}"
relaxed = no
}
# Loading module "attr_filter.access_reject" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_reject {
filename = "/etc/freeradius/mods-config/attr_filter/access_reject"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.access_challenge" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.access_challenge {
filename = "/etc/freeradius/mods-config/attr_filter/access_challenge"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.accounting_response" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.accounting_response {
filename = "/etc/freeradius/mods-config/attr_filter/accounting_response"
key = "%{User-Name}"
relaxed = no
}
# Loading module "attr_filter.coa" from file /etc/freeradius/mods-enabled/attr_filter
attr_filter attr_filter.coa {
filename = "/etc/freeradius/mods-config/attr_filter/coa"
key = "%{User-Name}"
relaxed = no
}
# Loaded module rlm_soh
# Loading module "soh" from file /etc/freeradius/mods-enabled/soh
soh {
dhcp = yes
}
# Loaded module rlm_chap
# Loading module "chap" from file /etc/freeradius/mods-enabled/chap
# Loaded module rlm_expiration
# Loading module "expiration" from file /etc/freeradius/mods-enabled/expiration
# Loaded module rlm_sql
# Loading module "dhcp_sql" from file /etc/freeradius/mods-enabled/dhcp_sql
sql dhcp_sql {
driver = "rlm_sql_mysql"
server = "localhost"
port = 3306
login = "radius"
password = <<< secret >>>
radius_db = "radius"
read_groups = no
read_profiles = yes
read_clients = no
delete_stale_sessions = yes
sql_user_name = "%{control:DHCP-SQL-Option-Identifier}"
default_user_profile = ""
client_query = "SELECT id,nasname,shortname,type,secret FROM nas"
authorize_reply_query = "SELECT id, identifier, attribute, value, Op FROM dhcpreply WHERE identifier = '%{SQL-User-Name}' AND context = '%{control:DHCP-SQL-Option-Context}' ORDER BY id"
authorize_group_reply_query = "SELECT id, groupname, attribute, value, op FROM dhcpgroupreply WHERE groupname = '%{dhcp_sql-SQL-Group}' AND context = '%{control:DHCP-SQL-Option-Context}' ORDER BY id"
group_membership_query = "SELECT groupnme FROM dhcpgroup WHERE identifier='%{SQL-User-Name}' AND context = '%{control:DHCP-SQL-Option-Context}' ORDER BY priority"
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
auto_escape = no
accounting {
reference = ".query"
type {
accounting-on {
}
accounting-off {
}
start {
}
interim-update {
}
stop {
}
}
}
post-auth {
reference = ".query"
}
}
rlm_sql (dhcp_sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
Creating attribute dhcp_sql-SQL-Group
# Loaded module rlm_dynamic_clients
# Loading module "dynamic_clients" from file /etc/freeradius/mods-enabled/dynamic_clients
# Loaded module rlm_preprocess
# Loading module "preprocess" from file /etc/freeradius/mods-enabled/preprocess
preprocess {
huntgroups = "/etc/freeradius/mods-config/preprocess/huntgroups"
hints = "/etc/freeradius/mods-config/preprocess/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
# Loaded module rlm_passwd
# Loading module "etc_passwd" from file /etc/freeradius/mods-enabled/passwd
passwd etc_passwd {
filename = "/etc/passwd"
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
# Loading module "auth_log" from file /etc/freeradius/mods-enabled/detail.log
detail auth_log {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/auth-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "reply_log" from file /etc/freeradius/mods-enabled/detail.log
detail reply_log {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/reply-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "pre_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
detail pre_proxy_log {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/pre-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loading module "post_proxy_log" from file /etc/freeradius/mods-enabled/detail.log
detail post_proxy_log {
filename = "/var/log/freeradius/radacct/%{%{Packet-Src-IP-Address}:-%{Packet-Src-IPv6-Address}}/post-proxy-detail-%Y%m%d"
header = "%t"
permissions = 384
locking = no
escape_filenames = no
log_packet_header = no
}
# Loaded module rlm_mschap
# Loading module "mschap" from file /etc/freeradius/mods-enabled/mschap
mschap {
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind_retry_with_normalised_username = no
}
# Loaded module rlm_pap
# Loading module "pap" from file /etc/freeradius/mods-enabled/pap
pap {
normalise = yes
}
# Loaded module rlm_totp
# Loading module "totp" from file /etc/freeradius/mods-enabled/totp
# Loaded module rlm_realm
# Loading module "IPASS" from file /etc/freeradius/mods-enabled/realm
realm IPASS {
format = "prefix"
delimiter = "/"
ignore_default = no
ignore_null = no
}
# Loading module "suffix" from file /etc/freeradius/mods-enabled/realm
realm suffix {
format = "suffix"
delimiter = "@"
ignore_default = no
ignore_null = no
}
# Loading module "bangpath" from file /etc/freeradius/mods-enabled/realm
realm bangpath {
format = "prefix"
delimiter = "!"
ignore_default = no
ignore_null = no
}
# Loading module "realmpercent" from file /etc/freeradius/mods-enabled/realm
realm realmpercent {
format = "suffix"
delimiter = "%"
ignore_default = no
ignore_null = no
}
# Loading module "ntdomain" from file /etc/freeradius/mods-enabled/realm
realm ntdomain {
format = "prefix"
delimiter = "\\"
ignore_default = no
ignore_null = no
}
# Loaded module rlm_utf8
# Loading module "utf8" from file /etc/freeradius/mods-enabled/utf8
instantiate {
}
# Instantiating module "reject" from file /etc/freeradius/mods-enabled/always
# Instantiating module "fail" from file /etc/freeradius/mods-enabled/always
# Instantiating module "ok" from file /etc/freeradius/mods-enabled/always
# Instantiating module "handled" from file /etc/freeradius/mods-enabled/always
# Instantiating module "invalid" from file /etc/freeradius/mods-enabled/always
# Instantiating module "userlock" from file /etc/freeradius/mods-enabled/always
# Instantiating module "notfound" from file /etc/freeradius/mods-enabled/always
# Instantiating module "noop" from file /etc/freeradius/mods-enabled/always
# Instantiating module "updated" from file /etc/freeradius/mods-enabled/always
# Instantiating module "eap" from file /etc/freeradius/mods-enabled/eap
# Linked to sub-module rlm_eap_md5
# Linked to sub-module rlm_eap_gtc
gtc {
challenge = "Password: "
auth_type = "PAP"
}
# Linked to sub-module rlm_eap_tls
tls {
tls = "tls-common"
}
tls-config tls-common {
verify_depth = 0
ca_path = "/etc/freeradius/certs"
pem_file_type = yes
private_key_file = "/etc/freeradius/certs/server.pem"
certificate_file = "/etc/freeradius/certs/server.pem"
ca_file = "/etc/freeradius/certs/ca.pem"
private_key_password = <<< secret >>>
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 = ""
tls_max_version = "1.2"
tls_min_version = "1.2"
cache {
enable = no
lifetime = 24
max_entries = 255
}
verify {
skip_if_ocsp_ok = no
}
ocsp {
enable = no
override_cert_url = yes
url = "http://127.0.0.1/ocsp/"
use_nonce = yes
timeout = 0
softfail = no
}
}
# Linked to sub-module rlm_eap_ttls
ttls {
tls = "tls-common"
default_eap_type = "md5"
copy_request_to_tunnel = no
use_tunneled_reply = no
virtual_server = "inner-tunnel"
include_length = yes
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_peap
peap {
tls = "tls-common"
default_eap_type = "mschapv2"
copy_request_to_tunnel = no
use_tunneled_reply = no
proxy_tunneled_request_as_eap = yes
virtual_server = "inner-tunnel"
soh = no
require_client_cert = no
}
tls: Using cached TLS configuration from previous invocation
# Linked to sub-module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
send_error = no
}
# Instantiating module "detail" from file /etc/freeradius/mods-enabled/detail
# Instantiating module "files" from file /etc/freeradius/mods-enabled/files
reading pairlist file /etc/freeradius/mods-config/files/authorize
reading pairlist file /etc/freeradius/mods-config/files/accounting
reading pairlist file /etc/freeradius/mods-config/files/pre-proxy
/etc/freeradius/mods-config/sql/ippool-dhcp/mysql/queries.conf[23]: Failed parsing expanded string:
/etc/freeradius/mods-config/sql/ippool-dhcp/mysql/queries.conf[23]: ...FROM dhcpippool WHERE pool_name = '%{control:IP-Pool}' AND pool_key = '%{%{DHCP-Client-Ident...
/etc/freeradius/mods-config/sql/ippool-dhcp/mysql/queries.conf[23]: ^ Unknown attribute
2
1
I am working on building FreeRADIUS (v3.2.2) and OpenSSL (v3.3) separately
with cmake files. After compilations done, I am getting an error "Error:
(TLS) Failed loading legacy provider" when run radius server with "radiusd
-Xx".
I also looked with strace command to see any loading issue. It seems that
it does not find the legacy.so library file. I also tried to give rpath
with patchelf command to define the exact path of legacy.so which is
created during openssl compilation. It still looks a different path which
does not include the related legacy provider library (legacy.so).
Do you have any suggestions?
3
5
Hello,
I would like to kinldy ask for an help with following issue. I am
running Freeradius 3.2.3+dfsg-2+b4 (Debian package) and have following
problem. I receive Radius Accounting and put it into a a detail files.
Then I have a detail file reader which stores Accounting records to DB.
I have noticed a weird thing related to timestamp of the records. All
records are inserted to DB with +1 hour offset. The attribute
Event-Timestamp is logged correctly - when grepping detail files for the
Event-Timestamp , it is fine, no offset.
When I start Freeradius in debug mode, I can see that the packet is
received as follows:
(3848) Received Accounting-Request Id 254 from 10.49.17.160:38050 to
10.49.17.164:1813 length 637
(3848) User-Name = "xxx"
(3848) NAS-IP-Address = 10.49.32.254
(3848) NAS-Port = 793003
(3848) Service-Type = Framed-User
(3848) Framed-Protocol = GPRS-PDP-Context
(3848) Framed-IP-Address = 100.81.87.87
(3848) Framed-MTU = 1500
(3848) Called-Station-Id = "internet"
(3848) Calling-Station-Id = "xxx"
(3848) NAS-Identifier = "rzt-gw2"
(3848) Acct-Status-Type = Start
(3848) Acct-Session-Id = "591800FA15580ABD"
(3848) Acct-Authentic = RADIUS
(3848) Acct-Multi-Session-Id = "591800FA15580ABB"
(3848) Event-Timestamp = "May 16 2024 21:32:59 CEST"
.
The same req. taken from the detail file in debug mode has the
Event-Timestamp shifted by 1h!
detail
(/srv/radius/freeradius_01/radacct/detail.mobile_v3/queue-30/detail-*):
Read packet from
/srv/radius/freeradius_01/radacct/detail.mobile_v3/queue-30/detail.work
User-Name = "xxx"
NAS-IP-Address = 10.49.32.254
NAS-Port = 793003
Service-Type = Framed-User
Framed-Protocol = GPRS-PDP-Context
Framed-IP-Address = 100.81.87.87
Framed-MTU = 1500
Called-Station-Id = "internet"
Calling-Station-Id = "xxx"
NAS-Identifier = "rzt-gw2"
Acct-Status-Type = Start
Acct-Session-Id = "591800FA15580ABD"
Acct-Authentic = RADIUS
Acct-Multi-Session-Id = "591800FA15580ABB"
Event-Timestamp = "May 16 2024 22:32:59 CEST"
.
Event-Timestamp with 1 hour offset is also inserted to DB. Here I use
FROM_UNIXTIME(%{integer:Event-Timestamp}).
I am running this setup on another machine for more than 3 years with
Freeradius 3.0.13+git and there is nothing like that. I can see it with
3.2.3+dfsg-2+b4 and also 3.2.1+dfsg-4+deb12u1 (Bookworm default). NAS
and Freeradius are both in Europe/Prague (CEST, +0200), timezone is set
correctly, time in sync.
Thanks
Ales
2
3
Hi,
i am testing one basic authentication scenario using freeradius.
The client is getting successfully authenticated but i am not seeing any
"Message-Authenticator" attribute in the Access-Accept or Access-Reject
packets.
Does server not send "Message-Authenticator" attribute by default?
How we can enable freeradius server to send "Message-Authenticator"
attribute for all response packets?
Thanks & Regards,
Amit
2
1
Hi Team,
I'm having issues getting LDAP group membership checking working with multiple LDAP servers. Here's my config:
ldap {
server = "${ldap.2} ${ldap.1}"
# server = "${ldap.1}"
server = "${ldap.3}"
server = "${ldap.4}"
base_dn = 'DC=thing,DC=local'
identity = ${eduroamLDAPAccount.username}
password = ${eduroamLDAPAccount.password}
user {
base_dn = "${..base_dn}"
scope = sub
filter = "(&(objectclass=user)(sAMAccountName=%{Stripped-User-Name}))"
}
group {
base_dn = "${..base_dn}"
filter = "(objectclass=group)"
membership_filter = "(member=%{control:Ldap-UserDn})"
cacheable_name ='yes'
cacheable_dn = 'no'
cache_attribute = 'LDAP-Cached-Membership'
}
options {
# ldap_debug = 0x0028
chase_referrals = yes
rebind = yes
res_timeout = 2
srv_timelimit = 5
net_timeout = 2
}
}
The issue - we have been having network wobbles + FreeRad crashes out if it can't talk to a LDAP server (we previously only had 1 LDAP server listed), so I'd like it to either round robin LDAP servers or fail over smoothly.
All ldap.X server variables are resolvable hostnames (final one is domain, so RR-s round all domain controllers) and the servers work individually (/if I put them at the top of the list).
To emulate a network failure I'm using iptables -I INPUT -s <ldap.1 IP> -j DROP (also tried blocking output). With this in place I see netstat -np | grep 389 shows fleeting connections to other LDAP Servers:
Working/pre iptables:
* tcp 0 91 10.1.18.32:43066 10.1.12.201:389 ESTABLISHED 285161/radiusd
blocked/iptables blocking 10.1.12.201 only:
* tcp 0 109 10.1.18.32:39856 192.168.7.250:389 ESTABLISHED 285161/radiusd
* tcp 0 99 10.1.18.32:43066 10.1.12.201:389 FIN_WAIT1 -
* tcp 0 109 10.1.18.32:44864 172.16.2.124:389 ESTABLISHED 285161/radiusd
* tcp 0 108 10.1.18.32:39868 192.168.7.250:389 ESTABLISHED 285161/radiusd
* tcp 0 0 10.1.18.32:43856 10.1.12.200:389 ESTABLISHED 285161/radiusd
(but auths fail/blocked, connections drop, freerad crashes moments later)
radiusd -X -C shows:
ldap {
server = "uks-adds-02.thing.local uks-adds-01.thing.local"
identity = edu.check(a)thing.local<mailto:edu.check@thing.local>
password = <<< secret >>>
sasl {
(So only first server listed?)
Choice bits from log file:
At startup:
Mon May 13 11:59:50 2024 : Warning: - server = 'uks-adds-02.thing.local uks-adds-01.thing.local'
Mon May 13 11:59:50 2024 : Warning: + server = 'uks-adds-02.thing.local'
Mon May 13 11:59:50 2024 : Warning: + server = 'uks-adds-01.thing.local'
(one way or another it knows about multiple servers?)
At failure: Mon May 13 11:59:45 2024 :
Mon May 13 11:59:39 2024 : Error: (379) Ignoring duplicate packet from client bra-wlc-p01 port 63991 - ID: 15 due to unfinished request in component authenticate module eap_peap (guess this is clients getting impatient?)
Error: rlm_ldap (ldap): Bind with edu.check(a)thing.local<mailto:edu.check@thing.local> to ldap://uks-adds-02.thing.local:389 ldap://uks-adds-01.thing.local:389 ldap://ukw-adds-01.thing.local:389 ldap://thing.local:389 ldap://uks-adds-01.thing.local:389 failed: Timed out while waiting for server to respond (but I know it can talk to all but the first LDAP server)
Hope that explains it all adequately... Any ideas what I'm missing here?
Thanks,
Jim Potter
Jisc
2
1
Hello everyone,
I am currently testing version 4. I am using the latest commit (3b422574). I noticed that if the LDAP module is configured with an Active Directory, a user can successfully log in with an empty password. I think that this behaviour is not correct or?
It also works with the Radius protocol instead of Tacacs and with Alpha version 4.
First I perform the login with the correct password and then with an empty password.
This is the output of freeradius -X:
Info : Copyright 1999-2024 The FreeRADIUS server project and contributors
Info : There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
Info : PARTICULAR PURPOSE
Info : You may redistribute copies of FreeRADIUS under the terms of the
Info : GNU General Public License
Info : For more information about these matters, see the file named COPYRIGHT
Info : Starting - reading configuration files ...
Debug : Including dictionary file "/etc/raddb/dictionary"
including configuration file /etc/raddb/radiusd.conf
Including files in directory "/etc/raddb/template.d/"
including configuration file /etc/raddb/template.d/default
including configuration file /etc/raddb/clients.conf
Including files in directory "/etc/raddb/global.d/"
including configuration file /etc/raddb/global.d/ldap
including configuration file /etc/raddb/global.d/python
Including files in directory "/etc/raddb/mods-enabled/"
including configuration file /etc/raddb/mods-enabled/always
including configuration file /etc/raddb/mods-enabled/attr_filter
including configuration file /etc/raddb/mods-enabled/cache_eap
including configuration file /etc/raddb/mods-enabled/chap
including configuration file /etc/raddb/mods-enabled/client
including configuration file /etc/raddb/mods-enabled/delay
including configuration file /etc/raddb/mods-enabled/detail
including configuration file /etc/raddb/mods-enabled/detail.log
including configuration file /etc/raddb/mods-enabled/digest
including configuration file /etc/raddb/mods-enabled/eap
including configuration file /etc/raddb/mods-enabled/eap_inner
including configuration file /etc/raddb/mods-enabled/echo
including configuration file /etc/raddb/mods-enabled/escape
including configuration file /etc/raddb/mods-enabled/exec
including configuration file /etc/raddb/mods-enabled/files
including configuration file /etc/raddb/mods-enabled/ldap
including configuration file /etc/raddb/mods-enabled/linelog
including configuration file /etc/raddb/mods-enabled/mschap
including configuration file /etc/raddb/mods-enabled/ntlm_auth
including configuration file /etc/raddb/mods-enabled/pap
including configuration file /etc/raddb/mods-enabled/passwd
including configuration file /etc/raddb/mods-enabled/radutmp
including configuration file /etc/raddb/mods-enabled/sradutmp
including configuration file /etc/raddb/mods-enabled/stats
including configuration file /etc/raddb/mods-enabled/unix
including configuration file /etc/raddb/mods-enabled/unpack
including configuration file /etc/raddb/mods-enabled/utf8
Including files in directory "/etc/raddb/policy.d/"
including configuration file /etc/raddb/policy.d/abfab-tr
including configuration file /etc/raddb/policy.d/accounting
including configuration file /etc/raddb/policy.d/canonicalisation
including configuration file /etc/raddb/policy.d/control
including configuration file /etc/raddb/policy.d/cui
including configuration file /etc/raddb/policy.d/debug
including configuration file /etc/raddb/policy.d/dhcp
including configuration file /etc/raddb/policy.d/eap
including configuration file /etc/raddb/policy.d/filter
including configuration file /etc/raddb/policy.d/operator-name
including configuration file /etc/raddb/policy.d/time
including configuration file /etc/raddb/policy.d/vendor
Including files in directory "/etc/raddb/sites-enabled/"
including configuration file /etc/raddb/sites-enabled/default
Loaded module process_radius
including configuration file /etc/raddb/sites-enabled/inner-tunnel
including configuration file /etc/raddb/sites-enabled/tacacs
Loaded module process_tacacs
Parsing initial logging configuration.
main {
prefix = /usr/local/freeradius
log {
destination = file
syslog_facility = daemon
local_state_dir = "/usr/local/freeradius/var"
logdir = "/usr/local/freeradius/var/log"
file = /usr/local/freeradius/var/log/radius/radius.log
suppress_secrets = no
}
}
Parsing security rules to bootstrap UID / GID / chroot / etc.
main {
log {
}
security {
allow_core_dumps = no
allow_vulnerable_openssl = no
openssl_fips_mode = no
}
name = radiusd
local_state_dir = "/usr/local/freeradius/var"
run_dir = /usr/local/freeradius/var/run/radiusd
}
Parsing main configuration
main {
server default {
namespace = radius
radius {
Access-Request {
session {
timeout = 15
max = 4096
}
}
}
Loaded module proto_radius
listen {
type = Access-Request
type = Status-Server
transport = udp
Loaded module proto_radius_udp
udp {
ipaddr = *
port = 1812
networks {
allow = 127/8
allow = 192.0.2/24
}
max_packet_size = 4096
max_attributes = 255
}
limit {
cleanup_delay = 5.0
idle_timeout = 60.0
nak_lifetime = 30.0
max_connections = 256
max_clients = 256
max_pending_packets = 256
}
priority {
Access-Request = high
Accounting-Request = low
CoA-Request = normal
Disconnect-Request = low
Status-Server = now
}
}
listen tcp_auth {
type = Access-Request
type = Status-Server
transport = tcp
Loaded module proto_radius_tcp
tcp {
ipaddr = *
port = 1812
networks {
allow = 127/8
allow = 192.0.2/24
}
max_packet_size = 4096
max_attributes = 255
}
limit {
cleanup_delay = 5.0
idle_timeout = 30.0
nak_lifetime = 30.0
max_connections = 1024
max_clients = 256
max_pending_packets = 256
}
priority {
Access-Request = high
Accounting-Request = low
CoA-Request = normal
Disconnect-Request = low
Status-Server = now
}
}
listen udp_acct {
type = Accounting-Request
transport = udp
udp {
ipaddr = *
port = 1813
networks {
}
max_packet_size = 4096
max_attributes = 255
}
limit {
cleanup_delay = 5.0
idle_timeout = 30.0
nak_lifetime = 30.0
max_connections = 1024
max_clients = 256
max_pending_packets = 256
}
priority {
Access-Request = high
Accounting-Request = low
CoA-Request = normal
Disconnect-Request = low
Status-Server = now
}
}
}
server inner-tunnel {
namespace = radius
radius {
Access-Request {
session {
timeout = 15
max = 4096
}
}
}
listen {
type = Access-Request
transport = udp
udp {
ipaddr = 127.0.0.1
port = 18120
networks {
}
max_packet_size = 4096
max_attributes = 255
}
limit {
cleanup_delay = 5.0
idle_timeout = 30.0
nak_lifetime = 30.0
max_connections = 1024
max_clients = 256
max_pending_packets = 256
}
priority {
Access-Request = high
Accounting-Request = low
CoA-Request = normal
Disconnect-Request = low
Status-Server = now
}
}
}
server tacacs {
namespace = tacacs
tacacs {
Authentication {
session {
timeout = 15
max = 4096
max_rounds = 4
}
}
}
Loaded module proto_tacacs
listen {
type = Authentication-Start
type = Authentication-Continue
type = Authorization-Request
type = Accounting-Request
transport = tcp
Loaded module proto_tacacs_tcp
tcp {
ipaddr = *
port = 49
networks {
}
max_packet_size = 4096
max_attributes = 256
}
limit {
idle_timeout = 60.0
max_connections = 256
}
priority {
Authentication-Start = high
Authentication-Continue = high
Authorization-Request = normal
Accounting-Request = low
}
}
}
log {
colourise = yes
}
security {
}
sbin_dir = "/usr/local/freeradius/sbin"
logdir = /usr/local/freeradius/var/log/radius
radacctdir = /usr/local/freeradius/var/log/radius/radacct
reverse_lookups = no
hostname_lookups = yes
max_request_time = 30
pidfile = /usr/local/freeradius/var/run/radiusd/radiusd.pid
debug_level = 0
max_requests = 16384
resources {
}
thread pool {
num_networks = 1
Dynamically determined thread.workers = 15
num_workers = 15
openssl_async_pool_init = 64
openssl_async_pool_max = 1024
}
migrate {
rewrite_update = false
forbid_update = false
}
interpret {
}
}
Switching to configured log settings
log debug {
destination = null
timestamp = yes
colourise = no
}
radiusd: #### Loading Clients ####
client localhost {
ipaddr = 127.0.0.1
secret = <<< secret >>>
require_message_authenticator = no
proto = *
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30
}
}
client localhost_ipv6 {
ipv6addr = ::1
secret = <<< secret >>>
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30s
}
}
Debugger not attached
trigger { ... } subsection not found, triggers will be disabled
#### Instantiating libraries ####
#### Bootstrapping process modules ####
Bootstrapping process_radius "default"
Creating Auth-Type = pap
Creating Auth-Type = chap
Creating Auth-Type = mschap
Creating Auth-Type = digest
Creating Auth-Type = ldap
Creating Auth-Type = eap
Bootstrapping process_radius "inner-tunnel"
Bootstrapping process_tacacs "tacacs"
Creating Auth-Type = ASCII
#### Bootstrapping protocol modules ####
Bootstrapping proto_radius "default.radius"
client localhost {
ipaddr = 192.0.2.1
secret = <<< secret >>>
shortname = sample
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30s
}
}
Bootstrapping proto_radius "default.tcp_auth"
Bootstrapping proto_radius "default.udp_acct"
Bootstrapping proto_radius "inner-tunnel.radius"
Bootstrapping proto_tacacs "tacacs.tacacs"
Ignoring "nak_lifetime = 0", forcing to "nak_lifetime = 1"
client tacacs {
ipaddr = 127.0.0.1
secret = <<< secret >>>
proto = tcp
limit {
max_connections = 16
lifetime = 0
idle_timeout = 30s
}
}
#### Instantiating libraries ####
#### Bootstrapping modules ####
modules {
Loaded module rlm_always
always reject {
rcode = reject
simulcount = 0
mpp = no
}
always fail {
rcode = fail
simulcount = 0
mpp = no
}
always ok {
rcode = ok
simulcount = 0
mpp = no
}
always handled {
rcode = handled
simulcount = 0
mpp = no
}
always invalid {
rcode = invalid
simulcount = 0
mpp = no
}
always disallow {
rcode = disallow
simulcount = 0
mpp = no
}
always notfound {
rcode = notfound
simulcount = 0
mpp = no
}
always noop {
rcode = noop
simulcount = 0
mpp = no
}
always updated {
rcode = updated
simulcount = 0
mpp = no
}
Loaded module rlm_attr_filter
attr_filter attr_filter.pre-proxy {
filename = /etc/raddb/mods-config/attr_filter/pre-proxy
key = "%{Realm}"
relaxed = no
}
attr_filter attr_filter.post-proxy {
filename = /etc/raddb/mods-config/attr_filter/post-proxy
key = "%{Realm}"
relaxed = no
}
attr_filter attr_filter.access_reject {
filename = /etc/raddb/mods-config/attr_filter/access_reject
key = "%{User-Name}"
relaxed = no
}
attr_filter attr_filter.access_challenge {
filename = /etc/raddb/mods-config/attr_filter/access_challenge
key = "%{User-Name}"
relaxed = no
}
attr_filter attr_filter.accounting_response {
filename = /etc/raddb/mods-config/attr_filter/accounting_response
key = "%{User-Name}"
relaxed = no
}
Loaded module rlm_cache
cache cache_eap {
driver = rbtree
Loaded module rlm_cache_rbtree
ttl = 15
max_entries = 0
epoch = 0
add_stats = no
}
Loaded module rlm_chap
chap {
min_challenge_len = 16
}
Loaded module rlm_client
Loaded module rlm_delay
delay {
delay = 1.0s
relative = no
force_reschedule = no
}
delay delay_reject {
delay = "%{&reply.FreeRADIUS-Response-Delay || 1}"
relative = yes
force_reschedule = no
}
Loaded module rlm_detail
detail {
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
detail auth_log {
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
detail reply_log {
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
detail pre_proxy_log {
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
detail post_proxy_log {
permissions = 0600
locking = no
escape_filenames = no
log_packet_header = no
}
Loaded module rlm_digest
Loaded module rlm_eap
eap {
require_identity_realm = nai
type = md5
Loaded module rlm_eap_md5
type = gtc
Loaded module rlm_eap_gtc
gtc {
challenge = "Password: "
auth_type = PAP
}
type = tls
Loaded module rlm_eap_tls
tls {
tls = tls-common
require_client_cert = yes
include_length = yes
}
type = ttls
Loaded module rlm_eap_ttls
ttls {
tls = tls-common
virtual_server = "inner-tunnel"
include_length = yes
require_client_cert = no
}
type = mschapv2
Loaded module rlm_eap_mschapv2
mschapv2 {
with_ntdomain_hack = no
auth_type = mschap
send_error = no
}
type = peap
Loaded module rlm_eap_peap
peap {
tls = tls-common
virtual_server = "inner-tunnel"
require_client_cert = no
}
ignore_unknown_eap_types = no
}
eap inner-eap {
require_identity_realm = nai
default_eap_type = mschapv2
type = md5
type = gtc
gtc {
challenge = "Password: "
auth_type = PAP
}
type = mschapv2
mschapv2 {
with_ntdomain_hack = no
auth_type = mschap
send_error = no
}
type = tls
tls {
tls = tls-peer
require_client_cert = yes
include_length = yes
}
ignore_unknown_eap_types = no
}
Loaded module rlm_exec
exec echo {
wait = yes
input_pairs = &request
output_pairs = &reply
shell_escape = yes
env_inherit = no
}
Loaded module rlm_escape
escape {
safe_characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /äéöüàâæçèéêëîïôœùûüaÿÄÉÖÜßÀÂÆÇÈÉÊËÎÏÔŒÙÛÜŸ"
}
exec {
wait = yes
input_pairs = &request
shell_escape = yes
env_inherit = no
timeout = 10
}
Loaded module rlm_files
files {
filename = /etc/raddb/mods-config/files/authorize
}
files files_accounting {
filename = /etc/raddb/mods-config/files/accounting
}
Instantiating ldap
ldap {
ldap_debug = 0x0000
}
global - ldap - libldap vendor: OpenLDAP, version: 20517
global - ldap - extension: X_OPENLDAP
global - ldap - extension: THREAD_SAFE
global - ldap - extension: SESSION_THREAD_SAFE
global - ldap - extension: OPERATION_THREAD_SAFE
global - ldap - extension: X_OPENLDAP_REENTRANT
global - ldap - extension: X_OPENLDAP_THREAD_SAFE
Loaded module rlm_ldap
ldap {
server = 'ldaps://WIN-DV0HIUUHTPI.freeradius.local:636'
identity = 'cn=freeradius-ldap,cn=Users,dc=freeradius,dc=local'
password = <<< secret >>>
sasl {
}
options {
chase_referrals = yes
use_referral_credentials = no
referral_depth = 5
rebind = yes
net_timeout = 10
idle = 60
probes = 3
interval = 3
srv_timelimit = 3
res_timeout = 10
idle_timeout = 300
reconnection_delay = 10
}
tls {
ca_file = /etc/raddb/certs/cacert.pem
start_tls = no
}
session_tracking = no
user {
scope = sub
access_positive = yes
access_value_negate = "false"
access_value_suspend = "suspended"
}
group {
filter = '(objectClass=posixGroup)'
scope = sub
name_attribute = "cn"
membership_attribute = 'memberOf'
cacheable_name = yes
cacheable_dn = no
group_attribute = "ldap-Group"
allow_dangling_group_ref = no
skip_on_suspend = yes
}
profile {
scope = base
}
pool {
start = 0
min = 1
max = 5
connecting = 2
uses = 0
lifetime = 0
open_delay = 0.2
close_delay = 10.0
manage_interval = 0.2
connection {
connect_timeout = 3.0
reconnect_delay = 1
}
request {
per_connection_max = 2000
per_connection_target = 1000
free_delay = 10.0
}
}
bind_pool {
start = 0
min = 1
max = 1000
connecting = 2
uses = 0
lifetime = 0
open_delay = 0.2
close_delay = 10.0
manage_interval = 0.2
connection {
connect_timeout = 3.0
reconnect_delay = 1
}
request {
per_connection_max = 2000
per_connection_target = 1000
free_delay = 10.0
}
}
}
Loaded module rlm_linelog
linelog {
destination = file
delimiter = "\n"
file {
permissions = 0600
escape_filenames = no
}
syslog {
severity = "info"
}
unix {
}
tcp {
server = localhost
port = 514
timeout = 2.0
}
udp {
server = localhost
port = 514
timeout = 2.0
}
}
linelog log_accounting {
destination = file
delimiter = "\n"
file {
permissions = 0600
escape_filenames = no
}
syslog {
severity = "info"
}
unix {
}
tcp {
timeout = 1000
}
udp {
timeout = 1000
}
}
linelog log_auth_access_accept {
destination = file
delimiter = "\n"
file {
permissions = 0600
escape_filenames = no
}
syslog {
facility = daemon
severity = notice
}
unix {
}
tcp {
timeout = 1000
}
udp {
timeout = 1000
}
}
linelog log_auth_access_reject {
destination = file
delimiter = "\n"
file {
permissions = 0600
escape_filenames = no
}
syslog {
facility = daemon
severity = notice
}
unix {
}
tcp {
timeout = 1000
}
udp {
timeout = 1000
}
}
linelog log_auth_authentication_pass {
destination = file
delimiter = "\n"
file {
permissions = 0600
escape_filenames = no
}
syslog {
facility = daemon
severity = notice
}
unix {
}
tcp {
timeout = 1000
}
udp {
timeout = 1000
}
}
linelog log_auth_authentication_fail {
destination = file
delimiter = "\n"
file {
permissions = 0600
escape_filenames = no
}
syslog {
facility = daemon
severity = notice
}
unix {
}
tcp {
timeout = 1000
}
udp {
timeout = 1000
}
}
Loaded module rlm_mschap
mschap {
normalise = yes
use_mppe = yes
require_encryption = no
require_strong = no
with_ntdomain_hack = yes
passchange {
}
allow_retry = yes
winbind {
}
}
exec ntlm_auth {
wait = yes
shell_escape = yes
env_inherit = no
}
Loaded module rlm_pap
pap {
normalise = yes
}
Loaded module rlm_passwd
passwd etc_passwd {
filename = /etc/passwd
format = "*User-Name:Crypt-Password:"
delimiter = ":"
ignore_nislike = no
ignore_empty = yes
allow_multiple_keys = no
hash_size = 100
}
Loaded module rlm_radutmp
radutmp {
check_with_nas = yes
permissions = 0600
caller_id = no
}
radutmp sradutmp {
check_with_nas = yes
permissions = 0644
caller_id = no
}
Loaded module rlm_stats
stats {
}
Loaded module rlm_unix
unix {
}
Loaded module rlm_unpack
Loaded module rlm_utf8
#### Bootstrapping rlm modules ####
Bootstrapping rlm_cache "cache_eap"
Bootstrapping rlm_chap "chap"
Bootstrapping rlm_delay "delay"
Bootstrapping rlm_delay "delay_reject"
Bootstrapping rlm_always "disallow"
Bootstrapping rlm_eap "eap"
Bootstrapping rlm_exec "echo"
Bootstrapping rlm_escape "escape"
Bootstrapping rlm_exec "exec"
Bootstrapping rlm_always "fail"
Bootstrapping rlm_always "handled"
Bootstrapping rlm_eap "inner-eap"
Bootstrapping rlm_always "invalid"
Bootstrapping rlm_ldap "ldap"
Bootstrapping rlm_linelog "linelog"
Bootstrapping rlm_linelog "log_accounting"
Bootstrapping rlm_linelog "log_auth_access_accept"
Bootstrapping rlm_linelog "log_auth_access_reject"
Bootstrapping rlm_linelog "log_auth_authentication_fail"
Bootstrapping rlm_linelog "log_auth_authentication_pass"
Bootstrapping rlm_mschap "mschap"
Bootstrapping rlm_always "noop"
Bootstrapping rlm_always "notfound"
Bootstrapping rlm_exec "ntlm_auth"
Bootstrapping rlm_always "ok"
Bootstrapping rlm_always "reject"
Bootstrapping rlm_unix "unix"
Bootstrapping rlm_always "updated"
} # modules
#### Instantiating listeners ####
Compiling policies in server default { ... }
Instantiating proto_radius "default.radius"
Instantiating proto_radius "default.tcp_auth"
Instantiating proto_radius "default.udp_acct"
Instantiating process_radius "default"
Compiling policies in - recv Access-Request {...}
Reading file /etc/raddb/mods-config/files/authorize
/etc/raddb/sites-enabled/default[785]: Ignoring "-sql" as the "sql" module is not enabled.
/etc/raddb/policy.d/time[13]: Skipping remaining instructions due to 'return'
/etc/raddb/policy.d/time[18]: Please use the 'filter' keyword for attribute filtering
Compiling policies in - send Access-Accept {...}
/etc/raddb/sites-enabled/default[1104]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - send Access-Challenge {...}
Compiling policies in - send Access-Reject {...}
/etc/raddb/sites-enabled/default[1219]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - recv Accounting-Request {...}
Reading file /etc/raddb/mods-config/files/accounting
Compiling policies in - send Accounting-Response {...}
Compiling policies in - recv Status-Server {...}
Compiling policies in - authenticate pap {...}
Compiling policies in - authenticate chap {...}
Compiling policies in - authenticate mschap {...}
Compiling policies in - authenticate digest {...}
Compiling policies in - authenticate ldap {...}
Compiling policies in - authenticate eap {...}
Compiling policies in - accounting Start {...}
/etc/raddb/sites-enabled/default[1340]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - accounting Stop {...}
/etc/raddb/sites-enabled/default[1359]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - accounting Interim-Update {...}
/etc/raddb/sites-enabled/default[1389]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - accounting Accounting-On {...}
/etc/raddb/sites-enabled/default[1404]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - accounting Accounting-Off {...}
/etc/raddb/sites-enabled/default[1419]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - accounting Failed {...}
/etc/raddb/sites-enabled/default[80]: radius { ... } section is unused
/etc/raddb/sites-enabled/default[150]: dictionary { ... } section is unused
Compiling policies in server inner-tunnel { ... }
Instantiating proto_radius "inner-tunnel.radius"
Instantiating process_radius "inner-tunnel"
Compiling policies in - recv Access-Request {...}
Reading file /etc/raddb/mods-config/files/authorize
/etc/raddb/sites-enabled/inner-tunnel[124]: Ignoring "-sql" as the "sql" module is not enabled.
/etc/raddb/policy.d/time[13]: Skipping remaining instructions due to 'return'
/etc/raddb/policy.d/time[18]: Please use the 'filter' keyword for attribute filtering
Compiling policies in - send Access-Accept {...}
/etc/raddb/sites-enabled/inner-tunnel[266]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - send Access-Reject {...}
/etc/raddb/sites-enabled/inner-tunnel[308]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - authenticate pap {...}
Compiling policies in - authenticate chap {...}
Compiling policies in - authenticate mschap {...}
Compiling policies in - authenticate eap {...}
src/lib/server/virtual_servers.c[311]: radius { ... } section is unused
Compiling policies in server tacacs { ... }
Instantiating proto_tacacs "tacacs.tacacs"
Instantiating process_tacacs "tacacs"
Compiling policies in - recv Authentication-Start {...}
/etc/raddb/sites-enabled/tacacs[232]: Ignoring "-sql" as the "sql" module is not enabled.
Compiling policies in - send Authentication-Pass {...}
Compiling policies in - send Authentication-Fail {...}
Compiling policies in - send Authentication-GetUser {...}
Compiling policies in - send Authentication-GetPass {...}
Compiling policies in - recv Authentication-Continue {...}
Compiling policies in - authenticate PAP {...}
Compiling policies in - authenticate CHAP {...}
Compiling policies in - authenticate ldap {...}
Compiling policies in - authenticate ASCII {...}
Compiling policies in - recv Authorization-Request {...}
Compiling policies in - send Authorization-Pass-Add {...}
Compiling policies in - recv Accounting-Request {...}
Compiling policies in - send Accounting-Success {...}
Compiling policies in - send Accounting-Error {...}
Compiling policies in - accounting Start {...}
Compiling policies in - accounting Watchdog-Update {...}
Compiling policies in - accounting Watchdog {...}
Compiling policies in - accounting Stop {...}
/etc/raddb/sites-enabled/tacacs[32]: tacacs { ... } section is unused
#### Instantiating rlm modules ####
Instantiating rlm_attr_filter "attr_filter.access_challenge"
Reading file /etc/raddb/mods-config/attr_filter/access_challenge
Instantiating rlm_attr_filter "attr_filter.access_reject"
Reading file /etc/raddb/mods-config/attr_filter/access_reject
Instantiating rlm_attr_filter "attr_filter.accounting_response"
Reading file /etc/raddb/mods-config/attr_filter/accounting_response
Instantiating rlm_attr_filter "attr_filter.post-proxy"
Reading file /etc/raddb/mods-config/attr_filter/post-proxy
Instantiating rlm_attr_filter "attr_filter.pre-proxy"
Reading file /etc/raddb/mods-config/attr_filter/pre-proxy
Instantiating rlm_detail "auth_log"
Instantiating rlm_cache "cache_eap"
Instantiating rlm_chap "chap"
Instantiating rlm_detail "detail"
Instantiating rlm_digest "digest"
Instantiating rlm_always "disallow"
Instantiating rlm_eap "eap"
Instantiating rlm_passwd "etc_passwd"
Instantiating rlm_always "fail"
Instantiating rlm_always "handled"
Instantiating rlm_eap "inner-eap"
inner-eap - Failed to find 'authenticate inner-eap {...}' section. EAP authentication will likely not work
Instantiating rlm_always "invalid"
Instantiating rlm_ldap "ldap"
accounting {
reference = "%tolower(type.%{Acct-Status-Type})"
}
post-auth {
reference = "."
}
Instantiating rlm_linelog "linelog"
Instantiating rlm_linelog "log_accounting"
Instantiating rlm_linelog "log_auth_access_accept"
Instantiating rlm_linelog "log_auth_access_reject"
Instantiating rlm_linelog "log_auth_authentication_fail"
Instantiating rlm_linelog "log_auth_authentication_pass"
Instantiating rlm_mschap "mschap"
mschap - Using internal authentication
Instantiating rlm_always "noop"
Instantiating rlm_always "notfound"
Instantiating rlm_always "ok"
Instantiating rlm_pap "pap"
Instantiating rlm_detail "post_proxy_log"
Instantiating rlm_detail "pre_proxy_log"
Instantiating rlm_always "reject"
Instantiating rlm_detail "reply_log"
Instantiating rlm_stats "stats"
Instantiating rlm_always "updated"
Instantiating _cache_rbtree "cache_eap.rbtree"
Instantiating _eap_mschapv2 "eap.mschapv2"
Instantiating _eap_peap "eap.peap"
tls-config tls-common {
chain rsa {
format = pem
certificate_file = /etc/raddb/certs/rsa/server.pem
private_key_password = <<< secret >>>
private_key_file = /etc/raddb/certs/rsa/server.key
ca_file = /etc/raddb/certs/rsa/ca.pem
verify_mode = hard
include_root_ca = no
}
verify_depth = 0
ca_path = /etc/raddb/certs
ca_file = /etc/raddb/certs/rsa/ca.pem
dh_file = /etc/raddb/certs/dh
fragment_size = 1024
cipher_list = "DEFAULT"
cipher_server_preference = yes
allow_renegotiation = no
ecdh_curve = prime256v1
tls_min_version = 1.2
session {
mode = auto
tls - A virtual_server must be provided for stateful caching. cache.mode = "auto" rewritten to cache.mode = "stateless"
name = "%{EAP-Type}%interpreter(server)"
lifetime = 1d
require_extended_master_secret = yes
require_perfect_forward_secrecy = no
}
verify {
mode = all
attribute_mode = client-and-issuer
check_crl = no
}
}
Instantiating _eap_tls "eap.tls"
tls - Using cached TLS configuration from previous invocation
Instantiating _eap_ttls "eap.ttls"
tls - Using cached TLS configuration from previous invocation
Instantiating _eap_mschapv2 "inner-eap.mschapv2"
Instantiating _eap_tls "inner-eap.tls"
tls-config tls-peer {
chain {
format = pem
certificate_file = /etc/raddb/certs/rsa/server.pem
private_key_password = <<< secret >>>
private_key_file = /etc/raddb/certs/rsa/server.key
ca_file = /etc/raddb/certs/rsa/ca.pem
verify_mode = hard
include_root_ca = no
}
verify_depth = 0
ca_path = /etc/raddb/certs
ca_file = /etc/raddb/certs/rsa/ca.pem
dh_file = /etc/raddb/certs/dh
fragment_size = 16384
cipher_server_preference = yes
allow_renegotiation = no
ecdh_curve = "prime256v1"
tls_min_version = 1.2
session {
mode = auto
tls - A virtual_server must be provided for stateful caching. cache.mode = "auto" rewritten to cache.mode = "stateless"
name = "%{EAP-Type}%interpreter(server)"
lifetime = 1d
require_extended_master_secret = yes
require_perfect_forward_secrecy = no
}
verify {
mode = all
attribute_mode = client-and-issuer
check_crl = no
}
}
Looking for LDAP connection to "ldaps://WIN-DV0HIUUHTPI.freeradius.local:636" bound as "cn=freeradius-ldap,cn=Users,dc=freeradius,dc=local"
No existing connection found - creating new one
Scheduler created in single-threaded mode
#### Opening listener interfaces ####
Listening on radius_udp server * port 1812 bound to virtual server default
Listening on radius_tcp server * port 1812 bound to virtual server default
Listening on radius_udp server * port 1813 bound to virtual server default
Listening on radius_udp server 127.0.0.1 port 18120 bound to virtual server inner-tunnel
Listening on tacacs_tcp server * port 49 bound to virtual server tacacs
Ready to process requests
rlm_ldap - [1] - Signalled to start from HALTED state
rlm_ldap - [1] - Connection changed state HALTED -> INIT
rlm_ldap - [1] Trunk connection changed state HALTED -> INIT
Starting bind operation
rlm_ldap - [1] - Connection changed state INIT -> CONNECTING
rlm_ldap - [1] Trunk connection changed state INIT -> CONNECTING
Bind as "cn=freeradius-ldap,cn=Users,dc=freeradius,dc=local" to "ldaps://WIN-DV0HIUUHTPI.freeradius.local:636" successful
rlm_ldap - [1] - Signalled connected from CONNECTING state
rlm_ldap - [1] - Connection changed state CONNECTING -> CONNECTED
rlm_ldap - [1] - Connection established
rlm_ldap - [1] Trunk connection changed state CONNECTING -> ACTIVE
rlm_ldap (ldap) - Performing search in "" with filter "(objectclass=*)", scope "base"
Got search entry response for message 2
rlm_ldap (ldap) - Directory type: Active Directory
rlm_ldap (ldap) - Directory supports LDAP_SERVER_NOTIFICATION_OID
proto_tacacs_tcp - starting connection tacacs_tcp from client 127.0.0.1 port 53534 to server * port 49
Listening on tacacs_tcp from client 127.0.0.1 port 53534 to server * port 49 bound to virtual server tacacs
proto_tacacs_tcp - Received Authentication seq_no 1 length 64 tacacs_tcp from client 127.0.0.1 port 53534 to server * port 49
(0) Received Authentication-Start ID 1 from 127.0.0.1:53534 to 127.0.0.1:49 length 64 via socket tacacs_tcp from client 127.0.0.1 port 53534 to server * port 49
(0) Packet {
(0) Version-Major = Plus
(0) Version-Minor = 1
(0) Packet-Type = Authentication
(0) Sequence-Number = 1
(0) Flags = None
(0) Session-Id = 1085304268
(0) Length = 52
(0) }
(0) Packet-Body-Type = Start
(0) Action = LOGIN
(0) Privilege-Level = Minimum
(0) Authentication-Type = PAP
(0) Authentication-Service = LOGIN
(0) User-Name = "test"
(0) Client-Port = "python_tty0"
(0) Remote-Address = "python_device"
(0) User-Password = "RUrMV9nmkQUSthyy"
Worker - Resetting cleanup timer to +30
(0) tacacs {
(0) Running 'recv Authentication-Start' from file /etc/raddb/sites-enabled/tacacs
(0) recv Authentication-Start {
(0) &control.Auth-Type := 658583602
(0) } # recv Authentication-Start (noop)
(0) Running 'authenticate ldap' from file /etc/raddb/sites-enabled/tacacs
(0) authenticate ldap {
(0) | %{&Stripped-User-Name || &User-Name}
(0) | ||
(0) | &Stripped-User-Name
(0) | %logical_or()
(0) | &Stripped-User-Name
(0) (null)
(0) | &User-Name
(0) | %logical_or(...)
(0) | &User-Name
(0) | --> test
(0) | %logical_or(...)
(0) | --> test
(0) ldap - Login attempt with password
(0) Looking for LDAP connection to "ldaps://WIN-DV0HIUUHTPI.freeradius.local:636" bound as "cn=freeradius-ldap,cn=Users,dc=freeradius,dc=local"
(0) rlm_ldap - [1] Trunk connection assigned request 2
(0) ldap - Performing search in "dc=freeradius,dc=local" with filter "(sAMAccountName=test)", scope "sub"
(0) ldap - Got search entry response for message 3
(0) ldap - function - Resuming execution
(0) User object found at DN "CN=test,CN=Users,DC=freeradius,DC=local"
(0) Using user DN from request "CN=test,CN=Users,DC=freeradius,DC=local"
(0) Login attempt as "CN=test,CN=Users,DC=freeradius,DC=local"
rlm_ldap bind auth - [2] - Signalled to start from HALTED state
rlm_ldap bind auth - [2] - Connection changed state HALTED -> INIT
rlm_ldap bind auth - [2] Trunk connection changed state HALTED -> INIT
Starting bind operation
rlm_ldap bind auth - [2] - Connection changed state INIT -> CONNECTING
rlm_ldap bind auth - [2] Trunk connection changed state INIT -> CONNECTING
Bind as "cn=freeradius-ldap,cn=Users,dc=freeradius,dc=local" to "ldaps://WIN-DV0HIUUHTPI.freeradius.local:636" successful
rlm_ldap bind auth - [2] - Signalled connected from CONNECTING state
rlm_ldap bind auth - [2] - Connection changed state CONNECTING -> CONNECTED
rlm_ldap bind auth - [2] - Connection established
rlm_ldap bind auth - [2] Trunk connection changed state CONNECTING -> ACTIVE
(0) ldap - rlm_ldap bind auth - [2] Trunk connection assigned request 3
rlm_ldap bind auth - [2] Trunk connection changed state ACTIVE -> FULL
(0) ldap - Starting bind auth operation as CN=test,CN=Users,DC=freeradius,DC=local
(0) ldap - function - Resuming execution
(0) Bind as user "CN=test,CN=Users,DC=freeradius,DC=local" was successful
rlm_ldap bind auth - [2] Trunk connection changed state FULL -> ACTIVE
(0) ldap - ldap (ok)
(0) } # authenticate ldap (ok)
(0) Running 'send Authentication-Pass' from file /etc/raddb/sites-enabled/tacacs
(0) send Authentication-Pass {
(0) | %{User-Name}
(0) | --> test
(0) &reply.Server-Message := Hello test
(0) } # send Authentication-Pass (noop)
(0) tacacs (ok)
(0) } # tacacs (ok)
(0) Done request
(0) Sending Authentication-Pass ID 2 from 127.0.0.1:49 to 127.0.0.1:53534 length 28 via socket tacacs_tcp from client 127.0.0.1 port 53534 to server * port 49
(0) Packet-Type = Authentication-Pass
(0) Server-Message = "Hello test"
(0) Finished request
proto_tacacs_tcp - cleaning up
TIMER - setting idle timeout for connection from client tacacs
Network - Socket tacacs_tcp from client 127.0.0.1 port 53534 to server * port 49 closed by peer
Closing connection tacacs_tcp from client 127.0.0.1 port 53534 to server * port 49
proto_tacacs_tcp - starting connection tacacs_tcp from client 127.0.0.1 port 53476 to server * port 49
Listening on tacacs_tcp from client 127.0.0.1 port 53476 to server * port 49 bound to virtual server tacacs
proto_tacacs_tcp - Received Authentication seq_no 1 length 48 tacacs_tcp from client 127.0.0.1 port 53476 to server * port 49
(1) Received Authentication-Start ID 1 from 127.0.0.1:53476 to 127.0.0.1:49 length 48 via socket tacacs_tcp from client 127.0.0.1 port 53476 to server * port 49
(1) Packet {
(1) Version-Major = Plus
(1) Version-Minor = 1
(1) Packet-Type = Authentication
(1) Sequence-Number = 1
(1) Flags = None
(1) Session-Id = 718923347
(1) Length = 36
(1) }
(1) Packet-Body-Type = Start
(1) Action = LOGIN
(1) Privilege-Level = Minimum
(1) Authentication-Type = PAP
(1) Authentication-Service = LOGIN
(1) User-Name = "test"
(1) Client-Port = "python_tty0"
(1) Remote-Address = "python_device"
(1) User-Password = ""
(1) tacacs {
(1) Running 'recv Authentication-Start' from file /etc/raddb/sites-enabled/tacacs
(1) recv Authentication-Start {
(1) &control.Auth-Type := 658583602
(1) } # recv Authentication-Start (noop)
(1) Running 'authenticate ldap' from file /etc/raddb/sites-enabled/tacacs
(1) authenticate ldap {
(1) | %{&Stripped-User-Name || &User-Name}
(1) | ||
(1) | &Stripped-User-Name
(1) | %logical_or()
(1) | &Stripped-User-Name
(1) (null)
(1) | &User-Name
(1) | %logical_or(...)
(1) | &User-Name
(1) | --> test
(1) | %logical_or(...)
(1) | --> test
(1) ldap - Login attempt with password
(1) Looking for LDAP connection to "ldaps://WIN-DV0HIUUHTPI.freeradius.local:636" bound as "cn=freeradius-ldap,cn=Users,dc=freeradius,dc=local"
(1) rlm_ldap - [1] Trunk connection assigned request 4
(1) ldap - Performing search in "dc=freeradius,dc=local" with filter "(sAMAccountName=test)", scope "sub"
(1) ldap - Got search entry response for message 4
(1) ldap - function - Resuming execution
(1) User object found at DN "CN=test,CN=Users,DC=freeradius,DC=local"
(1) Using user DN from request "CN=test,CN=Users,DC=freeradius,DC=local"
(1) Login attempt as "CN=test,CN=Users,DC=freeradius,DC=local"
(1) rlm_ldap bind auth - [2] Trunk connection assigned request 5
rlm_ldap bind auth - [2] Trunk connection changed state ACTIVE -> FULL
(1) ldap - Starting bind auth operation as CN=test,CN=Users,DC=freeradius,DC=local
(1) ldap - function - Resuming execution
(1) Bind as user "CN=test,CN=Users,DC=freeradius,DC=local" was successful
rlm_ldap bind auth - [2] Trunk connection changed state FULL -> ACTIVE
(1) ldap - ldap (ok)
(1) } # authenticate ldap (ok)
(1) Running 'send Authentication-Pass' from file /etc/raddb/sites-enabled/tacacs
(1) send Authentication-Pass {
(1) | %{User-Name}
(1) | --> test
(1) &reply.Server-Message := Hello test
(1) } # send Authentication-Pass (noop)
(1) tacacs (ok)
(1) } # tacacs (ok)
(1) Done request
(1) Sending Authentication-Pass ID 2 from 127.0.0.1:49 to 127.0.0.1:53476 length 28 via socket tacacs_tcp from client 127.0.0.1 port 53476 to server * port 49
(1) Packet-Type = Authentication-Pass
(1) Server-Message = "Hello test"
(1) Finished request
proto_tacacs_tcp - cleaning up
TIMER - setting idle timeout for connection from client tacacs
Network - Socket tacacs_tcp from client 127.0.0.1 port 53476 to server * port 49 closed by peer
Closing connection tacacs_tcp from client 127.0.0.1 port 53476 to server * port 49
^CSignalled to terminate
Exiting normally
rlm_ldap - [1] - Signalled to halt from CONNECTED state
rlm_ldap - [1] - Connection changed state CONNECTED -> CLOSED
rlm_ldap - [1] Trunk connection changed state ACTIVE -> CLOSED
rlm_ldap - [1] - Connection changed state CLOSED -> HALTED
rlm_ldap - [1] Trunk connection changed state CLOSED -> HALTED
rlm_ldap bind auth - [2] - Signalled to halt from CONNECTED state
rlm_ldap bind auth - [2] - Connection changed state CONNECTED -> CLOSED
rlm_ldap bind auth - [2] Trunk connection changed state ACTIVE -> CLOSED
rlm_ldap bind auth - [2] - Connection changed state CLOSED -> HALTEDrlm_ldap bind auth - [2] Trunk connection changed state CLOSED -> HALTED
Thanks in advance for any help,
Simon
2
2
05 May '24
We recently updated freeradius, and noticed that it came with a
"dictionary.infinera".
Generally we're looking to see if this project is interested in some
updates to this file.
What's listed in the file that comes with FreeRADIUS is actually
"transmode" (an infinera acquisition).
We have 3 definition files we use for Inffinera, one is "actual
infinera", one is "coriant" and one is "transmode".
Posting here with hopes they get integrated into FreeRADIUS, as many
of htem were barely documented things deep inside these vendor's docs.
If it's kosher to put vendor acquisitions inside their current
vendor's file, then adding them to "dictionary.infinera" is good. If
not, I'd split off what is currently in the infinera dictionary to be
transmode.
file details below:
# dictionary.coriant:
VENDOR Coriant 42229
BEGIN-VENDOR Coriant
#g30 chassis
ATTRIBUTE Coriant-Priv-Lvl 1 integer
ATTRIBUTE Coriant-User-Class 2 string
ATTRIBUTE Coriant-Timeout 3 integer
ATTRIBUTE Coriant-Max-Sessions 5 integer
#tnms
ATTRIBUTE Coriant-TNMS-UserGroup 6 string
END-VENDOR Coriant
# dictionary.transmode
VENDOR Transmode 8708
BEGIN-VENDOR Transmode
ATTRIBUTE Infinera-User-Category 1 string
ATTRIBUTE Infinera-ENM-User-Category 2 string
END-VENDOR Transmode
# dictionary.infinera
VENDOR Infinera 21296
BEGIN-VENDOR Infinera
# For privilege attributes 1 - 16
ATTRIBUTE Infinera-User-Priv-SA 1 integer
ATTRIBUTE Infinera-User-Priv-NA 2 integer
ATTRIBUTE Infinera-User-Priv-NE 3 integer
ATTRIBUTE Infinera-User-Priv-PR 4 integer
ATTRIBUTE Infinera-User-Priv-TT 5 integer
ATTRIBUTE Infinera-User-Priv-MA 6 integer
ATTRIBUTE Infinera-User-Priv-RA 7 integer
ATTRIBUTE Infinera-User-AdminDomain 100 string
ATTRIBUTE Infinera-User-Max-Concurrent-Session 101 integer
ATTRIBUTE Infinera-User-Allowed-Timezone-Config 102 integer
ATTRIBUTE Infinera-User-TimeZone 103 string
ATTRIBUTE Infinera-User-Email-ID 110 string
ATTRIBUTE Infinera-User-Email-Notification 111 integer
ATTRIBUTE Infinera-User-Email-Alarm-Type 112 integer
ATTRIBUTE Infinera-User-Email-Filter-Name 113 string
ATTRIBUTE Infinera-User-Email-AdminDomain 114 string
# For Misc Session Attributes 17 - 32
ATTRIBUTE Infinera-User-SessionTimeout 17 integer
ATTRIBUTE Infinera-User-LockedOut 19 integer
ATTRIBUTE Infinera-User-CanUseResSession 20 integer
#For Mgmt Type based privileges 33 - 40
ATTRIBUTE Infinera-User-MgmtType-EMS 33 integer
ATTRIBUTE Infinera-User-MgmtType-GNM 34 integer
ATTRIBUTE Infinera-User-MgmtType-TL1 35 integer
ATTRIBUTE Infinera-User-MgmtType-CLI 36 integer
ATTRIBUTE Infinera-User-MgmtType-NETCONF 37 integer
#reserved attributes 240 - 255
#240 - 248 for reserved strings
ATTRIBUTE Infinera-Rsvd-Str-Attribute1 240 string
ATTRIBUTE Infinera-Rsvd-Str-Attribute2 241 string
#249 - 255 for reserved strings
ATTRIBUTE Infinera-Rsvd-Int-Attribute1 249 integer
ATTRIBUTE Infinera-Rsvd-Int-Attribute2 250 integer
#Values for corresponding attributes.
#SA,NA,NE,PR,TT Values
VALUE Infinera-User-Priv-SA SA-NONPRIVILEGED 0
VALUE Infinera-User-Priv-SA SA-PRIVILEGED 1
VALUE Infinera-User-Priv-NA NA-NONPRIVILEGED 0
VALUE Infinera-User-Priv-NA NA-PRIVILEGED 1
VALUE Infinera-User-Priv-NE NE-NONPRIVILEGED 0
VALUE Infinera-User-Priv-NE NE-PRIVILEGED 1
VALUE Infinera-User-Priv-PR PR-NONPRIVILEGED 0
VALUE Infinera-User-Priv-PR PR-PRIVILEGED 1
VALUE Infinera-User-Priv-TT TT-NONPRIVILEGED 0
VALUE Infinera-User-Priv-TT TT-PRIVILEGED 1
VALUE Infinera-User-Priv-MA MA-NONPRIVILEGED 0
VALUE Infinera-User-Priv-MA MA-PRIVILEGED 1
VALUE Infinera-User-Priv-RA RA-NONPRIVILEGED 0
VALUE Infinera-User-Priv-RA RA-PRIVILEGED 1
VALUE Infinera-User-Allowed-Timezone-Config TIMEZONE-CONFIG-ALLOW 1
VALUE Infinera-User-Allowed-Timezone-Config TIMEZONE-CONFIG-NOT-ALLOW 0
VALUE Infinera-User-Email-Notification EMAIL-NOTIFICATION-ENABLE 1
VALUE Infinera-User-Email-Notification EMAIL-NOTIFICATION-DISABLE 0
VALUE Infinera-User-Email-Alarm-Type EMAIL-ALARM-TYPE-ALL 0
VALUE Infinera-User-Email-Alarm-Type EMAIL-ALARM-TYPE-NEW 1
VALUE Infinera-User-Email-Alarm-Type EMAIL-ALARM-TYPE-CLEAR 2
#Misc Attributes's values setting
VALUE Infinera-User-CanUseResSession CANNOT-USE-RES-SESSION 0
VALUE Infinera-User-CanUseResSession CAN-USE-RES-SESSION 1
#Mgmt Type Values
VALUE Infinera-User-MgmtType-EMS MGMTTYPE-EMS-DISALLOWED 0
VALUE Infinera-User-MgmtType-EMS MGMTTYPE-EMS-ALLOWED 1
VALUE Infinera-User-MgmtType-TL1 MGMTTYPE-TL1-DISALLOWED 0
VALUE Infinera-User-MgmtType-TL1 MGMTTYPE-TL1-ALLOWED 1
VALUE Infinera-User-MgmtType-GNM MGMTTYPE-GNM-DISALLOWED 0
VALUE Infinera-User-MgmtType-GNM MGMTTYPE-GNM-ALLOWED 1
VALUE Infinera-User-MgmtType-GNM MGMTTYPE-CLI-DISALLOWED 0
VALUE Infinera-User-MgmtType-GNM MGMTTYPE-CLI-ALLOWED 1
VALUE Infinera-User-MgmtType-GNM MGMTTYPE-NETCONF-DISALLOWED 0
VALUE Infinera-User-MgmtType-GNM MGMTTYPE-NETCONF-ALLOWED 1
VALUE Infinera-Rsvd-Int-Attribute1 INFINERA 1
END-VENDOR Infinera
2
1