Disable vsftpd firewall
This commit is contained in:
parent
b59053bc18
commit
e8ad16a7e6
1 changed files with 12 additions and 12 deletions
|
@ -5,16 +5,16 @@
|
|||
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;
|
||||
}
|
||||
];
|
||||
# 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;
|
||||
# }
|
||||
# ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue