From 0816f9323dd5e445c37b35e5392188b3ed65dd82 Mon Sep 17 00:00:00 2001 From: min Date: Sun, 15 Dec 2024 20:15:59 -0500 Subject: [PATCH] Fix NAT connectivity on Nebula --- nixos/hosts/eidola/nebula.nix | 3 +++ nixos/modules/nebula/default.nix | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/eidola/nebula.nix b/nixos/hosts/eidola/nebula.nix index 70118b5..da15334 100644 --- a/nixos/hosts/eidola/nebula.nix +++ b/nixos/hosts/eidola/nebula.nix @@ -7,6 +7,9 @@ in { group = userGroup; }; + # TODO: why? + networking.firewall.allowedUDPPorts = [4242]; + gen.nebula = { enable = true; enableLighthouse = false; diff --git a/nixos/modules/nebula/default.nix b/nixos/modules/nebula/default.nix index b537aa4..840fb54 100644 --- a/nixos/modules/nebula/default.nix +++ b/nixos/modules/nebula/default.nix @@ -56,7 +56,10 @@ with lib; let relays = lhsInternal; staticHostMap = lhs; - settings.punchy.punch = true; + settings.punchy = { + punch = true; + respond = true; + }; }; cfg = config.gen.nebula;