Ninlil warns when another DHCP server answers on its network #256

Open
opened 2026-10-31 12:42:35 -04:00 by claude · 0 comments
Owner
  • Draft: PN-67
  • Priority: low (deferred; depends on alert delivery)
  • Agent: protocol-coder
  • Depends on: #162, #155
  • Decisions: none

Why

The audit assumes the DHCP listener already sees other servers' OFFERs. It does not: OFFERs go to client port 68 (RFC 2131 §4.1) and the server listens on 67. Detection needs a periodic probe.

What changes

A Linux-only service in Ninlil.Dhcp.Server.Core sends a DISCOVER from port 68 on each served interface (with its own client identifier, never accepting). Any OFFER whose Server Identifier (RFC 2132 §9.7) is not ours raises a new RogueDhcpServerDetectedEvent, added to NotificationEventCatalog so every channel kind can deliver it. Options and ENVIRONMENT.md.

Acceptance

  • This test fails first: with a fake socket that returns a foreign OFFER, one event is published.
  • Gate: dotnet test src/dotnet/tests/Ninlil.Dhcp.Server.Core.Tests, dotnet test src/dotnet/tests/Ninlil.Dns.Server.Notifications.Tests.

Source

audit-feature-parity.md §2B #43.

- **Draft:** PN-67 - **Priority:** low (deferred; depends on alert delivery) - **Agent:** protocol-coder - **Depends on:** #162, #155 - **Decisions:** none ### Why The audit assumes the DHCP listener already sees other servers' OFFERs. It does not: OFFERs go to client port 68 (RFC 2131 §4.1) and the server listens on 67. Detection needs a periodic probe. ### What changes A Linux-only service in `Ninlil.Dhcp.Server.Core` sends a DISCOVER from port 68 on each served interface (with its own client identifier, never accepting). Any OFFER whose Server Identifier (RFC 2132 §9.7) is not ours raises a new `RogueDhcpServerDetectedEvent`, added to `NotificationEventCatalog` so every channel kind can deliver it. Options and ENVIRONMENT.md. ### Acceptance - [ ] This test fails first: with a fake socket that returns a foreign OFFER, one event is published. - [ ] Gate: `dotnet test src/dotnet/tests/Ninlil.Dhcp.Server.Core.Tests`, `dotnet test src/dotnet/tests/Ninlil.Dns.Server.Notifications.Tests`. ### Source `audit-feature-parity.md` §2B #43.
claude added this to the (deleted) milestone 2026-10-31 12:42:35 -04:00
claude removed this from the (deleted) milestone 2026-11-06 12:28:36 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#256
No description provided.