From cd69324e48d780ba7cc7ab86b2e5e3f3b43b4ab0 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Sat, 3 Aug 2024 15:58:30 +0200 Subject: [PATCH] feat: add Syncthing ports configuration Added TCP and UDP ports for Syncthing to the firewall configuration. Configured Syncthing GUI to listen on all addresses at port 8384. --- systems/x86_64-linux/sgx/fileserver.nix | 1 + systems/x86_64-linux/sgx/network.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/systems/x86_64-linux/sgx/fileserver.nix b/systems/x86_64-linux/sgx/fileserver.nix index 6ddaa6c..e05672c 100644 --- a/systems/x86_64-linux/sgx/fileserver.nix +++ b/systems/x86_64-linux/sgx/fileserver.nix @@ -79,6 +79,7 @@ user = "harald"; dataDir = "/mnt/raid/Qmultimedia/syncthing"; # Default folder for new synced folders configDir = "/mnt/raid/Qmultimedia/syncthing/.config/syncthing"; # Folder for Syncthing's settings and keys + guiAddress = "0.0.0.0:8384"; }; }; } diff --git a/systems/x86_64-linux/sgx/network.nix b/systems/x86_64-linux/sgx/network.nix index d19a01d..02b64d3 100644 --- a/systems/x86_64-linux/sgx/network.nix +++ b/systems/x86_64-linux/sgx/network.nix @@ -37,6 +37,7 @@ }; }; - networking.firewall.allowedTCPPorts = [ config.services.netatalk.port ]; + networking.firewall.allowedTCPPorts = [ 8384 22000 config.services.netatalk.port ]; + networking.firewall.allowedUDPPorts = [ 22000 21027 ]; networking.firewall.allowPing = true; }