Implement unban events and API and also add it to the Recent stored events, as well some cleanups

This commit is contained in:
2025-12-16 22:22:32 +01:00
parent 792bbe1939
commit 7b5c201936
19 changed files with 813 additions and 211 deletions

View File

@@ -110,6 +110,8 @@
"settings.destination_email_placeholder": "alerts@swissmakers.ch",
"settings.alert_countries": "Alarm-Länder",
"settings.alert_countries_description": "Wählen Sie die Länder aus, für die E-Mail-Alarme ausgelöst werden sollen, wenn eine Sperrung erfolgt.",
"settings.email_alerts_for_bans": "E-Mail-Benachrichtigungen für Sperrungen aktivieren",
"settings.email_alerts_for_unbans": "E-Mail-Benachrichtigungen für Entsperrungen aktivieren",
"settings.smtp": "SMTP-Konfiguration",
"settings.smtp_host": "SMTP-Host",
"settings.smtp_host_placeholder": "z.B. smtp.gmail.com",
@@ -281,6 +283,15 @@
"email.whois.no_data": "WHOIS-Daten wurden für dieses Ereignis nicht erfasst.",
"email.logs.no_data": "Für diesen Block wurden keine Log-Einträge erfasst.",
"email.footer.text": "Diese Nachricht wurde automatisch von Fail2Ban-UI generiert",
"email.unban.title": "IP-Adresse entsperrt",
"email.unban.intro": "IP-Adresse aus Fail2Ban-Jail entsperrt.",
"email.unban.subject.unbanned": "Entsperrt",
"email.unban.subject.from": "von",
"email.unban.details.unbanned_ip": "Entsperrte IP",
"email.unban.details.jail": "Jail",
"email.unban.details.hostname": "Hostname",
"email.unban.details.country": "Land",
"email.unban.details.timestamp": "Zeitstempel",
"lotr.email.title": "Ein dunkler Diener wurde verbannt",
"lotr.email.intro": "Die Wächter von Mittelerde haben eine Bedrohung erkannt und aus dem Reich verbannt.",
"lotr.email.you_shall_not_pass": "DU KANNST NICHT VORBEI",
@@ -289,8 +300,15 @@
"lotr.email.details.realm_protection": "Das Reich des Schutzes",
"lotr.email.details.origins": "Herkunft aus den",
"lotr.email.details.banished_at": "Verbannt zur",
"lotr.email.unban.title": "Der festgehaltene wird wider freigelassen",
"lotr.email.unban.intro": "Die Wächter von Mittelerde haben den Zugang wiederhergestellt.",
"lotr.email.unban.details.restored_ip": "Wiederhergestellte IP",
"lotr.banished": "Aus dem Reich verbannt",
"lotr.realms_protected": "Geschützte Reiche",
"lotr.threats_banished": "Verbannte Bedrohungen"
"lotr.threats_banished": "Verbannte Bedrohungen",
"toast.ban.title": "Neue Blockierung aufgetreten",
"toast.ban.action": "gesperrt in",
"toast.unban.title": "IP entsperrt",
"toast.unban.action": "entsperrt von"
}

View File

