From 560f5194be17c7dbf21ac67c71d42f1a9c4d96ef Mon Sep 17 00:00:00 2001
From: Gregor Kleen <gkleen@yggdrasil.li>
Date: Thu, 16 Dec 2021 10:39:04 +0100
Subject: yggdrasil-wg: ...

---
 modules/yggdrasil-wg/default.nix | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'modules/yggdrasil-wg')

diff --git a/modules/yggdrasil-wg/default.nix b/modules/yggdrasil-wg/default.nix
index 6e77e4a1..a22a27ec 100644
--- a/modules/yggdrasil-wg/default.nix
+++ b/modules/yggdrasil-wg/default.nix
@@ -201,6 +201,12 @@ in {
           routes = [
             { routeConfig = {
                 Destination = "${batSubnet}::/${toString batSubnetLength}";
+                Table = "yggdrasil";
+              };
+            }
+            { routeConfig = {
+                Destination = batHostIPs.${hostName};
+                Table = "yggdrasil";
               };
             }
           ] ++ (concatMap (router: map (rAddr: { routeConfig = { Destination = "::/0"; Gateway = stripSubnet rAddr; Table = "yggdrasil"; }; }) batHostIPs.${router}) routers);
-- 
cgit v1.2.3