Gitiles
Code Review
Sign In
git.clicks.codes
/
Infra
/
NixFiles
/
fc048590aae172d2def92cf68f04f2cc2bfa4e29
/
.
/
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
;
};
};
}