Gitiles
Code Review
Sign In
git.clicks.codes
/
Infra
/
NixFiles
/
0009c5e6af5f4931b74882aef198a1a27c97fa12
/
.
/
modules
/
common
/
fail2ban.nix
blob: ef06f0a1ff20c711183dda279f2cba073786a3ee [
file
] [
log
] [
blame
]
{
config
,
...
}:
{
services
.
fail2ban
=
{
enable
=
true
;
banaction
-
allports
=
"iptables-allports"
;
banaction
=
config
.
services
.
fail2ban
.
banaction
-
allports
;
bantime
-
increment
=
{
enable
=
true
;
rndtime
=
"5m"
;
overalljails
=
true
;
};
};
}