|
|
7 anni fa | |
|---|---|---|
| client | 7 anni fa | |
| config | 7 anni fa | |
| handler | 7 anni fa | |
| plugins | 7 anni fa | |
| .gitignore | 7 anni fa | |
| .stickler.yml | 7 anni fa | |
| LICENSE | 7 anni fa | |
| README.md | 7 anni fa | |
| config.yml.example | 7 anni fa | |
| leases.txt.example | 7 anni fa | |
| main.go | 7 anni fa |
Fast, multithreaded, modular and extensible DHCP server written in Go
This is still a work-in-progress
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.