mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
added ssh jail
This commit is contained in:
parent
0b6399027c
commit
c84a24c2ac
1 changed files with 10 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue