Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4146f2c878 | ||
|
|
9ea058bfb8 |
@@ -12,7 +12,19 @@ in
|
|||||||
services.kea.dhcp4 = {
|
services.kea.dhcp4 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
interfaces-config.interfaces = lib.mapAttrsToList (name: _: "vlan-${name}") dhcpVlans;
|
interfaces-config = {
|
||||||
|
interfaces = lib.mapAttrsToList (name: _: "vlan-${name}") dhcpVlans;
|
||||||
|
# The unit orders after network-online.target, which under networkd
|
||||||
|
# only waits for the WAN carrier (the vlan-* links are
|
||||||
|
# RequiredForOnline=no), so Kea can start before vlan-* have their
|
||||||
|
# addresses. By default it then logs the failed bind and runs with no
|
||||||
|
# socket at all: clients' DISCOVERs reach vlan-lan and nobody answers.
|
||||||
|
# Insist on every socket and keep retrying while networkd catches up;
|
||||||
|
# if it still cannot bind, exit and let systemd restart the unit.
|
||||||
|
service-sockets-require-all = true;
|
||||||
|
service-sockets-max-retries = 60;
|
||||||
|
service-sockets-retry-wait-time = 1000;
|
||||||
|
};
|
||||||
lease-database = {
|
lease-database = {
|
||||||
type = "memfile";
|
type = "memfile";
|
||||||
persist = true;
|
persist = true;
|
||||||
@@ -44,6 +56,10 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# The nixpkgs unit already has Restart=on-failure; space the restarts out so
|
||||||
|
# a persistent bind failure does not trip the start-rate limit.
|
||||||
|
systemd.services.kea-dhcp4-server.serviceConfig.RestartSec = 5;
|
||||||
|
|
||||||
services.blocky = {
|
services.blocky = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
Reference in New Issue
Block a user