From 46df5d064209802257cf0b671436caf97a9a29d9 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 3 Jun 2021 00:33:52 +0200 Subject: [PATCH] services: transmission: use openFirewall setting --- services/transmission.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/services/transmission.nix b/services/transmission.nix index de1ad10..b642c56 100644 --- a/services/transmission.nix +++ b/services/transmission.nix @@ -49,6 +49,9 @@ in rpc-whitelist-enabled = true; rpc-whitelist = "127.0.0.1"; }; + + # automatically allow transmission.settings.peer-port + openFirewall = true; }; services.nginx.virtualHosts."${webuiDomain}" = { @@ -57,10 +60,5 @@ in locations."/".proxyPass = "http://127.0.0.1:${toString transmissionRpcPort}"; }; - - networking.firewall = { - allowedTCPPorts = [ transmissionPeerPort ]; - allowedUDPPorts = [ transmissionPeerPort ]; - }; }; }