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

    FreeRadius replication

    Scheduled Pinned Locked Moved pfSense Packages
    7 Posts 3 Posters 4.0k 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.
    • I
      itbit
      last edited by

      Hi,

      I have two Pfsenses boxes running freeradius but I would like to make one of them replicate the users information from the other one.

      I tried setting up a script to copy the users file via shh

      scp root@myradius.mydomain.com:/usr/local/etc/raddb/users /usr/local/etc/raddb/users

      and then restarting the radiusd service but it does not seems to be working

      If i go to the GUI no users show up and if I add one the whole users file gets re-written and will only include the user that I just added via the GUI

      has anyone run into this issue before? is there better way to set the replication?

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        Hi,

        I think there are different files for the GUI and the real "users" file of freeRADIUS.
        I think you can sync the users files of both freeRADIUS and it will work but it will not show up in the GUI.
        And like you said - after doing any changes on the freeRADIUS GUI all changes you did before will get lost.

        I think you'll have to find the file which is responsible for the freeRADIUS GUI and sync this file, too.

        If you found any solution, please let me know!

        1 Reply Last reply Reply Quote 0
        • I
          itbit
          last edited by

          I Think I got it….
          but I'm still testing

          the easiest way seems to be to be to update /cf/conf/config.xml

          and the run
          ./etc/rc.filter_configure
          ./etc/rc.packages

          it seems that if you do other changes to the config.xml file
          you should also run
          ./etc/rc.filter_configure_xmlrpc

          for those changes to take effect.

          hopefully this information helps other people.

          1 Reply Last reply Reply Quote 0
          • N
            Nachtfalke
            last edited by

            Hi,

            is this working for you, now ?

            How do you only update the freeradius content of the config.xml file ?
            Or did you found another solution ?

            Thanks for your feedback.

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              Look at any .inc file from packages that sync conf between pfSense boxes and you will see that it's not So hard.

              Then create an php script to do it for you.

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • N
                Nachtfalke
                last edited by

                @marcelloc:

                Look at any .inc file from packages that sync conf between pfSense boxes and you will see that it's not So hard.

                Then create an php script to do it for you.

                Can you tell me one or two packages which are doing that ?
                My both pfsense machines are NOT running in CARP mode - so is it than still possible to sync the packages ?

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  Varnish, postifix, haproxy.

                  You do not need carp enabled to use it.

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

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