[Kea-users] Non working relay when using raw socket / config-control config-databases
ko at sv01.de
Mon Jul 20 17:36:12 UTC 2020
I found this thread:
I've run this query and it returns many rows but Kea still logs
DHCP4_SUBNET_SELECTION_FAILED / DHCP4_PACKET_NAK_0001.
There is also this video:
My config looks very similar:
(hooks only contains libdhcp_mysql_cb).
I really need help here :-(
According to the video, I should not need to define the subnets...
Am So., 19. Juli 2020 um 22:35 Uhr schrieb Kevin Olbrich <ko at sv01.de>:
> Currently I'm struggling with two features of Kea.
> First issue is, that relayed requests are not answered when Kea runs
> with a raw-socket (because the server also assigns IPs in it's own
> If I change raw to udp, relayed requests work flawlessly. I always had
> this issue with Kea but the docs state, raw should also work with
> relayed requests:
> "When using raw sockets, both the traffic from the directly connected
> clients and the relayed traffic are handled."
> At least for me, that's not the case.
> My second issue is about the config-control config-databases:
> I've defined my subnets via the mysql schema but to make it work, I
> have to add this code for every subnet:
> "subnet4": [
> "id": 1,
> "subnet": "192.168.0.0/24",
> "pools": 
> } ...
> Host reservations from the DB are also loaded / applied when this
> snippet is available.
> These hooks are loaded:
> "hooks-libraries": [
> Is this the only way to make Kea serve these subnets? Do I need
> premium hooks (cb_cmds) if I want to avoid the subnet declaration in
> local config?
> The subnets are attached to a server-tag but Kea always complains with
> "DHCP4_PACKET_NAK_0001 - failed to select a subnet for incoming
> packet" if I remove the subnet4 block.
> According to the docs, this module is needed to have Change-APIs
> available (rest, etc.) but I don't need them - the database is handled
> by me directly.
> Kind regards
More information about the Kea-users