hooks.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # This is an example configuration file for the DHCPv4 server in Kea
  2. # illustrating the configuration of hooks libraries. It uses a basic scenario
  3. # of one IPv4 subnet configured with the default values for all parameters.
  4. {"Dhcp4":
  5. {
  6. # Kea is told to listen on the ethX interface only.
  7. "interfaces-config": {
  8. "interfaces": [ "ethX" ]
  9. },
  10. # Set up the storage for leases.
  11. "lease-database": {
  12. "type": "memfile"
  13. },
  14. # Define a single subnet.
  15. "subnet4": [
  16. {
  17. "pools": [ { "pool": "192.0.2.1 - 19.2.0.2.200" } ],
  18. "subnet": "192.0.2.0/24",
  19. "interface": "ethX"
  20. }
  21. ],
  22. # Set up the hooks libraries. For this example, we assume that two libraries
  23. # are loaded, called "security" and "charging". Note that order is important:
  24. # "security" is specified first so if both libraries supply a hook function
  25. # for a given hook, the function in "security" will be called before that in
  26. # "charging".
  27. "hooks-libraries": [
  28. {
  29. "library": "/opt/lib/security.so"
  30. },
  31. {
  32. "library": "/opt/lib/charging.so"
  33. }
  34. ]
  35. }
  36. }