Retain config adjustments in raddb configuration
-
Using the shelI, I made some minor changes to the FreeRadius configuration within pfSense. The changes work and the daemon starts without errors. The modification in /usr/local/etc/raddb/sites-enabled/default however isn't always retained, and I've had to reapply it several times. I haven't found a suitable place in the GUI to do this. In which file are my changes preserved, even after a reboot or upgrade? The modification belongs in the accounting section.
-
@SandMouse said in Retain config adjustments in raddb configuration:
The modification in /usr/local/etc/raddb/sites-enabled/default however isn't always retained, and I've had to reapply it several times
Because pfSense re creates most if not all config files before it start the related process.
It creates the config files based upon .... what you've set up in the GUI.
So, a solution for you would be : do not change the config files, but change the files that make the config files.@SandMouse said in Retain config adjustments in raddb configuration:
I haven't found a suitable place in the GUI to do this
Because you need to know "the secret"
FreeRadius is a pfSense package.
So it files can be found there where pfSense places the package (GUI) files :
/usr/local/pkg/ and there you will find several freeradius*.* files. They are all very readable.Go to line 1896, and look for the function freeradius_serverdefault_resync
There you will find how the "/usr/local/etc/raddb/sites-enabled/default" is created - and at the bottom of that function it's written to disk.
Edit your changes in there.Be aware : when you re install the package, you have to re apply some edits to this file.
-
@Gertjan said in Retain config adjustments in raddb configuration:
"the secret"
Thank you for letting me in on this "the secret". Exactly the solution I was looking for. Kind regards.
-
If you add that as a patch in the System Patches package that will be retained in the config and you can just reapply it.