<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<b style="font-weight:normal">
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:12pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">Hi Johannes,</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400"> One of Kea's built-in classes is the
</span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"DROP"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400"> class. Packets associated with this class are, as the name suggests,
 dropped.</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">You can test for dhcpv4 DHCPRELEASE packets with </span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"test"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">:
</span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"pkt4.msgtype == 7"</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">Which gives the following:</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">   </span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"client-classes"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">:
 [</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">       {</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">           </span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"name"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">:
</span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"DROP"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">,</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">           </span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"test"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">:
</span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"pkt4.msgtype == 7"</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">       }</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">   ]</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">   or for dhcpv6</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">  </span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"client-classes"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">:
 [</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">       {</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">           </span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"name"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">:
</span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"DROP"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">,</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">           </span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"test"</span><span style="font-size:9pt;font-family:'Courier New';color:#222222;font-weight:400">:
</span><span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">"pkt6.msgtype == 8”</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">       }</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
<span style="font-size:9pt;font-family:'Courier New';color:#a31515;font-weight:400">   ]</span></p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt 0pt">
 /Peter</p>
<p dir="ltr" style="line-height:1.7999999999999998;background-color:#ffffff;margin-top:0pt;margin-bottom:12pt">
 </p>
</b><br>
</div>
<div id="Signature">
<div></div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Johannes Midgren <johannes@midgren.net><br>
<b>Sent:</b> 10 November 2021 23:38<br>
<b>To:</b> Peter Davies <peter.watson.davies@outlook.com><br>
<b>Cc:</b> egor.grijuc@orange.com <egor.grijuc@orange.com>; kea-users@lists.isc.org <kea-users@lists.isc.org><br>
<b>Subject:</b> Re: [Kea-users] Lease affinity of released leases</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr"></div>
<div class="x_gmail_quote"><br>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi Johannes,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
   If you don't want to define host reservations you can give the client very long lease times and get Kea to drop   DHCPRELEASE packet</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
/Peter</div>
</div>
</div>
</blockquote>
<div> </div>
<div>Hi Peter, Thanks for your reply!</div>
<div><br>
</div>
<div>Do you know of an easy way to drop the DHCP Release package with KEA using only configuration, or would it require writing a hooks library as was suggested in another reply? I can't find anything in the docs about such a feature.<br>
</div>
</div>
</div>
</div>
</body>
</html>