✨ (cesium/services) add alightweight fail2ban
This commit is contained in:
parent
8b99e9d3b3
commit
f1060fdb52
|
@ -6,6 +6,7 @@
|
||||||
./gitea
|
./gitea
|
||||||
./nginx
|
./nginx
|
||||||
./ssh
|
./ssh
|
||||||
|
./fail2ban.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|
7
hosts/cesium/services/fail2ban.nix
Normal file
7
hosts/cesium/services/fail2ban.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{...}: {
|
||||||
|
services.fail2ban = {
|
||||||
|
enable = true;
|
||||||
|
maxretry = 3;
|
||||||
|
bantime = "10m";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue