network/config/net/flpk.nix

47 lines
1.0 KiB
Nix
Raw Normal View History

{
2022-09-18 00:17:59 +02:00
site.net.flpk = {
domainName = "flpk.zentralwerk.org";
subnet4 = "45.158.40.160/27";
2022-09-18 01:28:52 +02:00
# we get a /56
subnets6.flpk = "2a0f:5382:acab:1400::/64";
2022-09-18 00:17:59 +02:00
hosts4 = {
flpk-gw = "45.158.40.160";
2022-09-18 21:34:56 +02:00
leon = "45.158.40.162";
2022-09-19 22:39:24 +02:00
sshlog = "45.158.40.163";
2022-09-18 00:17:59 +02:00
};
hosts6.flpk = {
2022-09-18 01:28:52 +02:00
flpk-gw = "2a0f:5382:acab:1400::c3d2";
2022-09-18 20:38:10 +02:00
leon = "2a0f:5382:acab:1400::1e0";
2022-09-19 22:39:24 +02:00
sshlog = "2a0f:5382:acab:1400::22";
2022-09-18 00:17:59 +02:00
};
};
site.hosts.flpk-gw = {
interfaces = {
core = {
hwaddr = "0A:14:48:b7:e4:91";
type = "veth";
};
2022-09-18 01:00:11 +02:00
flpk = {
hwaddr = "0A:14:48:01:16:01";
type = "veth";
};
2022-09-18 00:17:59 +02:00
up-flpk = {
type = "wireguard";
upstream = {
provider = "flpk";
noNat = {
subnets4 = [ "45.158.40.160/27" ];
2022-09-18 21:26:37 +02:00
subnets6 = [ "2a0f:5382:acab:1400::/56" ];
};
2022-09-18 00:17:59 +02:00
};
};
};
2022-09-18 00:17:59 +02:00
ospf = {
allowedUpstreams = [ "upstream4" "upstream3" "freifunk" ];
upstreamInstance = 2;
};
role = "container";
};
}