mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-18 05:19:33 +01:00
added ssh jail
This commit is contained in:
parent
0b6399027c
commit
c84a24c2ac
|
@ -8,4 +8,14 @@
|
|||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
|
||||
services.fail2ban.jails.sshd.settings = {
|
||||
ssh = ''
|
||||
enabled = true
|
||||
port = ssh
|
||||
filter = sshd
|
||||
logpath = %(sshd_log)s
|
||||
maxretry = 5
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue