Add gre tunnel for hamnet

This commit is contained in:
Pim Kunis 2024-05-15 20:59:21 +02:00
parent dee0441778
commit 592fc2a32a

View file

@ -5,6 +5,32 @@
nixosModule = {
lab.monitoring.server.enable = true;
systemd.network = {
netdevs.hamgre = {
netdevConfig = {
Name = "hamgre";
Kind = "gre";
MTUBytes = "1468";
};
tunnelConfig = {
Remote = "145.220.78.4";
#Local = "192.145.57.90";
};
};
networks = {
"30-main-nic".networkConfig.Tunnel = "hamgre";
"40-hamgre" = {
matchConfig.Name = "hamgre";
networkConfig = {
Address = "44.137.61.34/30";
};
};
};
};
};
};
}