Disable vsftpd firewall

This commit is contained in:
GHOSCHT 2024-03-03 13:09:01 +01:00
parent b59053bc18
commit e8ad16a7e6
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -5,16 +5,16 @@
localUsers = true; localUsers = true;
}; };
networking.firewall.allowedTCPPorts = [21]; # networking.firewall.allowedTCPPorts = [21];
services.vsftpd.extraConfig = '' # services.vsftpd.extraConfig = ''
pasv_enable=Yes # pasv_enable=Yes
pasv_min_port=51000 # pasv_min_port=51000
pasv_max_port=51999 # pasv_max_port=51999
''; # '';
networking.firewall.allowedTCPPortRanges = [ # networking.firewall.allowedTCPPortRanges = [
{ # {
from = 51000; # from = 51000;
to = 51999; # to = 51999;
} # }
]; # ];
} }