commit f8d9f95ff09e486da5cd5f6668699ef27ad0f8bf (tree) parent e61063aee34e2d2ab5d2d78a5a32a60843f256e7 Author: Motiejus Jakštys <motiejus@jakstys.lt> Date: Thu, 25 Jan 2024 12:15:59 +0200 add syncthing-relay Diffstat:
| M | hosts/vno1-oh2/configuration.nix | | | 13 | ++++++++++++- |
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix @@ -562,6 +562,11 @@ inotify = "yes"; }; }; + + syncthing.relay = { + enable = true; + providedBy = "11sync.net"; + }; }; systemd.services = { @@ -702,7 +707,13 @@ ]; firewall = { allowedUDPPorts = [53 80 443]; - allowedTCPPorts = [53 80 443]; + allowedTCPPorts = [ + 53 + 80 + 443 + config.services.syncthing.relay.port + config.services.syncthing.relay.statusPort + ]; rejectPackets = true; }; };