diff --git a/hosts/common/optional/vsftpd.nix b/hosts/common/optional/vsftpd.nix new file mode 100644 index 0000000..6b89e9d --- /dev/null +++ b/hosts/common/optional/vsftpd.nix @@ -0,0 +1,20 @@ +{ + services.vsftpd = { + enable = true; + writeEnable = true; + localUsers = true; + }; + + networking.firewall.allowedTCPPorts = [21]; + services.vsftpd.extraConfig = '' + pasv_enable=Yes + pasv_min_port=51000 + pasv_max_port=51999 + ''; + networking.firewall.allowedTCPPortRanges = [ + { + from = 51000; + to = 51999; + } + ]; +} diff --git a/hosts/franz/default.nix b/hosts/franz/default.nix index 32956d4..e2f89a6 100644 --- a/hosts/franz/default.nix +++ b/hosts/franz/default.nix @@ -20,6 +20,7 @@ in { ../common/optional/systemd-boot.nix ../common/optional/gnome-keyring.nix ../common/optional/docker.nix + ../common/optional/vsftpd.nix ]; users.mutableUsers = true;