network/config/net/flpk.nix

66 lines
1.9 KiB
Nix
Raw Permalink Normal View History

{
2022-09-18 00:17:59 +02:00
site.net.flpk = {
domainName = "flpk.zentralwerk.org";
ipv6Router = "flpk-gw";
2022-09-18 00:17:59 +02:00
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";
notice-me-senpai = "45.158.40.162"; # tlms monitoring
2022-09-19 22:39:24 +02:00
sshlog = "45.158.40.163";
2022-11-09 22:11:45 +01:00
caveman = "45.158.40.164";
2023-12-24 20:00:51 +01:00
# tlms-37c3-ctf vm on server9
ctf = "45.158.40.165";
2022-11-30 21:08:23 +01:00
mastodon = "45.158.40.166";
2022-12-16 18:18:01 +01:00
c3d2-web = "45.158.40.167";
2024-04-12 18:21:16 +02:00
mail = "45.158.40.168";
dresden-zone-dns = "45.158.40.169";
2023-12-24 18:56:53 +01:00
# server7 = "45.158.40.170"; # unused
2023-10-27 19:52:03 +02:00
rtrlab = "45.158.40.171"; # temporary
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";
notice-me-senpai = "2a0f:5382:acab:1400:2de:5bff:fef9:e23e"; # tlms-monitoring
2022-09-19 22:39:24 +02:00
sshlog = "2a0f:5382:acab:1400::22";
2022-11-09 22:11:45 +01:00
caveman = "2a0f:5382:acab:1400::a4";
2023-12-24 20:00:51 +01:00
# tlms-37c3-ctf vm on server9
ctf = "2a0f:5382:acab:1400::a5";
2022-11-30 21:08:23 +01:00
mastodon = "2a0f:5382:acab:1400::a6";
2022-12-16 18:18:01 +01:00
c3d2-web = "2a0f:5382:acab:1400::a7";
2024-04-24 20:12:14 +02:00
# mail = "2a0f:5382:acab:1400::a8"; # we don't have an PTR for IPv6 and it gets way more often marked as spam
dresden-zone-dns = "2a0f:5382:acab:1400::a9";
2023-12-24 18:56:53 +01:00
# server7 = "2a0f:5382:acab:1400::aa";
2023-10-19 15:19:13 +02:00
rtrlab = "2a0f:5382:acab:1400::ab";
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
};
};
};
ospf = {
allowedUpstreams = [ "upstream4" "upstream3" "freifunk" ];
upstreamInstance = 2;
2022-09-18 00:17:59 +02:00
};
role = "container";
};
}