commit 45aa5add146702bae2d682ac3c7548c97a9f27af
parent 1673c11d5773d566a9821882b2da7628f9f42282
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 27 Jan 2024 20:35:11 +0100
Switch to gobgpd
Diffstat:
2 files changed, 81 insertions(+), 5 deletions(-)
diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix
@@ -425,7 +425,7 @@ in {
};
bird2 = {
- enable = true;
+ enable = false;
config = ''
router id 10.0.1.1;
debug protocols all;
@@ -493,14 +493,52 @@ in {
'';
};
+ gobgpd = {
+ enable = true;
+ settings = {
+ global = {
+ config = {
+ as = 64513;
+ router-id = "10.0.2.1";
+ };
+ };
+ neighbors = [
+ {
+ config = {
+ neighbor-address = "10.0.1.2";
+ peer-as = 64512;
+ };
+ ebgp-multihop = {
+ config = {
+ enabled = true;
+ multihop-ttl = 3;
+ };
+ };
+ }
+ {
+ config = {
+ neighbor-address = "10.0.2.2";
+ peer-as = 64514;
+ };
+ ebgp-multihop = {
+ config = {
+ enabled = true;
+ multihop-ttl = 3;
+ };
+ };
+ }
+ ];
+ };
+ };
+
bird-lg = {
proxy = {
- enable = true;
+ enable = false;
allowedIPs = ["10.0.2.1" "fe99:13::1"];
listenAddress = "10.0.2.1:8000";
};
frontend = {
- enable = true;
+ enable = false;
titleBrand = "Midnightthoughts infra";
navbar.brand = "Midnightthoughts infra";
listenAddress = "127.0.0.1:5001";
diff --git a/nixos/worker-2/configuration.nix b/nixos/worker-2/configuration.nix
@@ -541,8 +541,46 @@ in {
};
};
- bird2 = {
+ gobgpd = {
enable = true;
+ settings = {
+ global = {
+ config = {
+ as = 64514;
+ router-id = "10.0.2.2";
+ };
+ };
+ neighbors = [
+ {
+ config = {
+ neighbor-address = "10.0.1.2";
+ peer-as = 64512;
+ };
+ ebgp-multihop = {
+ config = {
+ enabled = true;
+ multihop-ttl = 3;
+ };
+ };
+ }
+ {
+ config = {
+ neighbor-address = "10.0.1.2";
+ peer-as = 64513;
+ };
+ ebgp-multihop = {
+ config = {
+ enabled = true;
+ multihop-ttl = 3;
+ };
+ };
+ }
+ ];
+ };
+ };
+
+ bird2 = {
+ enable = false;
config = ''
router id 10.0.2.2;
debug protocols all;
@@ -605,7 +643,7 @@ in {
bird-lg = {
proxy = {
- enable = true;
+ enable = false;
allowedIPs = ["10.0.2.1"];
listenAddress = "10.0.2.2:8000";
};