Hello, When we start freeradius server and the database server connection is working properly, freeradius server is started correctly but when we stop the database server, freeradaius server is always up and running and makes responses to the nas with reject response. Is there any solution to make freeradius gow down when it losts connection to database or not send response to NAS ? Thanks Bassem
On 22 Apr 2022, at 11:40, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
When we start freeradius server and the database server connection is working properly, freeradius server is started correctly but when we stop the database server, freeradaius server is always up and running and makes responses to the nas with reject response. Is there any solution to make freeradius gow down when it losts connection to database or not send response to NAS ?
Create an external script which supervises the database and kills FreeRADIUS if you deem the database as unusable or not available.
Thanks Bassem - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
https://severalnines.com/database-blog/deploying-active-active-freeradius-cl... to give an idea.
-----Oorspronkelijk bericht----- Van: Freeradius-Users Namens Kristofer Hallin Verzonden: vrijdag 22 april 2022 11:50 Aan: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Onderwerp: Re: dabase down
On 22 Apr 2022, at 11:40, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
When we start freeradius server and the database server connection is working properly, freeradius server is started correctly but when we stop the database server, freeradaius server is always up and running and makes responses to the nas with reject response. Is there any solution to make freeradius gow down when it losts connection to database or not send response to NAS ?
Create an external script which supervises the database and kills FreeRADIUS if you deem the database as unusable or not available.
Thanks Bassem - List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
my database server is redis and it is installed on the same machine with freeradius server Le ven. 22 avr. 2022 à 11:04, L.P.H. van Belle via Freeradius-Users < freeradius-users@lists.freeradius.org> a écrit :
https://severalnines.com/database-blog/deploying-active-active-freeradius-cl... to give an idea.
-----Oorspronkelijk bericht----- Van: Freeradius-Users Namens Kristofer Hallin Verzonden: vrijdag 22 april 2022 11:50 Aan: FreeRadius users mailing list < freeradius-users@lists.freeradius.org> Onderwerp: Re: dabase down
On 22 Apr 2022, at 11:40, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
When we start freeradius server and the database server connection is working properly, freeradius server is started correctly but when we stop the database server, freeradaius server is always up and running and makes responses to the nas with reject response. Is there any solution to make freeradius gow down when it losts connection to database or not send response to NAS ?
Create an external script which supervises the database and kills FreeRADIUS if you deem the database as unusable or not available.
Thanks Bassem - List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
i dont know your OS but, then try this if you use systemd Try PartOf=
From https://www.freedesktop.org/software/systemd/man/systemd.unit.html: Configures dependencies similar to Requires=, but limited to stopping and restarting of units. When systemd stops or restarts the units listed here, the action is propagated to this unit. Note that this is a one-way dependency ? changes to this unit do not affect the listed units
That show do it. stop reddisDB and it also stops freeradius. Greetz, Louis
-----Oorspronkelijk bericht----- Van: Freeradius-Users Namens Bassem Mettichi Verzonden: vrijdag 22 april 2022 12:14 Aan: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Onderwerp: Re: dabase down
my database server is redis and it is installed on the same machine with freeradius server
Le ven. 22 avr. 2022 à 11:04, L.P.H. van Belle via Freeradius-Users < freeradius-users@lists.freeradius.org> a écrit :
https://severalnines.com/database-blog/deploying-active-active-
freeradius-cluster-mysql-ndb-or-galera
to give an idea.
-----Oorspronkelijk bericht----- Van: Freeradius-Users Namens Kristofer Hallin Verzonden: vrijdag 22 april 2022 11:50 Aan: FreeRadius users mailing list < freeradius-users@lists.freeradius.org> Onderwerp: Re: dabase down
On 22 Apr 2022, at 11:40, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
When we start freeradius server and the database server connection is working properly, freeradius server is started correctly but when we stop the database server, freeradaius server is always up and running and makes responses to the nas with reject response. Is there any solution to make freeradius gow down when it losts connection to database or not send response to NAS ?
Create an external script which supervises the database and kills FreeRADIUS if you deem the database as unusable or not available.
Thanks Bassem - List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 22.04.22 11:40, Bassem Mettichi wrote:
Hello,
When we start freeradius server and the database server connection is working properly, freeradius server is started correctly but when we stop the database server, freeradaius server is always up and running and makes responses to the nas with reject response. Is there any solution to make freeradius gow down when it losts connection to database or not send response to NAS ?
Thanks Bassem - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
FreeRADIUS offers intrinsic possibilities to the backend server availability. See the doc of the SQL module. Use redundant statement in the config the the FR authorization / accouting section. See: https://wiki.freeradius.org/config/Fail-over Mit freundlichen Grüßen, -- [*] sys4 AG https://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG,80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer, Wolfgang Stief Aufsichtsratsvorsitzender: Florian Kirstein
participants (4)
-
Bassem Mettichi -
Kristofer Hallin -
L.P.H. van Belle -
Michael Schwartzkopff