From c63d139c845797ce36a8585063bd6416ed5847d1 Mon Sep 17 00:00:00 2001 From: jwy Date: Wed, 10 Jul 2024 14:35:27 -0400 Subject: [PATCH] Opened ports in firewall for syncthing --- nix-config/system/syncthing.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix-config/system/syncthing.nix b/nix-config/system/syncthing.nix index 787706887..db62bf236 100644 --- a/nix-config/system/syncthing.nix +++ b/nix-config/system/syncthing.nix @@ -10,4 +10,11 @@ lib.mkIf (syncthing == true) { configDir = "/home/${username}/.config/syncthing"; # Folder for Syncthing's settings and keys }; }; + + # Syncthing ports: 8384 for remote access to GUI + # 22000 TCP and/or UDP for sync traffic + # 21027/UDP for discovery + # source: https://docs.syncthing.net/users/firewall.html + networking.firewall.allowedTCPPorts = [ 8384 22000 ]; + networking.firewall.allowedUDPPorts = [ 22000 21027 ]; }