Skyler Grey | cf259f2 | 2023-05-01 21:34:36 +0000 | [diff] [blame] | 1 | { config, ... }: { |
2 | services.fail2ban = { | ||||
3 | enable = true; | ||||
Skyler Grey | cf259f2 | 2023-05-01 21:34:36 +0000 | [diff] [blame] | 4 | banaction-allports = "iptables-allports"; |
5 | banaction = config.services.fail2ban.banaction-allports; | ||||
Skyler Grey | 2b0723b | 2023-06-06 23:47:00 +0200 | [diff] [blame] | 6 | bantime-increment = { |
7 | enable = true; | ||||
Skyler Grey | 915067d | 2023-12-03 13:46:53 +0000 | [diff] [blame] | 8 | rndtime = "5m"; |
Skyler Grey | 2b0723b | 2023-06-06 23:47:00 +0200 | [diff] [blame] | 9 | overalljails = true; |
Skyler Grey | 2b0723b | 2023-06-06 23:47:00 +0200 | [diff] [blame] | 10 | }; |
Skyler Grey | cf259f2 | 2023-05-01 21:34:36 +0000 | [diff] [blame] | 11 | }; |
Skyler Grey | cf259f2 | 2023-05-01 21:34:36 +0000 | [diff] [blame] | 12 | } |