hooks.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # This is an example configuration file for the DHCPv6 server in Kea
  2. # illustrating the configuration of hooks libraries. It uses a basic scenario
  3. # of one IPv6 subnet configured with the default values for all parameters.
  4. {"Dhcp6":
  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. # Set values to mandatory timers
  15. "renew-timer": 900,
  16. "rebind-timer": 1200,
  17. "preferred-lifetime": 1800,
  18. "valid-lifetime": 2700,
  19. # Define a single subnet.
  20. "subnet6": [
  21. {
  22. "pools": [ { "pool": "2001:db8:1::/80" } ],
  23. "subnet": "2001:db8:1::/64",
  24. "interface": "ethX"
  25. }
  26. ],
  27. # Set up the hooks libraries. For this example, we assume that two libraries
  28. # are loaded, called "security" and "charging". Note that order is important:
  29. # "security" is specified first so if both libraries supply a hook function
  30. # for a given hook, the function in "security" will be called before that in
  31. # "charging".
  32. "hooks-libraries": [
  33. {
  34. "library": "/opt/lib/security.so"
  35. },
  36. {
  37. "library": "/opt/lib/charging.so"
  38. }
  39. ]
  40. }
  41. }