@@ -110,6 +110,8 @@
"settings.destination_email_placeholder": "alerts@swissmakers.ch",
"settings.alert_countries": "Alarm-Länder",
"settings.alert_countries_description": "Wähl d'Länder us, für weli du per Email ä Alarm becho wetsch, wenn e Sperrig erfolgt.",
"settings.email_alerts_for_bans": "Email-Benachrichtigunge für Sperrige aktiviere",
"settings.email_alerts_for_unbans": "Email-Benachrichtigunge für Entsperrige aktiviere",
"settings.smtp": "SMTP-Konfiguration",
"settings.smtp_host": "SMTP-Host",
"settings.smtp_host_placeholder": "z.B. smtp.gmail.com",
@@ -281,6 +283,15 @@
"email.whois.no_data": "WHOIS-Date si für das Ereignis nid erfasst worde.",
"email.logs.no_data": "Für de Block sind keni Log-Iiträg erfasst worde.",
"email.footer.text": "Diä Nachricht isch automatisch vom Fail2Ban-UI generiert worde",
"email.unban.title": "IP-Adrässä entsperrt",
"email.unban.intro": "E IP-Adrässä isch usem Fail2Ban-Jail entsperrt worde.",
"email.unban.subject.unbanned": "Entsperrt",
"email.unban.subject.from": "vo",
"email.unban.details.unbanned_ip": "Entsperrti IP",
"email.unban.details.jail": "Jail",
"email.unban.details.hostname": "Hostname",
"email.unban.details.country": "Land",
"email.unban.details.timestamp": "Ziitstämpfel",
"lotr.email.title": "E dunkle Diener isch verbannt worde",
"lotr.email.intro": "D Wächter vo Mittelerde hei e Bedrohig erkannt und us dim Riich verbannt.",
"lotr.email.you_shall_not_pass": "DU DARFSCH NID VERBII",
@@ -289,8 +300,15 @@
"lotr.email.details.realm_protection": "S Riich vom Schutz",
"lotr.email.details.origins": "Herkunft us de",
"lotr.email.details.banished_at": "Verbannt zur",
"lotr.email.unban.title": "Dr festghautnig wird wider freiglah",
"lotr.email.unban.intro": "D Wächter vo Mittelerde hei dr Zugang wiederhergstellt.",
"lotr.email.unban.details.restored_ip": "Widerhergstellti IP",
"lotr.banished": "Us em Riich verbannt",
"lotr.realms_protected": "Gschützti Riich",
"lotr.threats_banished": "Verbannti Bedrohige"
"lotr.threats_banished": "Verbannti Bedrohige",
"toast.ban.title": "Neui Blockierig ufträte",
"toast.ban.action": "gsperrt i",
"toast.unban.title": "IP entsperrt",
"toast.unban.action": "entsperrt vo"
}

View File

@@ -110,6 +110,8 @@
"settings.destination_email_placeholder": "alerts@swissmakers.ch",
"settings.alert_countries": "Alert Countries",
"settings.alert_countries_description": "Choose the countries for which you want to receive email alerts when a block is triggered.",
"settings.email_alerts_for_bans": "Enable email alerts for bans",
"settings.email_alerts_for_unbans": "Enable email alerts for unbans",
"settings.smtp": "SMTP Configuration",
"settings.smtp_host": "SMTP Host",
"settings.smtp_host_placeholder": "e.g., smtp.gmail.com",
@@ -281,6 +283,15 @@
"email.whois.no_data": "WHOIS data was not captured for this event.",
"email.logs.no_data": "No log entries were captured for this block.",
"email.footer.text": "This message was generated automatically by Fail2Ban-UI",
"email.unban.title": "IP Address Unbanned",
"email.unban.intro": "An IP address has been unbanned from a Fail2Ban jail.",
"email.unban.subject.unbanned": "Unbanned",
"email.unban.subject.from": "from",
"email.unban.details.unbanned_ip": "Unbanned IP",
"email.unban.details.jail": "Jail",
"email.unban.details.hostname": "Hostname",
"email.unban.details.country": "Country",
"email.unban.details.timestamp": "Timestamp",
"lotr.email.title": "A Dark Servant Has Been Banished",
"lotr.email.intro": "The guardians of Middle-earth have detected a threat and banished it from the realm.",
"lotr.email.you_shall_not_pass": "YOU SHALL NOT PASS",
@@ -289,8 +300,15 @@
"lotr.email.details.realm_protection": "The Realm of Protection",
"lotr.email.details.origins": "Origins from the",
"lotr.email.details.banished_at": "Banished at the",
"lotr.email.unban.title": "The held prisoner has been released",
"lotr.email.unban.intro": "The guardians of Middle-earth have restored access to the realm.",
"lotr.email.unban.details.restored_ip": "Restored IP",
"lotr.banished": "Banished from the realm",
"lotr.realms_protected": "Realms Protected",
"lotr.threats_banished": "Threats Banished"
"lotr.threats_banished": "Threats Banished",
"toast.ban.title": "New block occurred",
"toast.ban.action": "banned in",
"toast.unban.title": "IP unblocked",
"toast.unban.action": "unblocked from"
}

