2023-05-06 06:49:46 +02:00
|
|
|
{
|
|
|
|
networking.firewall.enable = true;
|
|
|
|
services = {
|
|
|
|
fail2ban.enable = true;
|
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
ports = [1322];
|
2024-09-11 08:58:47 +02:00
|
|
|
settings = {
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
StreamLocalBindUnlink = "yes";
|
|
|
|
};
|
2023-05-06 06:49:46 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|