nixos

NixOS server files. Mirror from https://git.nordgedanken.dev/kubernetes/nixos
git clone git://archive.git.mtrnord.blog/MTRNord/nixos.git
Log | Files | Refs | README

commit 5374d660dc8d9165f33a95d7d220b545fd4d0920
parent ce449d36b4f48e51975b3dd15ad5b2445a952370
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 27 Jan 2024 22:00:51 +0100

defeated

Diffstat:
Mnixos/worker-1/configuration.nix | 6++++++
Mnixos/worker-2/configuration.nix | 11+++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -458,6 +458,11 @@ in { interface "floating1"; } + protocol direct direct2 { + ipv4; + interface "enp7s0"; + } + protocol device { scan time 10; interface "floating1"; @@ -467,6 +472,7 @@ in { ipv4 { # Connect protocol to IPv4 table by channel export filter { if proto = "direct1" then reject; + if proto = "direct2" then reject; accept; }; import all; diff --git a/nixos/worker-2/configuration.nix b/nixos/worker-2/configuration.nix @@ -664,13 +664,20 @@ in { ipv4; } + protocol direct direct2 { + ipv4; + interface "enp7s0"; + } + protocol kernel { ipv4 { # Connect protocol to IPv4 table by channel - export all; + export filter { + if proto = "direct2" then reject; + accept; + }; import all; }; } - protocol ospf MyOSPF { ecmp no; ## Boilerplate taken from Bird's example docs https://bird.network.cz/?get_doc&v=20&f=bird-6.html#ss6.8