1
0

router, pre-router: move DHCP server

This commit is contained in:
2022-07-17 15:34:17 +02:00
parent bbf2c50235
commit 56db344be8
3 changed files with 25 additions and 43 deletions

View File

@@ -27,6 +27,31 @@
};
'';
services.kea.dhcp4 = {
settings = {
interfaces-config = {
interfaces = [ "net-services" ];
};
subnet4 = [
{
id = 10;
subnet = "10.42.10.1/24";
pools = [
{
pool = "10.42.10.100 - 10.42.10.240";
}
];
option-data = [
{
name = "routers";
data = "10.42.10.1";
}
];
}
];
};
};
# Everyone is allowed reaching this, no firewall therefore
clerie.uplink-selector.interfaces.net-services.uplink = "uplink-a";