@Hugovsky said in Radius seems not to be working:
Ive just installed 25.03.b.20250306.0140 and I'm having a problem with radius server.
😠
I saw something when upgrading to the latest "25_03_b_20250306".
FreeRadius showed in the GUI : it was stopped. Started it with the start button from the dashboard, but it was a no go.
I asked FreeRadius what the problem was.
For this, you need to stop it in the GUI first, and this was already the case.
Then, on then SSH/console access, start radiusd in the debug mode :
radiusd -Xand it shows something new : it couldn't start because some file was missing :
[25.03-BETA][root@pfSense.bhf.tld]/usr/local/share/freeradius: radiusd -X
FreeRADIUS Version 3.2.6
Copyright (C) 1999-2023 The FreeRADIUS server project and contributors
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License
For more information about these matters, see the file named COPYRIGHT
Starting - reading configuration files ...
including dictionary file /usr/local/share/freeradius/dictionary
including dictionary file /usr/local/share/freeradius/dictionary.dhcp
including dictionary file /usr/local/share/freeradius/dictionary.vqp
including dictionary file /usr/local/etc/raddb/dictionary
......
et bang ... it errors out here.
Look at the file /usr/local/etc/raddb/dictionary :
# Local dictionary, does not need to include the master dictionary ATTRIBUTE MOTP-Init-Secret 900 string ATTRIBUTE MOTP-PIN 901 string ATTRIBUTE MOTP-Offset 902 string $INCLUDE /usr/share/doc/radius/dictionary.pfsense $INCLUDE /usr/local/pkg/dictionary.mpdI want to use (INCLUDE) a file called "dictionary.pfsense" located in "/usr/share/doc/radius/" and sure enough, it wasn't there !
Strange, that same dictionary file is present in " /usr/local/share/freeradius/".
So, several solutions :
Copy the file from /usr/local/share/freeradius/ to /usr/share/doc/radius/.
Or, what I did : I linked it.
From now on, radius started again.
When I delete the this file (link) and re-install FreeRadius 0.15.13 - thats the version I have when using pfSense Beta 25.03.b.20250306.0140, it fails again.
A bug ?
edit : Here : "Chase relocating dictionary.pfsense", a 0.15.4 is in the works since last February, 2025 : https://github.com/pfsense/FreeBSD-ports/commit/90818fbb6140e193318471896a36815ce34837ab
so this is where the bug is introduced ?
d26cc802-af88-4144-85bc-6242d36b776b-image.png
/usr/share/doc/radius/dictionary.pfsense is moved to /usr/local/share/pfSense/radius/dictionary.pfsense
and forgot to update /usr/local/etc/raddb/dictionary so it points to the new location.