14 lines
248 B
Nix
14 lines
248 B
Nix
{
|
|
networking.firewall = {
|
|
enable = true;
|
|
allowedTCPPorts = [ 22 80 443 21 ];
|
|
allowedUDPPorts = [ 22 80 443 ];
|
|
allowedTCPPortRanges = [
|
|
# vsftpd passive
|
|
{
|
|
from = 51000;
|
|
to = 51999;
|
|
}
|
|
];
|
|
};
|
|
}
|