Hi, I have developed a generic hook that calls an external script at all hook points provided by Kea. The goal is to simplify integration with Kea: for many simple use-cases, it is overkill to have to write a full-blown Kea hook, where a simple shell script can do the job.
This could be useful for several use-cases, but we currently use it to add/remove routes in the kernel routing table when DHCP clients connect or disconnect. The code and documentation are here: https://code.ffdn.org/zorun/kea-hook-runscript https://github.com/zorun/kea-hook-runscript (mirror) If you find this useful or would like more variables to be provided to the external script, please send feedback or pull requests! In particular, feel free to provide more examples (Kea config + script). Note that the code is still a bit rough, especially for DHCPv6: see the TODO list at https://code.ffdn.org/zorun/kea-hook-runscript#todo Baptiste
signature.asc
Description: PGP signature
_______________________________________________ Kea-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/kea-users
