Bug #12923
closedDHCP "Ignore denied clients" option with MAC Deny list set causes DHCP server to not start
100%
Description
- 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.
Updated by Viktor Gurov over 2 years ago
- Assignee set to Viktor Gurov
- Affected Version set to 2.6.0
Updated by Jim Pingle over 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
Updated by Viktor Gurov over 2 years ago
- Status changed from Pull Request Review to Feedback
- % Done changed from 0 to 100
Applied in changeset 773902efa92299d35b4b77bd6af1cba24cb65dba.
Updated by Christopher Cope over 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.