diff options
Diffstat (limited to 'modules/yggdrasil-wg')
-rw-r--r-- | modules/yggdrasil-wg/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
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 { | |||
201 | routes = [ | 201 | routes = [ |
202 | { routeConfig = { | 202 | { routeConfig = { |
203 | Destination = "${batSubnet}::/${toString batSubnetLength}"; | 203 | Destination = "${batSubnet}::/${toString batSubnetLength}"; |
204 | Table = "yggdrasil"; | ||
205 | }; | ||
206 | } | ||
207 | { routeConfig = { | ||
208 | Destination = batHostIPs.${hostName}; | ||
209 | Table = "yggdrasil"; | ||
204 | }; | 210 | }; |
205 | } | 211 | } |
206 | ] ++ (concatMap (router: map (rAddr: { routeConfig = { Destination = "::/0"; Gateway = stripSubnet rAddr; Table = "yggdrasil"; }; }) batHostIPs.${router}) routers); | 212 | ] ++ (concatMap (router: map (rAddr: { routeConfig = { Destination = "::/0"; Gateway = stripSubnet rAddr; Table = "yggdrasil"; }; }) batHostIPs.${router}) routers); |