Page MenuHomeVyOS Platform

Add options for DHCPD OMAPI
Open, NormalPublicFEATURE REQUEST

Description

Originally, "reset dhcp" commands worked by mangling the leases file. This is fragile and inconvenient.

DHCPD provides OMAPI, an API for managing its state, and omcmd/omshell client commands. The only problem is that it cannot limit access to it by source interface.
Apparently the only solution is to automatically insert iptables rules based on options.

I suggest this default configuration:

dhcp-server {
  omapi {
    port 7911
    allowed-interface lo
  }
}

Details

Difficulty level
Hard (possibly days)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change

Related Objects

StatusSubtypeAssignedTask
ResolvedFEATURE REQUESTc-po
ResolvedFEATURE REQUESTc-po
OpenFEATURE REQUESTdmbaturin

Event Timeline

dmbaturin triaged this task as Normal priority.Sep 9 2018, 6:41 PM
dmbaturin created this task.
zsdc changed Difficulty level from Unknown (require assessment) to Hard (possibly days).Mar 11 2021, 6:51 PM
zsdc set Is it a breaking change? to Behavior change.

Even in the latest ISC DHCPD, OMAPI still can't remove leases, so the issue is moot so far—adding options for OMAPI configuration wouldn't let us do what we wanted to do.