syncthing: restrict access of peers to vpn

This commit is contained in:
a-kenji
2023-12-08 13:53:32 +01:00
parent ec2653f2fa
commit c8ffcadad9

View File

@@ -45,7 +45,6 @@
8384
22000
];
# local ui TODO: mkDefault ?
networking.firewall.allowedTCPPorts = [ 8384 ];
networking.firewall.interfaces."zt+".allowedUDPPorts = [
22000
@@ -72,6 +71,8 @@
dataDir = lib.mkDefault "/home/user/";
group = "syncthing";
key =
lib.mkDefault
config.clanCore.secrets.syncthing.secrets."syncthing.key".path or null;
@@ -82,8 +83,7 @@
settings = {
options = {
urAccepted = -1;
# TODO:
# allowedNetworks = [];
allowedNetworks = [ config.clan.networking.zerotier.subnet ];
};
devices =
{ }