From 372da9b5579638f16239d7ba3e661e6a79c086a3 Mon Sep 17 00:00:00 2001 From: andryyy Date: Thu, 29 Jun 2017 10:30:25 +0200 Subject: [PATCH] [Web] Move Fail2ban function, add lang strings --- data/web/admin.php | 10 +++++----- data/web/lang/lang.de.php | 4 ++++ data/web/lang/lang.en.php | 4 ++++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/data/web/admin.php b/data/web/admin.php index 8c01b340..eabaaa84 100644 --- a/data/web/admin.php +++ b/data/web/admin.php @@ -271,26 +271,26 @@ $tfa_data = get_tfa();
-
Fail2Ban parameters
+
- +
- +
- +
- +
diff --git a/data/web/lang/lang.de.php b/data/web/lang/lang.de.php index ea8fe9da..513f0622 100644 --- a/data/web/lang/lang.de.php +++ b/data/web/lang/lang.de.php @@ -419,6 +419,10 @@ $lang['tfa']['confirm_totp_token'] = "Bitte bestätigen Sie die Änderung durch $lang['admin']['search_domain_da'] = 'Domains durchsuchen'; $lang['admin']['f2b_parameters'] = 'Fail2ban Parameter'; +$lang['admin']['f2b_ban_time'] = 'Banzeit (s)'; +$lang['admin']['f2b_max_attempts'] = 'Max. Versuche'; +$lang['admin']['f2b_retry_window'] = 'Wiederholungen im Zeitraum von (s)'; +$lang['admin']['f2b_whitelist'] = 'Whitelist für Netzwerke und Hosts'; $lang['admin']['restrictions'] = 'Postfix Restriktionen'; $lang['admin']['rr'] = 'Postfix Empfänger Restriktionen'; $lang['admin']['sr'] = 'Postfix Sender Restriktionen'; diff --git a/data/web/lang/lang.en.php b/data/web/lang/lang.en.php index d6d4256a..b56b6c7d 100644 --- a/data/web/lang/lang.en.php +++ b/data/web/lang/lang.en.php @@ -423,6 +423,10 @@ $lang['tfa']['enter_qr_code'] = "Your TOTP code if your device cannot scan QR co $lang['tfa']['confirm_totp_token'] = "Please confirm your changes by entering the generated token"; $lang['admin']['f2b_parameters'] = 'Fail2ban parameters'; +$lang['admin']['f2b_ban_time'] = 'Ban time (s)'; +$lang['admin']['f2b_max_attempts'] = 'Max. attempts'; +$lang['admin']['f2b_retry_window'] = 'Retry window (s) for max. attempts'; +$lang['admin']['f2b_whitelist'] = 'Whitelisted networks/hosts'; $lang['admin']['search_domain_da'] = 'Search domains'; $lang['admin']['restrictions'] = 'Postfix Restrictions'; $lang['admin']['rr'] = 'Postfix Recipient Restrictions';