opnsense / core

OPNsense GUI, API and systems backend
https://opnsense.org/
BSD 2-Clause "Simplified" License
3.21k stars 718 forks source link

Kea: Support DHCP lease times per subnet #7592

Open bagobones opened 2 months ago

bagobones commented 2 months ago

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

Kea currently only has a global lease time set however it is common to want different lease times by subnet / vlan.

Describe the solution you like

Kea should already support per subnet lease times that override the global lease time, add an option for lease time to the subnets.

Describe alternatives you considered

Set a middle of the road lease time as a workaround. Don't deploy Kea in serious business environments, stick with the old DHCP client.

Additional context

In larger networks having different lease times is important.. WiFi guest networks is the most common case where you will set a drastically shorter lease time as the pool will run out over the course of a day otherwise.

CA-DigitalAnvil commented 1 month ago

I would like to add my upvote for the original poster's request. Per-pool lease times in a scenario such as described would be incredibly valuable, particularly since that feature was available (and very much used) in the old ISC dhcpd server. Additionally, setting default lease times to something ridiculously small (as needed by the afore mentioned WiFi) and then using 'option-data' to crank the lease time around to something useful for those leases that are not of that flavour does not appear to be supported. An example of an elegant use of classing would be really helpful, if such a critter indeed exists.