added fail2ban
This commit is contained in:
parent
f7a69c79d2
commit
e5c45cc51e
1 changed files with 14 additions and 3 deletions
|
|
@ -44,9 +44,9 @@ in
|
||||||
LOGGENERATIONS = "14";
|
LOGGENERATIONS = "14";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.logrotate = {
|
#services.logrotate = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
};
|
#};
|
||||||
|
|
||||||
|
|
||||||
users.defaultUserShell = pkgs.zsh;
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
|
@ -66,7 +66,18 @@ in
|
||||||
passwordAuthentication = false;
|
passwordAuthentication = false;
|
||||||
extraConfig = "ClientAliveInterval 60";
|
extraConfig = "ClientAliveInterval 60";
|
||||||
};
|
};
|
||||||
|
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
|
|
||||||
|
fail2ban = {
|
||||||
|
enable = true;
|
||||||
|
ignoreIP =
|
||||||
|
[
|
||||||
|
"100.64.0.0/16"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
atd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue