• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Feb 6, 2010, 10:58 AM Feb 5, 2010, 11:20 PM

    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 Feb 6, 2010, 12:07 AM

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

      /Perry
      doc.pfsense.org

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Feb 6, 2010, 1:50 AM

        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 Feb 6, 2010, 10:58 AM

          @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
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received