fix: rate limits, fail2ban, readme, secret scheme
This commit is contained in:
parent
ad8cb52169
commit
bb20443241
4 changed files with 96 additions and 9 deletions
|
|
@ -46,12 +46,31 @@
|
|||
settings.PermitRootLogin = "prohibit-password";
|
||||
};
|
||||
|
||||
# Fail2ban
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
maxretry = 5;
|
||||
bantime = "1h";
|
||||
bantime-increment = {
|
||||
enable = true;
|
||||
maxtime = "168h";
|
||||
overalljails = true;
|
||||
};
|
||||
ignoreIP = [
|
||||
"100.64.0.0/10"
|
||||
"127.0.0.0/8"
|
||||
];
|
||||
jails.sshd.settings = {
|
||||
backend = "systemd";
|
||||
maxretry = 3;
|
||||
};
|
||||
};
|
||||
|
||||
# nh (yet another nix helper)
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
clean.extraArgs = "--keep 2";
|
||||
flake = "/home/jet/Documents/extremist-software";
|
||||
};
|
||||
|
||||
# System
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue