helm/profiles/ftp/default.nix

21 lines
493 B
Nix
Raw Normal View History

2022-04-23 21:16:17 -07:00
{ pkgs, lib, ... }:
{
networking.firewall.allowedTCPPorts = [ 20 21 ];
2022-08-09 08:32:55 -07:00
networking.firewall.allowedTCPPortRanges = [{ from = 51000; to = 51999; }];
2022-04-23 21:16:17 -07:00
services.vsftpd = {
enable = true;
writeEnable = true;
anonymousUser = true;
anonymousUserNoPassword = true;
anonymousUploadEnable = true;
anonymousMkdirEnable = true;
anonymousUserHome = "/home/ftp";
extraConfig = ''
pasv_enable=Yes
pasv_min_port=51000
pasv_max_port=51999
'';
};
}