From 18ccdbf28893d1fdebd85db97ab33f8c682ded45 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 10 Jan 2021 22:28:24 +0100 Subject: [PATCH] Configure gre between carbon an gatekeeper --- hosts/carbon/configuration.nix | 11 +++++++++++ hosts/gatekeeper/configuration.nix | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/hosts/carbon/configuration.nix b/hosts/carbon/configuration.nix index 246f916..be6e8b4 100644 --- a/hosts/carbon/configuration.nix +++ b/hosts/carbon/configuration.nix @@ -84,6 +84,17 @@ ]; }; + clerie.gre-tunnel = { + enable = true; + ipv4 = { + gre-gatekeeper = { + remote = "10.152.101.1"; + local = (lib.head config.networking.interfaces.lo.ipv4.addresses).address; + address = "169.254.201.2/24"; + }; + }; + }; + services.bird2.enable = true; services.bird2.config = '' router id ${ (lib.head config.networking.interfaces.lo.ipv4.addresses).address }; diff --git a/hosts/gatekeeper/configuration.nix b/hosts/gatekeeper/configuration.nix index 252bd5d..c247d5f 100644 --- a/hosts/gatekeeper/configuration.nix +++ b/hosts/gatekeeper/configuration.nix @@ -136,6 +136,17 @@ ]; }; + clerie.gre-tunnel = { + enable = true; + ipv4 = { + gre-carbon = { + remote = "10.152.104.1"; + local = (lib.head config.networking.interfaces.lo.ipv4.addresses).address; + address = "169.254.201.1/24"; + }; + }; + }; + services.bird2.enable = true; services.bird2.config = '' router id ${ (lib.head config.networking.interfaces.lo.ipv4.addresses).address };