Re: DHCP options and dhcpleased?

2022-10-11 Thread Stuart Henderson
On 2022-10-11, Mogens Jensen  wrote:
> Is it possible to use dhcp-options(5) with dhcpleased?

No. It might be possible to add support for some individual options if
there's a strong use case (see code around DHO_DHCP_CLIENT_IDENTIFIER /
IMSG_RECONF_C_ID) but supporting all of dhcp-options(5) seems unlikely.

> I need to use
> the DHCP option "dhcp-requested-address" with client requests. The
> option works with dhclient, but I understand that this daemon will be
> removed from base system in the future, so I prefer to use dhcpleased
> but it seems I can't use other options than the ones documented in
> dhcpleased.conf(5).

If you need more than dhcpleased can offer then your best bet is
probably to use dhcpcd (in packages) - it has decent privilege-
separation and uses OS sandboxing, i.e. pledge() on OpenBSD.

There is currently an ISC dhclient as well, but no priv-sep,
and it "is no longer maintained and should not be used in production
any longer" (https://www.isc.org/dhcp/)


-- 
Please keep replies on the mailing list.



DHCP options and dhcpleased?

2022-10-10 Thread Mogens Jensen
Is it possible to use dhcp-options(5) with dhcpleased? I need to use
the DHCP option "dhcp-requested-address" with client requests. The
option works with dhclient, but I understand that this daemon will be
removed from base system in the future, so I prefer to use dhcpleased
but it seems I can't use other options than the ones documented in
dhcpleased.conf(5).

Best regards,
Mogens Jensen