It's far from perfect, but I hope someone finds this useful?https://gist.github.com/h3krn/17c6610281e585d6b4efb43d1395802dGrtz, Harm
Quote from: h3krn on March 26, 2024, 01:03:59 pm It's far from perfect, but I hope someone finds this useful?https://gist.github.com/h3krn/17c6610281e585d6b4efb43d1395802dGrtz, HarmThank you very much! This is most missing feature of KEA DHCP for me. You should try to upstream this into OPNsense.I adjusted it little bit because it gave me double domain for some hosts: https://gist.github.com/pkejval/49ff234bb81da59fde6ca1b03f4d4240/revisions
Thnks for the feedback pkejval. I already found several more issues with my version.- when kea cleans the memfile, the inode nr does not change. So the tailing stops.- sending a break, stops csv.dictreader from tailing the file.- need to add parsing of the kea config to assign the correct dns domain to a range.
in pfsense 24.03 you can easily switch dhcp backend from ISC to KEA (and vice versa) with 2 click.
Thnks for the feedback pkejval. I already found several more issues with my version.- when kea cleans the memfile, the inode nr does not change. So the tailing stops.- sending a break, stops csv.dictreader from tailing the file.- need to add parsing of the kea config to assign the correct dns domain to a range.I'll try to improve over time, but for now its a WiP. Once I have something that's actually running, we can try to get it upstream.Quote from: pkejval on April 12, 2024, 07:34:37 amQuote from: h3krn on March 26, 2024, 01:03:59 pm It's far from perfect, but I hope someone finds this useful?https://gist.github.com/h3krn/17c6610281e585d6b4efb43d1395802dGrtz, HarmThank you very much! This is most missing feature of KEA DHCP for me. You should try to upstream this into OPNsense.I adjusted it little bit because it gave me double domain for some hosts: https://gist.github.com/pkejval/49ff234bb81da59fde6ca1b03f4d4240/revisions
As for ISC's reasons:https://www.isc.org/kea/
EDITED: I Figured it out!!Previously, I Had a problem with KEA DHCP reservations being ignored. (several posts above)Simple mistake. For subnet I entered 192.168.1.0/24 instead of192.168.1.1/24I honestly thought it needed to be "zero" at the end, and not "one" for subnet name. The docs section for KEA DHCP even uses 192.168.1.0/24 as the prime example. Maybe someone may be able to explain why mine has to be 192.168.1.1/24 in order to get reservations to work. <please> Live and learn. Back to using KEA DHCP. Thanks all for the help!!