<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Update:<div class=""><br class=""></div><div class="">Im using the Circuit_ID as the client_id with the Flex Hook, </div><div class="">Sometimes, when a device requests a new IP address (different Mac, same circuit_id) instead of handing out the address thats already in the lease database, it hands a new one.</div><div class="">In the legal logging I can see the HW address and the circuit ID for the IP address, however, it doesn’t enter either of those into the lease database.. </div><div class=""><br class=""></div><div class="">So kea is handing out a lease with no MAC or Client ID associated to it in the database.. </div><div class=""><br class=""></div><div class="">Here’s what the lease looks like: </div><div class=""><br class=""></div><div class=""><div style="background-color: rgb(255, 255, 254); line-height: 18px;" class=""><div style="color: rgb(0, 0, 0); white-space: pre;" class="">[</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">    {</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">        <span style="color: #a31515;" class="">"arguments"</span>: {</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            <span style="color: #a31515;" class="">"cltt"</span>: <span style="color: #098658;" class="">1639150521</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            <span style="color: #a31515;" class="">"fqdn-fwd"</span>: <span style="color: #0451a5;font-weight: bold;" class="">false</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            <span style="color: #a31515;" class="">"fqdn-rev"</span>: <span style="color: #0451a5;font-weight: bold;" class="">false</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            <span style="color: #a31515;" class="">"hostname"</span>: <span style="color: #0451a5;" class="">""</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            <span style="color: #a31515;" class="">"hw-address"</span>: <span style="color: #0451a5;" class="">""</span>,</div><div class=""><span style="color: rgb(163, 21, 21); white-space: pre;" class=""><span class="Apple-tab-span" style="white-space:pre">  </span>    "ip-address"</span><font color="#000000" class=""><span style="white-space: pre;" class="">: </span></font><font color="#0451a5" class=""><span style="caret-color: rgb(4, 81, 165); white-space: pre;" class="">“</span></font><span style="color: rgb(4, 81, 165); white-space: pre;" class="">192.168.1.22"</span><font color="#000000" class=""><span style="white-space: pre;" class="">,</span></font></div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            <span style="color: #a31515;" class="">"state"</span>: <span style="color: #098658;" class="">1</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            <span style="color: #a31515;" class="">"subnet-id"</span>: <span style="color: #098658;" class="">2</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            <span style="color: #a31515;" class="">"valid-lft"</span>: <span style="color: #098658;" class="">86400</span></div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">        },</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">        <span style="color: #a31515;" class="">"result"</span>: <span style="color: #098658;" class="">0</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">        <span style="color: #a31515;" class="">"text"</span>: <span style="color: #0451a5;" class="">"IPv4 lease found."</span></div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">    }</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">]</div></div></div><div class=""><div><br class=""></div><div>But this is what I have in the legal logging table:</div><div><br class=""></div><div><b class="">"Address: 192.168.1.22 has been assigned for 1 days 0 hrs 0 mins 0 secs to a device with hardware address: hwtype=1 dc:4a:3e:93:16:a1, client-id: 00:37:38:38:61:32:30:66:63:33:62:62:38:2f:32:2f:62:34:66:62:65:34:65:62:62:33:30:31:2f:31:3a:31:32:31:32”</b></div><div><br class=""></div><div>And when I look up the lease for that client-id:</div><div><br class=""></div><div><div style="background-color: rgb(255, 255, 254); line-height: 18px;" class=""><div style="color: rgb(0, 0, 0); white-space: pre;" class="">[</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">    {</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">        <span style="color: #a31515;" class="">"arguments"</span>: {</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            <span style="color: #a31515;" class="">"leases"</span>: [</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                {</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                    <span style="color: #a31515;" class="">"client-id"</span>: <span style="color: #0451a5;" class="">"00:37:38:38:61:32:30:66:63:33:62:62:38:2f:32:2f:62:34:66:62:65:34:65:62:62:33:30:31:2f:31:3a:31:32:31:32"</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                    <span style="color: #a31515;" class="">"cltt"</span>: <span style="color: #098658;" class="">1639150531</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                    <span style="color: #a31515;" class="">"fqdn-fwd"</span>: <span style="color: #0451a5;font-weight: bold;" class="">false</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                    <span style="color: #a31515;" class="">"fqdn-rev"</span>: <span style="color: #0451a5;font-weight: bold;" class="">false</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                    <span style="color: #a31515;" class="">"hostname"</span>: <span style="color: #0451a5;" class="">"desktop-lrv6t8s."</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                    <span style="color: #a31515;" class="">"hw-address"</span>: <span style="color: #0451a5;" class="">"dc:4a:3e:93:16:a1"</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class=""><span style="color: rgb(163, 21, 21);" class=""><span class="Apple-tab-span" style="white-space:pre">            </span>    "ip-address"</span><font color="#000000" class="">: </font><font color="#0451a5" class="">“</font><span style="color: rgb(4, 81, 165);" class="">192.168.1.52"</span><font color="#000000" class="">,</font></div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                    <span style="color: #a31515;" class="">"state"</span>: <span style="color: #098658;" class="">0</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                    <span style="color: #a31515;" class="">"subnet-id"</span>: <span style="color: #098658;" class="">2</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                    <span style="color: #a31515;" class="">"valid-lft"</span>: <span style="color: #098658;" class="">86400</span></div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">                }</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">            ]</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">        },</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">        <span style="color: #a31515;" class="">"result"</span>: <span style="color: #098658;" class="">0</span>,</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">        <span style="color: #a31515;" class="">"text"</span>: <span style="color: #0451a5;" class="">"1 IPv4 lease(s) found."</span></div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">    }</div><div style="color: rgb(0, 0, 0); white-space: pre;" class="">]</div></div></div><div><br class=""></div><div><br class=""></div><div>Its almost like kea hands out the IP address before it looks up if the client-id already has a current lease..</div><div><br class=""></div><div>Anyone have any ideas as to why this is happening or what I can do to fix it?</div><div><br class=""></div><div>Thanks! </div><div><br class=""></div><div>- Allan</div><div><br class=""></div><div><blockquote type="cite" class=""><div class="">On Dec 10, 2021, at 8:58 AM, Allan Tinker <<a href="mailto:allan@m33access.com" class="">allan@m33access.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">This morning I woke up to a whole /22 subnet with all the leases claimed, when I run get leases in the API, <br class="">I have many leases with no hardware addresses or client ids.. (592 of them ) Nothing to tell the server who gets what.. <br class=""><br class="">Is there a way to A) not let clients with no MAC or Client ID to obtain a lease, and <br class="">B) bulk remove these leases in IPv4? <br class=""><br class="">Currently Im removing them one by one.<br class="">I still dont know the cause of this, but I want to prevent it by not allowing leases without client data at all. <br class=""><br class="">I am using the flex_id hook to swap circuit ID with client ID as well. <br class=""><br class="">Thank you<br class=""><br class="">- Allan<br class="">_______________________________________________<br class="">ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" class="">https://www.isc.org/contact/</a> for more information.<br class=""><br class="">To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" class="">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br class=""><br class="">Kea-users mailing list<br class=""><a href="mailto:Kea-users@lists.isc.org" class="">Kea-users@lists.isc.org</a><br class="">https://lists.isc.org/mailman/listinfo/kea-users<br class=""></div></div></blockquote></div><br class=""></div></body></html>