Reloading config.xml without reboot (adding freeradius users) [solved]
-
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 -
Might help http://forum.pfsense.org/index.php/topic,14847.0.html
-
In 2.0 there is also voucher support for Captive Portal which would accomplish the same (or similar) goals.
-
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!