From 24c0d969a9782f062e703c4f7a9790011beec21d Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 26 Apr 2023 14:52:28 +0200 Subject: [PATCH] aria2: fixup --- system/nixos/aria2.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/system/nixos/aria2.nix b/system/nixos/aria2.nix index 6afac2f..12804f1 100644 --- a/system/nixos/aria2.nix +++ b/system/nixos/aria2.nix @@ -64,4 +64,15 @@ in proxyWebsockets = true; }; }; + + networking.firewall.interfaces = + let + ports = [ 6800 ]; + in + { + "ens3".allowedTCPPorts = ports; + "ens3".allowedUDPPorts = ports; + "tailscale0".allowedTCPPorts = ports; + "tailscale0".allowedUDPPorts = ports; + }; }