kea dhcp option for debian preseed file

Started by cybermcm, May 09, 2026, 05:14:43 PM

Previous topic - Next topic
hello,
 I recently switched to kea and was able to use my debian preseed file with the following option in 'manual config mode'
        "client-classes": [
            {
            "name": "deb-preseed",
            "test": "substring(option[vendor-class-identifier].text,0,3) == 'd-i'",
            "boot-file-name": "https://xyz.net/preseed.cfg"
            }
        ],
I noticed that it is now possible to set options via gui but it doesn't work for me.
I tried option 124 with hex code 642d69 for (d-i), see screenshot but if I set this option and inspect kea-dhcp4.conf it only shows
"client-classes": [
            {
                "name": "22e436d9-2826-445b-ab48-d7b68058ca8f",
                "test": "option[124].hex == 0x642D69"
            }
        ]

Any ideas?

You also have to attach the option to a subnet scope. Check this documentation:

https://docs.opnsense.org/manual/kea.html#dhcp-options
Hardware:
DEC740

Thank you for your fast answer!
I tried this but it still doesn't work. I tried the example from the docs, this is working (providing a TFTP boot file), but the specific option for the debian installer does not (tried with option 60,43,124)
Maybe the fact that with a manual config only a substring is checked?
substring(option[vendor-class-identifier].text,0,3)
Anyone who already solved this?

Today at 11:28:00 AM #3 Last Edit: Today at 11:33:18 AM by Monviech (Cedrik)
Ah I see you need a slightly different test. Thats not currently supported in the GUI. (And probably won't be supported since that opens pandoras box of complexity, Kea's classification language is deceptively deep.)

All tests are matching the data of an option exactly. Try to find an exact matching test that can match your clients with the available DHCP options.

If there is notjing available that fits your need Im afraid you have to continue using the manual config.
Hardware:
DEC740