network/config/net/flpk.nix

47 lines
1.0 KiB
Nix

{
site.net.flpk = {
domainName = "flpk.zentralwerk.org";
subnet4 = "45.158.40.160/27";
# we get a /56
subnets6.flpk = "2a0f:5382:acab:1400::/64";
hosts4 = {
flpk-gw = "45.158.40.160";
leon = "45.158.40.162";
sshlog = "45.158.40.163";
};
hosts6.flpk = {
flpk-gw = "2a0f:5382:acab:1400::c3d2";
leon = "2a0f:5382:acab:1400::1e0";
sshlog = "2a0f:5382:acab:1400::22";
};
};
site.hosts.flpk-gw = {
interfaces = {
core = {
hwaddr = "0A:14:48:b7:e4:91";
type = "veth";
};
flpk = {
hwaddr = "0A:14:48:01:16:01";
type = "veth";
};
up-flpk = {
type = "wireguard";
upstream = {
provider = "flpk";
noNat = {
subnets4 = [ "45.158.40.160/27" ];
subnets6 = [ "2a0f:5382:acab:1400::/56" ];
};
};
};
};
ospf = {
allowedUpstreams = [ "upstream4" "upstream3" "freifunk" ];
upstreamInstance = 2;
};
role = "container";
};
}