Getting a lot closer..

This commit is contained in:
Jimbo 2024-10-09 03:30:34 -04:00
parent e3bacb2d84
commit 8f6df22e98
220 changed files with 779 additions and 956 deletions

View file

@ -0,0 +1,16 @@
{ ... }:
{
imports = [
./fail2ban
];
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PrintLastLog = "no";
PasswordAuthentication = false;
UsePAM = false;
};
};
}

View file

@ -0,0 +1,9 @@
{ outputs, ... }:
{
services.fail2ban = {
enable = true;
maxretry = 5;
bantime = "5m";
ignoreIP = [ "${outputs.ips.localSpan}.0/24" ];
};
}