<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">

<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.8;background-color:rgb(255,255,255);margin-top:12pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">Hi Johannes,</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400"> One of Kea's built-in classes is the
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"DROP"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400"> class. Packets associated with this class are, as the name suggests,
 dropped.</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">You can test for dhcpv4 DHCPRELEASE packets with </span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"test"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">:
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"pkt4.msgtype == 7"</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">Which gives the following:</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">   </span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"client-classes"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">:
 [</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">       {</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">           </span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"name"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">:
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"DROP"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">,</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">           </span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"test"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">:
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"pkt4.msgtype == 7"</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">       }</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">   ]</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">   or for dhcpv6</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">  </span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"client-classes"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">:
 [</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">       {</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">           </span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"name"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">:
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"DROP"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">,</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">           </span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"test"</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(34,34,34);font-weight:400">:
</span><span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">"pkt6.msgtype == 8”</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">       }</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
<span style="font-size:9pt;font-family:"Courier New";color:rgb(163,21,21);font-weight:400">   ]</span></p>
<p dir="ltr" style="line-height:1.8;background-color:rgb(255,255,255);margin-top:0pt;margin-bottom:0pt;padding:0pt 0pt 12pt">
 /Peter</p>
</b></div></div></div></blockquote><div><b style="font-weight:normal"><br></b></div><div><b style="font-weight:normal">Hi Peter,</b></div><div><br></div><div>Oh, this was a very valuable tip - thank you indeed!</div><div><br></div><div>I had to try it out before replying and it's just as easy as you imply. I tested with a few hosts and KEA confirmed in the logs with "<span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">EVAL_RESULT Expression DROP evaluated to 1"</span> whenever a DHCPRELEASE was dropped. When the host requested an IP address after reboot, it got the same one back from KEA as it had before shutting down.<br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">For my networks with few clients and lease expiration/reclamation configured, I see no risk with dropping the release packages, so  I'll simply let this remain in my configuration.<br></span></div><div><br></div><div>I did read about client classes briefly but never grasped that it could be used in this fashion. This sure is a powerful feature, so I'm sure I'll find more uses for it in other cases.</div><div><br></div><div>Best wishes,<br></div><div>Johannes<br></div></div></div>