Bez popisu

insomniac 4b121a5a88 README.md: added example před 7 roky
client 8092679242 Initial import před 7 roky
config 8092679242 Initial import před 7 roky
handler 8092679242 Initial import před 7 roky
plugins 8092679242 Initial import před 7 roky
.gitignore 8092679242 Initial import před 7 roky
.stickler.yml 1d2a09489b Adding .stickler.yml před 7 roky
LICENSE a711f5f6d9 Initial commit před 7 roky
README.md 4b121a5a88 README.md: added example před 7 roky
config.yml.example 8092679242 Initial import před 7 roky
leases.txt.example 8092679242 Initial import před 7 roky
main.go 8092679242 Initial import před 7 roky

README.md

coredhcp

Build Status codecov Go Report Card

Fast, multithreaded, modular and extensible DHCP server written in Go

This is still a work-in-progress

Example configuration

In CoreDHCP almost everything is implemented as a plugin. The order of plugins in the configuration matters: every request is evaluated calling each plugin in order, until one breaks the evaluation and responds to, or drops, the request.

The following configuration runs a DHCPv6-only server, listening on all the interfaces, using a custom DUID-LL as server ID, and reading the leases from a text file.

server6:
    listen: '[::]:547'
    plugins:
        - server_id: LL 00:de:ad:be:ef:00
        - file: "leases.txt"
        # - dns: 8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844

#server4:
#    listen: '127.0.0.1:67'

See also config.yml.example.