Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Retain config adjustments in raddb configuration

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 173 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      SandMouse
      last edited by

      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.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @SandMouse
        last edited by

        @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.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        S 1 Reply Last reply Reply Quote 1
        • S
          SandMouse @Gertjan
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.