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