Merge pull request #155443 from vs49688/sy
nixos/modules/syncthing: add 22000/udp to firewall
This commit is contained in:
commit
44cb0a4c67
@ -468,7 +468,7 @@ in {
|
|||||||
default = false;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to open the default ports in the firewall: TCP 22000 for transfers
|
Whether to open the default ports in the firewall: TCP/UDP 22000 for transfers
|
||||||
and UDP 21027 for discovery.
|
and UDP 21027 for discovery.
|
||||||
|
|
||||||
If multiple users are running Syncthing on this machine, you will need
|
If multiple users are running Syncthing on this machine, you will need
|
||||||
@ -504,7 +504,7 @@ in {
|
|||||||
|
|
||||||
networking.firewall = mkIf cfg.openDefaultPorts {
|
networking.firewall = mkIf cfg.openDefaultPorts {
|
||||||
allowedTCPPorts = [ 22000 ];
|
allowedTCPPorts = [ 22000 ];
|
||||||
allowedUDPPorts = [ 21027 ];
|
allowedUDPPorts = [ 21027 22000 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.packages = [ pkgs.syncthing ];
|
systemd.packages = [ pkgs.syncthing ];
|
||||||
|
Loading…
Reference in New Issue
Block a user