formatting: new formatting'
This commit is contained in:
parent
7efcab98a9
commit
ef1b9f6c91
15 changed files with 358 additions and 152 deletions
21
common/nixos/ssh/ssh_guard.nix
Normal file
21
common/nixos/ssh/ssh_guard.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
ssh_guard.enable = lib.mkEnableOption "enable ssh guard";
|
||||
};
|
||||
config = lib.mkIf config.ssh_guard.enable {
|
||||
services.sshguard = {
|
||||
enable = true;
|
||||
services = [
|
||||
"sshd"
|
||||
];
|
||||
blocktime = 120;
|
||||
detection_time = 1800;
|
||||
blacklist_threshold = 120;
|
||||
blacklist_file = "/var/lib/sshguard/blacklist.db";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue