Skip to content

Restarts FreeRADIUS when NAS entries are changed in SQL database

License

Notifications You must be signed in to change notification settings

jbro885/FreeRADIUS-NAS-change-restarter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeRADIUS NAS change restarter

No Maintenance Intended

What is this?

A MySQL table definition, triggers, and a python program to track changes to the NAS table and restart FreeRADIUS after ensuring that other RADIUS servers are running (to avoid creating downtime).

Why would I use it?

What does it need to run?

How do I use this?

  • Create the NAS updates table by loading sql/table.sql into MySQL.
  • Load triggers from sql/triggers.sql
  • Customize reloader.json for your environment. Save reloader.json to /etc/reloader.json
  • Make sure /var/lib/reloader exists and the user that will run reloader has read and write permissions to it.
  • Make sure there is at least one entry in the nas_changes table as the result of a change in the nas table
  • Run reloader.py from cron every 5 minutes or so.

About

Restarts FreeRADIUS when NAS entries are changed in SQL database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%