fiddeling around with fail2ban and unlock via ssh
This commit is contained in:
parent
cff3407b46
commit
46a2b0cfa1
5 changed files with 8 additions and 3 deletions
components/network
|
|
@ -11,6 +11,7 @@ with lib;
|
|||
environment.systemPackages = [ pkgs.fail2ban pkgs.ipset ];
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
#package = pkgs.legacy_2311.fail2ban;
|
||||
jails = { };
|
||||
};
|
||||
})
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ in
|
|||
(mkIf cfg.sshguard.enable {
|
||||
environment.systemPackages = [ pkgs.ipset ];
|
||||
services.sshguard.enable = lib.mkDefault true;
|
||||
#boot.kernelModules = ["xt_set"];
|
||||
})
|
||||
|
||||
(mkIf (cfg.onlyTincAccess && cfg.enable) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue