<div dir="ltr">Hi Greg,<div><br></div><div>I am using the latest version of dhcpd 4.4.2 so I guess I can use this concept, I tried checking the ISC documents but somehow I missed this page but again thanks for the suggestion</div><div>>>I'd recommend testing/tinkering on a VM/test server that's non-production to see if it actually does what you want. :)<br></div><div>---> Sure I will test it on my test server first</div><div>--Kraishak</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Sep 23, 2021 at 10:09 AM Gregory Sloop <<a href="mailto:gregs@sloop.net">gregs@sloop.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <div><p>Google is your friend...</p><p> </p><p>Depending on what dhcpd version you're using, it sure looks like OMAPI classes support exists.</p><p> </p><p><a href="https://kb.isc.org/docs/aa-01092" target="_blank">https://kb.isc.org/docs/aa-01092</a></p><p> </p><p>Since I can never get OMAPI to do what I want the first time (or even the forty-third time), I'd recommend testing/tinkering on a VM/test server that's non-production to see if it actually does what you want. :)</p><p> </p><p>-Greg</p><p> <br>
</p><p><br></p><p></p><blockquote class="gmail-m_-4963789304695117070rt"><div dir="ltr">Hi Simon,<div><br></div><div>Thank you for the suggestions, but to add the subclasses statements into the config I need to stop the service and start the service, when I get multiple clients request it may lead to crash of my dhcp service because of multiple stops and starts<br>do we have any way where I can include the statements into some other file and include that into the main config file? or can we use any omapi to load the statements dynamically without restarting the service </div><div><br></div><div>Thanks</div><div> </div></div><br><div class="gmail_quote"><div class="gmail_attr" dir="ltr">On Tue, Sep 21, 2021 at 11:26 AM Kraishak Mahtha <<a href="mailto:kraishak.edu@gmail.com" target="_blank">kraishak.edu@gmail.com</a>> wrote:<br></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">Hi All,<br>I am trying to implement a captive portal with cases like where users can be guest,authenticated and unknown-clients without restarting the dhcp service frequently.<br>Initially the client will be getting the IP from the quarantine range and the user getting a custom portal page where he can be authenticated or accept the terms and be as a guest.<br>I tried to use the concept of known and unknown-clients so that using omapi concept i can add an authenticated client as known client so that it does not need a restart of dhcp service. <br>but I want to add one more case where I can differentiate the clients also as guest users<br>can anyone suggest to me any config element where I can differentiate all these three cases(non-authenticated, authenticated and guest).<br>My sample config<br>==============<br>subnet 172.16.0.0 netmask 255.255.255.0 {<br> pool {<br> range 172.16.0.50 172.16.0.150; <br> allow unknown-clients;<br> option domain-name-servers 172.16.0.40<br> default-lease-time 120;<br> max-lease-time 120;<br> option routers 172.16.0.1;<br> option subnet-mask 255.255.255.0;<br> }<br> pool {<br> range 172.16.0.151 172.16.0.200;<br> deny unknown-clients;<br> option domain-name-servers 172.16.0.45<br> default-lease-time 1209600;<br> max-lease-time 1209600;<br> option routers 172.16.0.2;<br> option subnet-mask 255.255.255.0;<br><br> }<br> pool {<br> range 172.16.0.201 172.16.0.250;<br> <condition to accept guest client><br> option domain-name-servers 172.16.0.45<br> default-lease-time 1209600;<br> max-lease-time 1209600;<br> option routers 172.16.0.2;<br> option subnet-mask 255.255.255.0;<br><br> }<br> }<br><div><div dir="auto">Any help/suggestion would be much appreciated </div><div dir="auto">Thanks</div></div></div>
</blockquote></div>
</blockquote><br>
<div class="gmail-m_-4963789304695117070email-signature">-- <br>
Gregory Sloop, Principal: Sloop Network & Computer Consulting<br>
Voice: 503.251.0452 x121<br>
EMail: <a href="mailto:gregs@sloop.net" target="_blank">gregs@sloop.net</a><br>
<a href="http://www.sloop.net" target="_blank">http://www.sloop.net</a><br>
---<br>
</div></div></blockquote></div>