From 92fd97c6b846234368b2d5112b6726dffe700514 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 2 Mar 2024 17:06:12 -0500 Subject: [PATCH] opened ports for syncthing and kde connect --- system/network/default.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/system/network/default.nix b/system/network/default.nix index 9c4ff2c0..0b005817 100644 --- a/system/network/default.nix +++ b/system/network/default.nix @@ -28,5 +28,20 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; - networking.firewall.allowedTCPPorts = [ 22 ]; + + # Open TXP ports for SSH and Syncthing. + networking.firewall.allowedTCPPorts = [ 22 8384 22000 ]; + + # Open UDP ports for Syncthing. + networking.firewall.allowedUDPPorts = [ 22000 21027 ]; + + # Open ports for KDE Connect. + networking.firewall.allowedTCPPortRanges = [ + # KDE Connect + { from = 1714; to = 1764; } + ]; + networking.firewall.allowedUDPPortRanges = [ + # KDE Connect + { from = 1714; to = 1764; } + ]; } \ No newline at end of file