[Kea-users] New Kea hook to call external scripts: kea-hook-runscript

Baptiste Jonglez baptiste at bitsofnetworks.org
Thu Aug 24 10:21:32 UTC 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20170824/c654fce2/attachment.bin>


More information about the Kea-users mailing list