On 31.07.19 00:20, Thomas Lange wrote:

> First I can confirm this bug. Some time ago I had two servers which
> caused a huge amount of dhcp requests to log the DHCP server (managed
> by a different departement). They told me one server did 30 requests
> per seconds.

> I've looked at the CentOS 8 sources and found this patch:
> 
>>  # If we receive a DHCP offer in dhclient and it's DECLINEd in 
>> dhclient-script,
>>  # backoff for an amount of time before trying again
>>  %patch6 -p1 -b .backoff
> 
> The patch is in the directory SOURCES called
> dhcp-dhclient-decline-backoff.patch. Since I'm not good in C
> programming it would be good I someone else can have a look if Debian
> should include this patch. I'll attach the patch from Centos.

The patch does not apply cleanly to the version in unstable and from
looking at the code, upstream seems to have seen this problem as well
and changed the client to wait for 10 seconds after a DECLINE before
doing a DISCOVER again.

This was ISC-Bug 45457:
https://bugs.isc.org/Public/Bug/Display.html?id=45457

This bug has been fixed in ISC DHCP 4.3.6.

The commit implementing this is
https://gitlab.isc.org/isc-projects/dhcp/commit/3e88222f1c2f7a365b9fde018bb4bf86520b51d6

So for Debian this problem only exists in oldoldstable (Jessie) and
oldstable (Stretch).

In my opinion this change should be pulled into Stretch and possibly Jessie.

Grüße,
Sven.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to