Project

General

Profile

Actions

Bug #12923

closed

DHCP "Ignore denied clients" option with MAC Deny list set causes DHCP server to not start

Added by Steve Y over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Viktor Gurov
Category:
DHCP (IPv4)
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.05
Release Notes:
Default
Affected Version:
2.6.0
Affected Architecture:

Description

Scenario:
  • in DHCP server config, MAC Deny option is set with a MAC address
  • user wants to not log that every few seconds so checks option "Ignore denied clients"
  • DHCP Server fails to start with an error:

Error: /etc/dhcpd.conf line 22: expecting a parameter or declaration

line 22:
ignore members of "c81f664xxxxx";

Unchecking that option changes it to:
deny members of "c81f664xxxxx";
...which lets the DHCP service start.

Removing the entry from MAC Deny and checking the box lets the service start.

Possibly a solution would be to set the two lines to be:

deny members of "c81f664xxxxx";
ignore unknown-clients;

instead of:
ignore members of "c81f664xxxxx";
ignore unknown-clients;

..but didn't test that since the file /var/dhcpd/etc/dhcpd.conf is overwritten when the service starts.

Forum thread: https://forum.netgate.com/topic/165267/dhcp-restriction-problem

I tried this on 22.01 on a 3100. The thread is from July 2021 so is presumably an earlier version.

Actions

Also available in: Atom PDF