From 2952495b70aa104a19f05920235364525efb66ff Mon Sep 17 00:00:00 2001 From: sinavir Date: Fri, 18 Oct 2024 13:35:15 +0200 Subject: [PATCH] WIP --- machines/router02/networking.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/machines/router02/networking.nix b/machines/router02/networking.nix index 6f22833..b1110ca 100644 --- a/machines/router02/networking.nix +++ b/machines/router02/networking.nix @@ -11,6 +11,32 @@ LLDP = true; # Only to the switch we are connected to directly, e.g. the hypervisor or the switch. EmitLLDP = "nearest-bridge"; + Tunnel = [ "gre-mwan" ]; + }; + }; + "50-tun-mwan" = { + name = "gre-mwan"; + networkConfig = { + Description = "Tunnel de livraison GRE IPv4/IPv6 de MilkyWAN"; + Address = [ + "10.1.1.50/30" + "2a0b:cbc0:1::216/126" + ]; + ConfigureWithoutCarrier = true; + }; + }; + + }; + netdevs = { + "50-tun-mwan" = { + netdevConfig = { + Kind = "gre"; + Name = "gre-mwan"; + MTUBytes = "1480"; + }; + tunnelConfig = { + Local = "129.199.146.230"; + Remote = "80.67.167.30"; }; }; };