priv network foo
This commit is contained in:
parent
16f7a8fc81
commit
e539424a39
2 changed files with 10 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
public_IPv4 = "128.140.109.125";
|
public_IPv4 = "128.140.109.125";
|
||||||
public_IPv6 = "2a01:4f8:c2c:bd32::1";
|
public_IPv6 = "2a01:4f8:c2c:bd32::1";
|
||||||
internal_IPv4 = "10.69.0.5";
|
internal_IPv4 = "10.69.0.5";
|
||||||
internal_IPv6 = "fe80::9400:3ff:fe24:677a";
|
internal_IPv6 = "fe80::8400:ff:fe8e:470d";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
@ -42,11 +42,16 @@
|
||||||
ipv6.addresses = [
|
ipv6.addresses = [
|
||||||
{ address = config.cherrykitten.network.internal_IPv6; prefixLength = 64; }
|
{ address = config.cherrykitten.network.internal_IPv6; prefixLength = 64; }
|
||||||
];
|
];
|
||||||
|
ipv4.routes = [
|
||||||
|
{ address = "10.69.0.1"; prefixLength = 32; }
|
||||||
|
{ address = "10.69.0.0"; prefixLength = 24; via = "10.69.0.1"; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
ATTR{address}=="96:00:03:24:67:7a", NAME="eth0"
|
ATTR{address}=="96:00:03:24:67:7a", NAME="eth0"
|
||||||
|
ATTR{address}=="86:00:00:8e:47:0d", NAME="eth1"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
|
@ -41,6 +41,10 @@
|
||||||
ipv6.addresses = [
|
ipv6.addresses = [
|
||||||
{ address = config.cherrykitten.network.internal_IPv6; prefixLength = 64; }
|
{ address = config.cherrykitten.network.internal_IPv6; prefixLength = 64; }
|
||||||
];
|
];
|
||||||
|
ipv4.routes = [
|
||||||
|
{ address = "10.69.0.1"; prefixLength = 32; }
|
||||||
|
{ address = "10.69.0.0"; prefixLength = 24; via = "10.69.0.1"; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue