microwave: routing changes
This commit is contained in:
parent
c9223b22c7
commit
eb7d65d9b1
1 changed files with 18 additions and 7 deletions
|
@ -15,6 +15,7 @@
|
||||||
|
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
dnssec = "allow-downgrade";
|
||||||
};
|
};
|
||||||
|
|
||||||
# workaround for networkd waiting for shit
|
# workaround for networkd waiting for shit
|
||||||
|
@ -143,7 +144,7 @@
|
||||||
wireguardPeerConfig = {
|
wireguardPeerConfig = {
|
||||||
PublicKey = "PG2VD0EB+Oi+U5/uVMUdO5MFzn59fAck6hz8GUyLMRo=";
|
PublicKey = "PG2VD0EB+Oi+U5/uVMUdO5MFzn59fAck6hz8GUyLMRo=";
|
||||||
Endpoint = "81.201.149.152:1337";
|
Endpoint = "81.201.149.152:1337";
|
||||||
AllowedIPs = [ "172.20.72.0/21" "172.22.90.0/24" ];
|
AllowedIPs = [ "172.20.72.0/21" "172.22.90.0/24" "172.22.99.0/24" ];
|
||||||
PersistentKeepalive = 25;
|
PersistentKeepalive = 25;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -156,25 +157,35 @@
|
||||||
IPv6AcceptRA = true;
|
IPv6AcceptRA = true;
|
||||||
DNS = "172.20.73.8";
|
DNS = "172.20.73.8";
|
||||||
Domains = [
|
Domains = [
|
||||||
"~c3d2.de"
|
"~hq.c3d2.de"
|
||||||
"~zentralwerk.org"
|
"~serv.zentralwerk.org"
|
||||||
|
"~hq.zentralwerk.org"
|
||||||
|
"~cluster.zentralwerk.org"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
routes = [
|
routes = [
|
||||||
{
|
{
|
||||||
routeConfig = {
|
routeConfig = {
|
||||||
Gateway = "172.20.72.1";
|
Gateway = "172.20.72.4";
|
||||||
Destination = "172.20.72.0/21";
|
Destination = "172.20.72.0/21";
|
||||||
Metric = 666;
|
Metric = 9999;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
routeConfig = {
|
routeConfig = {
|
||||||
Gateway = "172.20.72.1";
|
Gateway = "172.20.72.4";
|
||||||
Destination = "172.20.90.0/24";
|
Destination = "172.20.90.0/24";
|
||||||
Metric = 666;
|
Metric = 9999;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
routeConfig = {
|
||||||
|
Gateway = "172.20.72.4";
|
||||||
|
Destination = "172.22.99.0/24";
|
||||||
|
Metric = 9999;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue