nixos/home/routing-common: Split DHCP pools

This commit is contained in:
Jack O'Sullivan 2023-12-17 13:39:55 +00:00
parent 9fa8299b71
commit 318972a086
2 changed files with 6 additions and 15 deletions

View File

@ -229,12 +229,6 @@ in
DHCP = "ipv4";
dns = [ "127.0.0.1" "::1" ];
dhcpV4Config.UseDNS = false;
routes = map (r: { routeConfig = r; }) [
# {
# Destination = prefixes.ctrs.v4;
# Gateway = allAssignments.shill.routing.ipv4.address;
# }
];
qdiscConfig = {
Parent = "ingress";
@ -308,13 +302,6 @@ in
nat = {
enable = true;
externalInterface = "wan";
# externalIP = assignments.internal.ipv4.address;
forwardPorts = [
# {
# port = "http";
# dst = allAssignments.middleman.internal.ipv4.address;
# }
];
};
extraRules = ''
table inet filter {

View File

@ -76,7 +76,9 @@ in
];
pools = [
{
pool = "192.168.68.120 - 192.168.71.240";
pool = if index == 0
then "192.168.68.120 - 192.168.69.255"
else "192.168.70.0 - 192.168.71.240";
}
];
reservations = [
@ -103,7 +105,9 @@ in
];
pools = [
{
pool = "192.168.72.120 - 192.168.79.240";
pool = if index == 0
then "192.168.72.120 - 192.168.75.255"
else "192.168.76.0 - 192.168.79.240";
}
];
reservations = [