Skip to content

Commit

Permalink
Fix fail2ban
Browse files Browse the repository at this point in the history
  • Loading branch information
kip93 committed Dec 2, 2023
1 parent 5fd3478 commit f753cc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/ssh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ in
# Be a bit more lenient by default (not much of an issue without password
# auths).
maxretry = 20;
bantime = null; # Ban forever
# Ban for ever increasing times
bantime = "1h";
bantime-increment = { enable = true; rndtime = "5m"; };
};
};
}

0 comments on commit f753cc8

Please sign in to comment.