Skip to content

Commit

Permalink
modules/common: Setup fail2ban
Browse files Browse the repository at this point in the history
  • Loading branch information
peterablehmann committed Jun 9, 2024
1 parent e1946ca commit 40e2b75
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
./backup.nix
./boot.nix
./exporters.nix
./fail2ban.nix
./nginx.nix
./nix.nix
./ssh.nix
Expand Down
12 changes: 12 additions & 0 deletions modules/common/fail2ban.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
services.fail2ban = {
enable = true;
bantime = "1h";
bantime-increment = {
enable = true;
overalljails = true;
factor = "4";
maxtime = "1y";
};
};
}

0 comments on commit 40e2b75

Please sign in to comment.