added fail2ban

master
root 2020-09-20 18:11:10 +00:00
parent 5c5d20bfac
commit c7d89fd6c8
3 changed files with 24 additions and 1 deletions

View File

@ -8,10 +8,12 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./nextcloud.nix
#./nextcloud.nix
./matrix-synapse.nix
./nginx.nix
./openldap.nix
./syncthing.nix
./fail2ban.nix
];
# Boot

7
fail2ban.nix Normal file
View File

@ -0,0 +1,7 @@
{config, pkgs, ...}:
{
services.fail2ban = {
enable = true;
};
}

View File

@ -58,6 +58,20 @@
givenName:
mail:
userPassword: {CRYPT}$6$3xZm8NPt32CZ4oEJ$B4ptPV2eMuf76bSCkb6siYpft1aa4NObdokMjscNaicMfaMCiwyM0s4R2me3EAOZiPXSl36DMTFl5MaZHBHqP1
dn: cn=andrej0913, ou=users, o=bib3, c=DE
objectclass: InetOrgPerson
sn:
givenName:
mail:
userPassword: {CRYPT}$6$qI3fENURGFHYMVeN$tdqfgaA/Uex.p1DC7YUSXQ4P0tqAsUAUMkrtk68LKLmswLBcz3C2KLbglm4XIYUdEjw2fkWNbPLtrF/.d17nF.
dn: cn=gallaron, ou=users, o=bib3, c=DE
objectclass: InetOrgPerson
sn:
givenName:
mail:
userPassword: {CRYPT}$6$vbhMLZRZmvLcXvP6$U3Q81g7FVuo4jnK.0Yy12PdL0Eqso4Thjlc3YnRGJe9tyfeovKdSeNPhEPDGNhIzFZdnmsVYzJO/xnbb0ub1c0
'';
};
# TODO move users to seperate files