Enable ftp server

This commit is contained in:
GHOSCHT 2024-03-03 12:31:16 +01:00
parent fa8354f1f8
commit 9e47462835
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 21 additions and 0 deletions

View file

@ -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;
}
];
}

View file

@ -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;