blob: ef06f0a1ff20c711183dda279f2cba073786a3ee [file] [log] [blame]
Skyler Greycf259f22023-05-01 21:34:36 +00001{ config, ... }: {
2 services.fail2ban = {
3 enable = true;
Skyler Greycf259f22023-05-01 21:34:36 +00004 banaction-allports = "iptables-allports";
5 banaction = config.services.fail2ban.banaction-allports;
Skyler Grey2b0723b2023-06-06 23:47:00 +02006 bantime-increment = {
7 enable = true;
Skyler Grey915067d2023-12-03 13:46:53 +00008 rndtime = "5m";
Skyler Grey2b0723b2023-06-06 23:47:00 +02009 overalljails = true;
Skyler Grey2b0723b2023-06-06 23:47:00 +020010 };
Skyler Greycf259f22023-05-01 21:34:36 +000011 };
Skyler Greycf259f22023-05-01 21:34:36 +000012}