sketchy-router: start configuring eh22 public network
This commit is contained in:
parent
0f6eb8c599
commit
47d2d6db2e
1 changed files with 31 additions and 1 deletions
|
@ -28,6 +28,7 @@ in
|
|||
links = {
|
||||
"10-ethUpstream" = renameLink "BC:24:11:D2:69:8D" "ethUpstream";
|
||||
"10-ethMgmt" = renameLink "BC:24:11:A3:38:4E" "ethMgmt";
|
||||
"10-ethPubUser" = renameLink "BC:24:11:8F:B3:83" "ethPubUsr";
|
||||
};
|
||||
networks = {
|
||||
"10-ethUpstream" = {
|
||||
|
@ -39,13 +40,20 @@ in
|
|||
matchConfig.Name = "ethMgmt";
|
||||
address = [ "10.20.25.2/24" ];
|
||||
};
|
||||
"10-ethPubUsr" = {
|
||||
matchConfig.Name = "ethPubUsr";
|
||||
address = [ "10.0.0.1/24" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.nat = {
|
||||
enable = true;
|
||||
externalInterface = "ethUpstream";
|
||||
internalIPs = [ "10.20.25.0/24" ];
|
||||
internalIPs = [
|
||||
"10.20.25.0/24"
|
||||
"10.0.0.0/24"
|
||||
];
|
||||
};
|
||||
|
||||
services.kea.dhcp4 = {
|
||||
|
@ -91,6 +99,28 @@ in
|
|||
}
|
||||
];
|
||||
}
|
||||
|
||||
{
|
||||
name = "tempPublicUser";
|
||||
interface = "ethPubUsr";
|
||||
option-data = [
|
||||
{
|
||||
name = "routers";
|
||||
data = "10.0.0.1";
|
||||
}
|
||||
{
|
||||
name = "domain-name-servers";
|
||||
data = "10.0.0.2";
|
||||
}
|
||||
];
|
||||
subnet4 = [
|
||||
{
|
||||
id = 999;
|
||||
subnet = "10.0.0.0/24";
|
||||
pools = [ { pool = "10.0.0.100 - 10.0.0.254"; } ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue