OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: wrobelda on May 16, 2025, 04:09:03 PM

Title: Dnsmasq 'infinite' DHCP lease time?
Post by: wrobelda on May 16, 2025, 04:09:03 PM
The 'infinite' lease time is an acceptable vale for dhcp-range and dhcp-host options in dnsmasq, however, it is not possible to configure that via the UI.

Is this something that is intentional or just some temporary limitation?

https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
Title: Re: Dnsmasq 'infinite' DHCP lease time?
Post by: Monviech (Cedrik) on May 16, 2025, 04:23:29 PM
The issue is that the lease time field in the GUI is an integer field:

https://docs.opnsense.org/development/frontend/models_fieldtypes.html#integerfield

This means only "numbers" are valid.

"infinite" is a text string.

Maybe we could allow "0" and it would set "infinite". For that we need an issue on github:

https://github.com/opnsense/core/issues
Title: Re: Dnsmasq 'infinite' DHCP lease time?
Post by: wrobelda on May 16, 2025, 05:22:02 PM
Reported an issue upstream: https://github.com/opnsense/core/issues/8671