3 services.openssh.settings.LogLevel = "VERBOSE";
4 services.postgresql.logLinePrefix = "%h ";
6 systemd.services.nftables.postStart = '' systemctl reload fail2ban '';
10 banaction = "nftables-multiport";
11 banaction-allports = "nftables-allports";
15 formula = "ban.Time * (1 << min(ban.Count, 20)) * banFactor";
20 packageFirewall = pkgs.nftables;
31 hosts.mermet._module.args.ipv4
32 "losurdo.sourcephile.fr"
53 environment.etc."fail2ban/action.d/nftables-common.local".text = ''
57 environment.etc."fail2ban/filter.d/postgresql.local".text = ''
61 _daemon = postgresql-start
63 journalmatch = _SYSTEMD_UNIT=postgresql.service + _COMM=postgres
64 prefregex = ^<F-MLFID>%(__prefix_line)s</F-MLFID><F-CONTENT>.+</F-CONTENT>$
65 failregex = ^<HOST>\s+FATAL:\s*no pg_hba.conf entry for host.+$
66 ^<HOST>\s+FATAL:\s*no PostgreSQL user name specified in startup packet.+$
67 ^<HOST>\s+FATAL:\s*password authentication failed for user.+$
68 ^<HOST>\s+FATAL:\s*unsupported frontend protocol.+$
70 #ignoreregex = duration: