modules/fail2ban: init
This commit is contained in:
parent
53738508ca
commit
eafcb789ad
2 changed files with 11 additions and 0 deletions
|
@ -5,6 +5,7 @@ let
|
||||||
autopatch = import ./autopatch;
|
autopatch = import ./autopatch;
|
||||||
deploy-rs-receiver = import ./deploy-rs-receiver;
|
deploy-rs-receiver = import ./deploy-rs-receiver;
|
||||||
enterprise = import ./enterprise;
|
enterprise = import ./enterprise;
|
||||||
|
fail2ban = import ./fail2ban;
|
||||||
hydra = import ./hydra;
|
hydra = import ./hydra;
|
||||||
ipfs-lain = import ./ipfs-lain;
|
ipfs-lain = import ./ipfs-lain;
|
||||||
nix-builder = import ./nix-builder;
|
nix-builder = import ./nix-builder;
|
||||||
|
|
10
modules/fail2ban/default.nix
Normal file
10
modules/fail2ban/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
services.fail2ban = {
|
||||||
|
enable = true;
|
||||||
|
jails.sshd = ''
|
||||||
|
enabled = true
|
||||||
|
port = 22
|
||||||
|
mode = aggressive
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue