Compare commits

...

2 Commits

Author SHA1 Message Date
Yves Dubromelle
e1e30f4ce0 option pour activer dovecot 2016-08-10 23:16:03 +02:00
4c3e1abfcb ajout de variables locales pour la config de fail2ban 2016-08-10 16:11:03 +02:00
3 changed files with 10 additions and 6 deletions

View File

@@ -4,6 +4,10 @@ with pkgs.lib;
let
cfg = config.r6d.config-generator;
ignoreip = "pedro.dubronetwork.fr cube.dubronetwork.fr voyage.prunetwork.fr xray.prunetwork.fr 192.168.0.0/16 172.16.0.0/16";
destemail = "admins@dubronetwork.fr";
in {
# Gestion de fail2ban
@@ -13,18 +17,16 @@ in {
jails = {
DEFAULT = ''
# "ignoreip" can be an IP address, a CIDR mask or a DNS host
ignoreip = 127.0.0.1/8 pedro.dubronetwork.fr cube.dubronetwork.fr voyage.prunetwork.fr xray.prunetwork.fr 192.168.0.0/16 172.16.0.0/16
ignoreip = 127.0.0.1/8 ${ignoreip}
# 1 jour
# bantime = 86400
# 5 jours
bantime = 432000
maxretry = 3
#
# Destination email address used solely for the interpolations in
# jail.{conf,local} configuration files.
destemail = admins@dubronetwork.fr
destemail = ${destemail}
'';
ssh-route = ''
filter = sshd

View File

@@ -5,7 +5,7 @@
./network-dns.nix
# inclusion conditionnelle
./activation-manuelle/fail2ban.nix
./activation-manuelle/service-fail2ban.nix
./activation-manuelle/nix-serve-client.nix
./activation-manuelle/nix-serve-server.nix
./activation-manuelle/users.nix

View File

@@ -36,6 +36,7 @@ in
database_postgres=mkEnableOption "Profil pour activer le SGBD PostgreSQL.";
developpement = mkEnableOption "Profil pour activer les outils de développement";
docker = mkEnableOption "Profil pour l'utilisation de Docker.";
dovecot = mkEnableOption "Profil pour activer le serveur Dovecot.";
dns_autorite = mkEnableOption "Profil pour servir les fichiers de zone DNS.";
dns_resolveur = mkEnableOption "Profil pour activer un résolveur DNS local.";
edition-musique = mkEnableOption "Profil pour la création/édition de musique.";
@@ -249,6 +250,7 @@ in
};
r6d.config-generator = {
dovecot = true;
fail2ban = true;
murmur = true;
online-ipv6 = true;