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