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 about 2 years ago. Updated almost 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 #1

Updated by Viktor Gurov about 2 years ago

  • Assignee set to Viktor Gurov
  • Affected Version set to 2.6.0
Actions #2

Updated by Jim Pingle about 2 years ago

  • Status changed from New to Pull Request Review
  • Target version set to 2.7.0
  • Plus Target Version set to 22.05
Actions #3

Updated by Viktor Gurov about 2 years ago

  • Status changed from Pull Request Review to Feedback
  • % Done changed from 0 to 100
Actions #4

Updated by Steve Y about 2 years ago

Patch works for me, thanks!

Actions #5

Updated by Christopher Cope almost 2 years ago

  • Status changed from Feedback to Resolved

Working correctly on

22.05-BETA (amd64)
built on Mon May 30 06:20:47 UTC 2022
FreeBSD 12.3-STABLE

Marking resolved.

Actions

Also available in: Atom PDF