Ei kuvausta

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

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.