[Dnsmasq-discuss] DHCP Query Rate Limiting

Justin McAteer jmcateer at clj2.com
Wed Apr 28 15:32:33 BST 2010


Simon, et al,

I have a device with a DHCP client that will occasionally go insane. I
have and will continue to work with the vendor, but that is another
discussion altogether. What happens in the particular scenario I am
addressing here is that the DHCP client begins sending DHCP Discover
messages as fast as is possiblefor the device (to the tune of about 40
per second). DNSMasq seems to be behaving correctly, it is responding
with a DHCP Offer to each query. However, I have dchp-logging enabled
(and I'd like to keep it that way), and I have a fair number of
options going out to this type of client. The symptom is that DNSMasq
is flooding the system log, which seems to have buffering disabled
because kjournald CPU usage is going up to about 50% and wait is going
up to about 20%, so the system basically becomes useless.

I wonder if it wouldn't make sense to have some kind of rate limiting
option in DNSMasq to help mitigate this type of problem? It seems to
me that this could be a potential avenue for a denial of service
attack.

As a side note, I believe this is a problem with the client dealing
with the 'infinite' lease times that we are using. I haven't exactly
pinpointed a repeatable scenario, but I am working on it; when I do I
will file another bug report with the device vendor.

Thanks,
Justin McAteer



More information about the Dnsmasq-discuss mailing list