View File

@@ -110,6 +110,8 @@
"settings.destination_email_placeholder": "alerts@swissmakers.ch",
"settings.alert_countries": "Países para alerta",
"settings.alert_countries_description": "Elige los países para los que deseas recibir alertas por correo electrónico cuando se produzca un bloqueo.",
"settings.email_alerts_for_bans": "Activar alertas por email para bloqueos",
"settings.email_alerts_for_unbans": "Activar alertas por email para desbloqueos",
"settings.smtp": "Configuración SMTP",
"settings.smtp_host": "Host SMTP",
"settings.smtp_host_placeholder": "p.ej., smtp.gmail.com",
@@ -281,6 +283,15 @@
"email.whois.no_data": "No se capturaron datos WHOIS para este evento.",
"email.logs.no_data": "No se capturaron entradas de registro para este bloqueo.",
"email.footer.text": "Este mensaje fue generado automáticamente por Fail2Ban-UI",
"email.unban.title": "Dirección IP desbloqueada",
"email.unban.intro": "Una dirección IP ha sido desbloqueada de una prisión Fail2Ban.",
"email.unban.subject.unbanned": "Desbloqueado",
"email.unban.subject.from": "de",
"email.unban.details.unbanned_ip": "IP desbloqueada",
"email.unban.details.jail": "Prisión",
"email.unban.details.hostname": "Nombre de host",
"email.unban.details.country": "País",
"email.unban.details.timestamp": "Marca de tiempo",
"lotr.email.title": "Un siervo oscuro ha sido desterrado",
"lotr.email.intro": "Los guardianes de la Tierra Media han detectado una amenaza y la han desterrado del reino.",
"lotr.email.you_shall_not_pass": "NO PASARÁS",
@@ -289,7 +300,14 @@
"lotr.email.details.realm_protection": "El reino de la protección",
"lotr.email.details.origins": "Orígenes de las",
"lotr.email.details.banished_at": "Desterrado a las",
"lotr.email.unban.title": "El prisionero detenido ha sido liberado",
"lotr.email.unban.intro": "Los guardianes de la Tierra Media han restaurado el acceso al reino.",
"lotr.email.unban.details.restored_ip": "IP restaurada",
"lotr.banished": "Desterrado del reino",
"lotr.realms_protected": "Reinos protegidos",
"lotr.threats_banished": "Amenazas desterradas"
"lotr.threats_banished": "Amenazas desterradas",
"toast.ban.title": "Nuevo bloqueo ocurrido",
"toast.ban.action": "bloqueado en",
"toast.unban.title": "IP desbloqueada",
"toast.unban.action": "desbloqueada de"
}

View File

@@ -110,6 +110,8 @@
"settings.destination_email_placeholder": "alerts@swissmakers.ch",
"settings.alert_countries": "Pays d'alerte",
"settings.alert_countries_description": "Choisissez les pays pour lesquels vous souhaitez recevoir des alertes par email lors d'un blocage.",
"settings.email_alerts_for_bans": "Activer les alertes email pour les bannissements",
"settings.email_alerts_for_unbans": "Activer les alertes email pour les débannissements",
"settings.smtp": "Configuration SMTP",
"settings.smtp_host": "Hôte SMTP",
"settings.smtp_host_placeholder": "par exemple, smtp.gmail.com",
@@ -281,6 +283,15 @@
"email.whois.no_data": "Les données WHOIS n'ont pas été capturées pour cet événement.",
"email.logs.no_data": "Aucune entrée de journal n'a été capturée pour ce blocage.",
"email.footer.text": "Ce message a été généré automatiquement par Fail2Ban-UI",
"email.unban.title": "Adresse IP débannie",
"email.unban.intro": "Une adresse IP a été débannie d'une prison Fail2Ban.",
"email.unban.subject.unbanned": "Débanni",
"email.unban.subject.from": "de",
"email.unban.details.unbanned_ip": "IP débannie",
"email.unban.details.jail": "Prison",
"email.unban.details.hostname": "Nom d'hôte",
"email.unban.details.country": "Pays",
"email.unban.details.timestamp": "Horodatage",
"lotr.email.title": "Un serviteur des ténèbres a été banni",
"lotr.email.intro": "Les gardiens de la Terre du Milieu ont détecté une menace et l'ont bannie du royaume.",
"lotr.email.you_shall_not_pass": "TU NE PASSERAS PAS",
@@ -289,7 +300,14 @@
"lotr.email.details.realm_protection": "Le royaume de la protection",
"lotr.email.details.origins": "Origines des",
"lotr.email.details.banished_at": "Banni à",
"lotr.email.unban.title": "Le détenu a été libéré",
"lotr.email.unban.intro": "Les gardiens de la Terre du Milieu ont restauré l'accès au royaume.",
"lotr.email.unban.details.restored_ip": "IP restaurée",
"lotr.banished": "Banni du royaume",
"lotr.realms_protected": "Royaumes protégés",
"lotr.threats_banished": "Menaces bannies"
"lotr.threats_banished": "Menaces bannies",
"toast.ban.title": "Nouveau blocage survenu",
"toast.ban.action": "banni dans",
"toast.unban.title": "IP débloquée",
"toast.unban.action": "débloquée de"
}

View File

@@ -110,6 +110,8 @@
"settings.destination_email_placeholder": "alerts@swissmakers.ch",
"settings.alert_countries": "Paesi per allarme",
"settings.alert_countries_description": "Seleziona i paesi per i quali desideri ricevere allarmi via email quando si verifica un blocco.",
"settings.email_alerts_for_bans": "Abilita allarmi email per i ban",
"settings.email_alerts_for_unbans": "Abilita allarmi email per gli unban",
"settings.smtp": "Configurazione SMTP",
"settings.smtp_host": "Host SMTP",
"settings.smtp_host_placeholder": "es. smtp.gmail.com",
@@ -281,6 +283,15 @@
"email.whois.no_data": "I dati WHOIS non sono stati acquisiti per questo evento.",
"email.logs.no_data": "Nessuna voce di log è stata acquisita per questo blocco.",
"email.footer.text": "Questo messaggio è stato generato automaticamente da Fail2Ban-UI",
"email.unban.title": "Indirizzo IP sbannato",
"email.unban.intro": "Un indirizzo IP è stato sbannato da una prigione Fail2Ban.",
"email.unban.subject.unbanned": "Sbannato",
"email.unban.subject.from": "da",
"email.unban.details.unbanned_ip": "IP sbannato",
"email.unban.details.jail": "Prigione",
"email.unban.details.hostname": "Nome host",
"email.unban.details.country": "Paese",
"email.unban.details.timestamp": "Timestamp",
"lotr.email.title": "Un servitore oscuro è stato bandito",
"lotr.email.intro": "I guardiani della Terra di Mezzo hanno rilevato una minaccia e l'hanno bandita dal regno.",
"lotr.email.you_shall_not_pass": "NON PASSERAI",
@@ -289,7 +300,14 @@
"lotr.email.details.realm_protection": "Il regno della protezione",
"lotr.email.details.origins": "Origini dalle",
"lotr.email.details.banished_at": "Bandito alle",
"lotr.email.unban.title": "Il detenuto è stato rilasciato",
"lotr.email.unban.intro": "I guardiani della Terra di Mezzo hanno ripristinato l'accesso al regno.",
"lotr.email.unban.details.restored_ip": "IP ripristinato",
"lotr.banished": "Bandito dal regno",
"lotr.realms_protected": "Regni protetti",
"lotr.threats_banished": "Minacce bandite"
"lotr.threats_banished": "Minacce bandite",
"toast.ban.title": "Nuovo blocco verificato",
"toast.ban.action": "bannato in",
"toast.unban.title": "IP sbloccato",
"toast.unban.action": "sbloccato da"
}