Autoreload of freeradius configuration files
Hi, I am using freeradius 3.0.20 for one of the projects. For my requirement I am using it as a proxy server. I am able to update the required configuration file (client.conf, proxy.conf and site-enabled/default) with the clients, realms and home-server details, to proxy the incoming request to the home server. My query is that for this requirement I need to add/delete the new/old clients in "clients.conf" or add/delete home-server configuration in the "proxy.conf" file. But for every change in these files I have to restart the server in-order for the change to become effective. Is there any way to dynamically read these configuration files ((client.conf, proxy.conf and site-enabled/default)) without restarting the server? I have tried the HUP signal method, but it's reloading only the freeradius modules even when I changed any of these three files. Kindly advise. Thanks & Regards, Amit
Hi, you can put the clients into a database, but that would not solve your whole problem. Perhaps you can set up some automation that updates the config, checks the new config and in a final step send a HUP to the server via the radmin interface. Michael. On 30.11.22 17:40, Amit Prajapati wrote:
Hi,
I am using freeradius 3.0.20 for one of the projects. For my requirement I am using it as a proxy server. I am able to update the required configuration file (client.conf, proxy.conf and site-enabled/default) with the clients, realms and home-server details, to proxy the incoming request to the home server.
My query is that for this requirement I need to add/delete the new/old clients in "clients.conf" or add/delete home-server configuration in the "proxy.conf" file. But for every change in these files I have to restart the server in-order for the change to become effective.
Is there any way to dynamically read these configuration files ((client.conf, proxy.conf and site-enabled/default)) without restarting the server? I have tried the HUP signal method, but it's reloading only the freeradius modules even when I changed any of these three files.
Kindly advise.
Thanks & Regards, Amit - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Nov 30, 2022, at 11:40 AM, Amit Prajapati <amit.subscription@gmail.com> wrote:
I am using freeradius 3.0.20 for one of the projects.
You should really upgrade to 3.2.1.
For my requirement I am using it as a proxy server. I am able to update the required configuration file (client.conf, proxy.conf and site-enabled/default) with the clients, realms and home-server details, to proxy the incoming request to the home server.
My query is that for this requirement I need to add/delete the new/old clients in "clients.conf" or add/delete home-server configuration in the "proxy.conf" file. But for every change in these files I have to restart the server in-order for the change to become effective.
Yes.
Is there any way to dynamically read these configuration files ((client.conf, proxy.conf and site-enabled/default)) without restarting the server?
No.
I have tried the HUP signal method, but it's reloading only the freeradius modules even when I changed any of these three files.
HUP only reloads a few things. It's just too hard to reload clients and home servers on the fly. 3.2.1 has some provisions for reloading home servers dynamically. But you can't just HUP the server, it's more complicated than that. See raddb/home_servers/README.md in the 3.2 distribution. Alan DeKok.
participants (3)
-
Alan DeKok -
Amit Prajapati -
Michael Schwartzkopff