Need help with LEASEQUERY..

Jeffrey Hutzelman jhutz at cmu.edu
Mon Jun 21 03:07:39 UTC 2010


--On Friday, June 18, 2010 09:03:59 AM -0500 Pat Winn <ptwinn at cimtel.net> 
wrote:

> So, while I more than agree that you can't expose those via leasequery
> packets,
> with a small amount of creativity in the dhcpd.conf, much can still be
> done and/or
> exposed to meet your needs.

Yes, I understand how to get the server to put arbitrary things in the 
logs.  Though rather more care is required if you're going to do anything 
serious, since some of the input used to construct the log messages in your 
example comes from the (untrusted) client, who oughtn't be allowed to put 
arbitrary strings into your logs.

However, I was answering your question about exposing variable values via 
the in-protocol leasequery mechanism.  The answer is that there's no 
automated way to do that, because such variables are an artifact of ISC 
dhcpd's configuration language and so are unknown to the protocol.  Of 
course, you can explicitly copy them into options, or you can expose them 
via log messages as in your example.  But then, log messages don't help the 
concentrator/NAT/relay-agent boxes that leasequery was designed for.

-- Jeff



More information about the dhcp-hackers mailing list