"losurdo.sourcephile.fr"
];
jails = {
- DEFAULT = ''
- '';
- sshd = ''
- enabled = true
- bantime = 5m
- findtime = 1d
- maxretry = 1
- mode = aggressive
- '';
- postgresql = ''
- enabled = true
- bantime = 1m
- filter = postgresql
- findtime = 1d
- port = 5432
- '';
+ sshd.settings = {
+ enabled = true;
+ bantime = "5m";
+ findtime = "1d";
+ maxretry = "1";
+ mode = "aggressive";
+ };
+ postgresql.settings = {
+ enabled = true;
+ bantime = "1m";
+ filter = "postgresql";
+ findtime = "1d";
+ port = 5432;
+ };
};
};
environment.etc."fail2ban/action.d/nftables-common.local".text = ''