1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
// This is an example configuration file for the DHCPv6 server in Kea
// illustrating the configuration of hook libraries. It uses a basic scenario
// of one IPv6 subnet configured with the default values for all parameters.
{"Dhcp6":
{
// Kea is told to listen on the eth0 interface only.
"interfaces-config": {
"interfaces": [ "eth0" ]
},
// Set up the storage for leases.
"lease-database": {
"type": "memfile"
},
// Set values to mandatory timers
"renew-timer": 900,
"rebind-timer": 1200,
"preferred-lifetime": 1800,
"valid-lifetime": 2700,
// Define a single subnet.
"subnet6": [
{
"id": 1,
"pools": [
{
"pool": "2001:db8:1::/80",
"user-context": { "charging": true }
} ],
"subnet": "2001:db8:1::/64",
"interface": "eth0"
}
],
// Set up the hook libraries. For this example, we assume that two libraries
// are loaded, called "security" and "charging". Note that order is important:
// "security" is specified first so if both libraries supply a hook function
// for a given hook, the function in "security" will be called before that in
// "charging".
"hooks-libraries": [
{
"library": "/opt/lib/security.so"
},
{
"library": "/opt/lib/charging.so",
"parameters": {
"path": "/var/lib/kea",
"base-name": "kea-forensic6"
}
}
]
}
}
|