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