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

    Reloading config.xml without reboot (adding freeradius users) [solved]

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 7.4k 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.
    • J
      jezura
      last edited by

      Hi, I'm setting up a network for a small hotel where guests will have wifi access. The scenario should be the following:

      1. The receptionist generates username/password/expiration data for a new guest using a small application.
      2. The data is uploaded automatically to the pfsense box.
      3. Cron periodically checks for data about new users - if found, config.xml is updated accordingly.
      4. Pfsense configuration is updated by re-reading config.xml.
      5. Freeradius server is restarted.
      6. The new guest can login.

      My problem is in step 4.
      How can I let pfsense know about a change in config.xml and make it reload the configuration without having to reboot?

      Looking at the various rc scripts in /etc, I realized that the /etc/rc.filter_configure script updates the configuration in /tmp/config.cache, which seems to be what I need. But I don't know if it's safe to execute this script when the system is running.

      So my question: is it safe to execute /etc/rc.filter_configure while the system is running? Could there be any negative side effects? And if this is not the correct way to go, how can I reload the configuration from config.xml without rebooting the system?

      Thanks for any help, tips or suggestions.
      Petr from the Czech Republic

      1 Reply Last reply Reply Quote 0
      • P
        Perry
        last edited by

        Might help http://forum.pfsense.org/index.php/topic,14847.0.html

        /Perry
        doc.pfsense.org

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          In 2.0 there is also voucher support for Captive Portal which would accomplish the same (or similar) goals.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • J
            jezura
            last edited by

            @Perry:

            Might help http://forum.pfsense.org/index.php/topic,14847.0.html

            I went through many posts in the forum but I missed this one… it contains exactly what I need. Thanks a million!

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