mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-09 01:47:23 +08:00
fail2ban
This commit is contained in:
parent
01930d44ee
commit
41ff80fed6
1 changed files with 8 additions and 2 deletions
|
|
@ -113,10 +113,16 @@
|
|||
services = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
permitRootLogin = "no";
|
||||
# permitRootLogin = "no"; -- distributed-build.nix requires it
|
||||
passwordAuthentication = false;
|
||||
};
|
||||
fail2ban.enable = true;
|
||||
fail2ban = {
|
||||
enable = true;
|
||||
ignoreIP = [
|
||||
# quebec
|
||||
"70.53.187.43"
|
||||
];
|
||||
};
|
||||
|
||||
netdata.enable = true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue