mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 03:27:45 +00:00
Add fail2ban
This commit is contained in:
parent
22907209f0
commit
eca260af5a
2 changed files with 11 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -14,6 +14,7 @@
|
|||
!modules/discord/
|
||||
!modules/dunst/
|
||||
!modules/endlessh/
|
||||
!modules/fail2ban/
|
||||
!modules/firefox/
|
||||
!modules/fonts/
|
||||
!modules/fuzzel/
|
||||
|
|
10
modules/fail2ban/default.nix
Normal file
10
modules/fail2ban/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ ulib, ... }: with ulib;
|
||||
|
||||
serverSystemConfiguration {
|
||||
services.fail2ban = enabled {
|
||||
bantime = "24h";
|
||||
bantime-increment = enabled {
|
||||
maxtime = "7d";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue