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