From 1d8d5c7870936404eeaa81e5a175f67598e2beea Mon Sep 17 00:00:00 2001 From: Zane van Iperen Date: Tue, 18 Jan 2022 11:40:06 +1000 Subject: [PATCH] nixos/modules/syncthing: add 22000/udp to firewall (cherry picked from commit f533a6d2bdd11bf901c7d370e7ddd604b245cf98) --- nixos/modules/services/networking/syncthing.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index 8c44687a3822..b950f32fd329 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -448,7 +448,7 @@ in { default = false; example = true; description = '' - Whether to open the default ports in the firewall: TCP 22000 for transfers + Whether to open the default ports in the firewall: TCP/UDP 22000 for transfers and UDP 21027 for discovery. If multiple users are running Syncthing on this machine, you will need @@ -484,7 +484,7 @@ in { networking.firewall = mkIf cfg.openDefaultPorts { allowedTCPPorts = [ 22000 ]; - allowedUDPPorts = [ 21027 ]; + allowedUDPPorts = [ 21027 22000 ]; }; systemd.packages = [ pkgs.syncthing ];