Skip to content

Investigate DHCP server DUID generation #63

@drbild

Description

@drbild

Currently the server DUID is hard-coded, so all instances of enftun will present the same DUID. This reuse definitely violates the intent and spirit of the DUID concept, although it might not cause any actual issues.

There are a couple of options to consider to be more "compliant":

  1. Generate the DUID randomly each time enftun starts up. I like that this approach is stateless, but not that the DUID will change on each boot (which is not necessary).

  2. Generate the DUID randomly on the first time enftun starts up and store it for future reuse. This approach requires storing state.

    Since we already store the TLS credentials anyway, storing another file with the DUID seems fine.

    If for some reason the file can't be read (or written), then fallback to regenerating a new DUID, like case 1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions