Project

General

Profile

Bug #5898

services_dhcp.php: "Ignore denied clients" is incompatible with failover

Added by Jim Pingle over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
DHCP Server
Target version:
Start date:
02/16/2016
Due date:
% Done:

100%

Estimated time:
Affected Version:
2.3
Affected Architecture:
All

Description

The "Ignore denied clients" option on services_dhcp.php is not compatible with a high availability configuration. If there is a value in the "Failover peer IP" box when "Ignore denied clients" is checked, input validation should reject the configuration.

The backend code must also account for it as well.

The DHCP daemon fails to start when the options are combined. When they are enabled separately, it works OK.

The option is new to 2.3, so there is no regression.

Associated revisions

Revision 8209517d (diff)
Added by Jim Pingle over 3 years ago

Prevent "Ignore denied clients" and "Failover Peer IP" from being combined in the DHCP server settings for IPv4. The daemon fails to start when configured in this way, it apparently only allows "allow" or "deny" in failover mode. Fixes #5898

History

#1 Updated by Jim Pingle over 3 years ago

  • Status changed from Assigned to Feedback
  • % Done changed from 0 to 100

#2 Updated by Jim Pingle over 3 years ago

  • Status changed from Feedback to Resolved

Tested the fix on two different 2.3 HA setups, works fine. Attempting to combine the two options fails with an input validation error as it should. If the option was enabled previously, the backend code ignores it when a failover address is set so that the DHCP daemon can still start.

Also available in: Atom PDF