]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.cgi: Allow to configure new mail alert system
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 9 Aug 2025 11:28:35 +0000 (13:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Sep 2025 17:42:01 +0000 (18:42 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
14 files changed:
doc/language_issues.en
doc/language_issues.es
doc/language_issues.fr
doc/language_issues.it
doc/language_issues.nl
doc/language_issues.pl
doc/language_issues.ru
doc/language_issues.tr
doc/language_issues.tw
doc/language_issues.zh
doc/language_missings
html/cgi-bin/ids.cgi
langs/de/cgi-bin/de.pl
langs/en/cgi-bin/en.pl

index 2fec8407571f56e4e50677c108d82796a18353ea..15229c9fad1e92594cd8e340efafe1c988af77da 100644 (file)
@@ -1039,8 +1039,12 @@ WARNING: untranslated string: ids cleanup tmp dir = Cleanup temporary directory.
 WARNING: untranslated string: ids could not add provider = Could not add provider
 WARNING: untranslated string: ids customize ruleset = Customize ruleset
 WARNING: untranslated string: ids download new ruleset = Downloading and unpacking new ruleset. Please wait until all operations have completed successfully...
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
 WARNING: untranslated string: ids enable = Enable Intrusion Prevention System
 WARNING: untranslated string: ids enable automatic updates = Enable automatic updates
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: ids extract ruleset = Extracting ruleset for provider:
 WARNING: untranslated string: ids finished = Finished...
 WARNING: untranslated string: ids force ruleset update = Force ruleset update
index 6863eda0ef527e5b62542f8c49025bc776f3063d..4335085aa350efba2a3e3ddde700e60b37a3c286 100644 (file)
@@ -1056,6 +1056,10 @@ WARNING: untranslated string: guardian logtarget_file = unknown string
 WARNING: untranslated string: guardian logtarget_syslog = unknown string
 WARNING: untranslated string: guardian no entries = unknown string
 WARNING: untranslated string: guardian service = unknown string
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: ids provider eol = (EOL)
 WARNING: untranslated string: indirect target selection = Indirect target selection
 WARNING: untranslated string: info messages = unknown string
index 750463098e93f6308b45d47c63c2cb689b314835..71ee9365d9f03f2c73cd56a7deec7b7a119c4c74 100644 (file)
@@ -1044,6 +1044,10 @@ WARNING: untranslated string: guardian logtarget_syslog = unknown string
 WARNING: untranslated string: guardian no entries = unknown string
 WARNING: untranslated string: guardian service = unknown string
 WARNING: untranslated string: hostile networks total = Total Hostile Networks
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: ids provider eol = (EOL)
 WARNING: untranslated string: ids rulesets = Rulesets
 WARNING: untranslated string: import connection = Import a Connection
index 139bd9657406434347baee5cd51300c4304d742d..7d208332168842a2ffb2e40ce94953d94f8cbc84 100644 (file)
@@ -1162,8 +1162,12 @@ WARNING: untranslated string: ids cleanup tmp dir = Cleanup temporary directory.
 WARNING: untranslated string: ids could not add provider = Could not add provider
 WARNING: untranslated string: ids customize ruleset = Customize ruleset
 WARNING: untranslated string: ids download new ruleset = Downloading and unpacking new ruleset. Please wait until all operations have completed successfully...
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
 WARNING: untranslated string: ids enable = Enable Intrusion Prevention System
 WARNING: untranslated string: ids enable automatic updates = Enable automatic updates
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: ids extract ruleset = Extracting ruleset for provider:
 WARNING: untranslated string: ids finished = Finished...
 WARNING: untranslated string: ids force ruleset update = Force ruleset update
index d489dccff1737fdba3e523da87a9caf92d20c777..cc8221a0836ad001651625ef92eed7dfbc3aa138 100644 (file)
@@ -1168,8 +1168,12 @@ WARNING: untranslated string: ids cleanup tmp dir = Cleanup temporary directory.
 WARNING: untranslated string: ids could not add provider = Could not add provider
 WARNING: untranslated string: ids customize ruleset = Customize ruleset
 WARNING: untranslated string: ids download new ruleset = Downloading and unpacking new ruleset. Please wait until all operations have completed successfully...
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
 WARNING: untranslated string: ids enable = Enable Intrusion Prevention System
 WARNING: untranslated string: ids enable automatic updates = Enable automatic updates
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: ids extract ruleset = Extracting ruleset for provider:
 WARNING: untranslated string: ids finished = Finished...
 WARNING: untranslated string: ids force ruleset update = Force ruleset update
index d5285e233ef216b0a5465cca730195ed7fc5bf5e..e37913baaaf7976c46aaf3fc27763276de7bdf91 100644 (file)
@@ -1287,8 +1287,12 @@ WARNING: untranslated string: ids cleanup tmp dir = Cleanup temporary directory.
 WARNING: untranslated string: ids could not add provider = Could not add provider
 WARNING: untranslated string: ids customize ruleset = Customize ruleset
 WARNING: untranslated string: ids download new ruleset = Downloading and unpacking new ruleset. Please wait until all operations have completed successfully...
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
 WARNING: untranslated string: ids enable = Enable Intrusion Prevention System
 WARNING: untranslated string: ids enable automatic updates = Enable automatic updates
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: ids extract ruleset = Extracting ruleset for provider:
 WARNING: untranslated string: ids finished = Finished...
 WARNING: untranslated string: ids force ruleset update = Force ruleset update
index a2f6929a6c4abd2d74dbb0e49ae831c902cc1860..ac540365b7fddbdea9e6f01508e9ae12be6a76cc 100644 (file)
@@ -1285,8 +1285,12 @@ WARNING: untranslated string: ids cleanup tmp dir = Cleanup temporary directory.
 WARNING: untranslated string: ids could not add provider = Could not add provider
 WARNING: untranslated string: ids customize ruleset = Customize ruleset
 WARNING: untranslated string: ids download new ruleset = Downloading and unpacking new ruleset. Please wait until all operations have completed successfully...
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
 WARNING: untranslated string: ids enable = Enable Intrusion Prevention System
 WARNING: untranslated string: ids enable automatic updates = Enable automatic updates
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: ids extract ruleset = Extracting ruleset for provider:
 WARNING: untranslated string: ids finished = Finished...
 WARNING: untranslated string: ids force ruleset update = Force ruleset update
index 2137b2a042c33d8460fda2667d856a48f9ce55c8..4cae8e3a25e0b71968275604064cd5e9e5fa56de 100644 (file)
@@ -1106,8 +1106,12 @@ WARNING: untranslated string: ids cleanup tmp dir = Cleanup temporary directory.
 WARNING: untranslated string: ids could not add provider = Could not add provider
 WARNING: untranslated string: ids customize ruleset = Customize ruleset
 WARNING: untranslated string: ids download new ruleset = Downloading and unpacking new ruleset. Please wait until all operations have completed successfully...
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
 WARNING: untranslated string: ids enable = Enable Intrusion Prevention System
 WARNING: untranslated string: ids enable automatic updates = Enable automatic updates
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: ids extract ruleset = Extracting ruleset for provider:
 WARNING: untranslated string: ids finished = Finished...
 WARNING: untranslated string: ids force ruleset update = Force ruleset update
index 53f97d670ab7777f27bd457ab4bfa2527ce61f58..bd07542037b4889081080e29f9e7b8c1c4840338 100644 (file)
@@ -1065,6 +1065,10 @@ WARNING: untranslated string: guardian logtarget_file = unknown string
 WARNING: untranslated string: guardian logtarget_syslog = unknown string
 WARNING: untranslated string: guardian no entries = unknown string
 WARNING: untranslated string: guardian service = unknown string
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: indirect target selection = Indirect target selection
 WARNING: untranslated string: info messages = unknown string
 WARNING: untranslated string: max bandwidth = Maximum bandwidth
index 53f97d670ab7777f27bd457ab4bfa2527ce61f58..bd07542037b4889081080e29f9e7b8c1c4840338 100644 (file)
@@ -1065,6 +1065,10 @@ WARNING: untranslated string: guardian logtarget_file = unknown string
 WARNING: untranslated string: guardian logtarget_syslog = unknown string
 WARNING: untranslated string: guardian no entries = unknown string
 WARNING: untranslated string: guardian service = unknown string
+WARNING: untranslated string: ids email alerts = E-Mail alerts
+WARNING: untranslated string: ids email recipients = Recipients
+WARNING: untranslated string: ids email sender = Sender address
+WARNING: untranslated string: ids enable email alerts = Enable e-mail alerts
 WARNING: untranslated string: indirect target selection = Indirect target selection
 WARNING: untranslated string: info messages = unknown string
 WARNING: untranslated string: max bandwidth = Maximum bandwidth
index 80b0fbb038b639ac6abe50ccd8ebdccc45e21bb1..22e84db3bae76713f9466b246ef3c751223c91eb 100644 (file)
 < AES-256-GCM
 < CHACHA20-POLY1305
 < dns servers
+< ids email alerts
+< ids email recipients
+< ids email sender
+< ids enable email alerts
 < ids provider eol
 < indirect target selection
 < mdstat
 < g.dtm
 < g.lite
 < hostile networks total
+< ids email alerts
+< ids email recipients
+< ids email sender
+< ids enable email alerts
 < ids provider eol
 < ids rulesets
 < ids unsupported provider
 < ids could not add provider
 < ids customize ruleset
 < ids download new ruleset
+< ids email alerts
+< ids email recipients
+< ids email sender
 < ids enable
 < ids enable automatic updates
+< ids enable email alerts
 < ids extract ruleset
 < ids finished
 < ids force ruleset update
 < ids could not add provider
 < ids customize ruleset
 < ids download new ruleset
+< ids email alerts
+< ids email recipients
+< ids email sender
 < ids enable
 < ids enable automatic updates
+< ids enable email alerts
 < ids extract ruleset
 < ids finished
 < ids force ruleset update
 < ids could not add provider
 < ids customize ruleset
 < ids download new ruleset
+< ids email alerts
+< ids email recipients
+< ids email sender
 < ids enable
 < ids enable automatic updates
+< ids enable email alerts
 < ids extract ruleset
 < ids finished
 < ids force ruleset update
 < ids could not add provider
 < ids customize ruleset
 < ids download new ruleset
+< ids email alerts
+< ids email recipients
+< ids email sender
 < ids enable
 < ids enable automatic updates
+< ids enable email alerts
 < ids extract ruleset
 < ids finished
 < ids force ruleset update
 < ids could not add provider
 < ids customize ruleset
 < ids download new ruleset
+< ids email alerts
+< ids email recipients
+< ids email sender
 < ids enable
 < ids enable automatic updates
+< ids enable email alerts
 < ids extract ruleset
 < ids finished
 < ids force ruleset update
 < CHACHA20-POLY1305
 < dns servers
 < guaranteed bandwidth
+< ids email alerts
+< ids email recipients
+< ids email sender
+< ids enable email alerts
 < indirect target selection
 < max bandwidth
 < offloaded
 < CHACHA20-POLY1305
 < dns servers
 < guaranteed bandwidth
+< ids email alerts
+< ids email recipients
+< ids email sender
+< ids enable email alerts
 < indirect target selection
 < max bandwidth
 < offloaded
index 960e72ef1cd44d9e08ef1354d859f191c1a24b46..8d9fbfc16b42c343ebf15c4ecdef45c12c471dca 100644 (file)
@@ -1006,6 +1006,9 @@ sub show_mainpage() {
        $checked{'ENABLE_IDS'}{'off'} = '';
        $checked{'ENABLE_IDS'}{'on'} = '';
        $checked{'ENABLE_IDS'}{$idssettings{'ENABLE_IDS'}} = "checked='checked'";
+       $checked{'ENABLE_EMAIL'}{'off'} = '';
+       $checked{'ENABLE_EMAIL'}{'on'} = '';
+       $checked{'ENABLE_EMAIL'}{$idssettings{'ENABLE_EMAIL'}} = "checked='checked'";
 
        # Draw current state of the IDS
        &Header::opensection();
@@ -1087,6 +1090,44 @@ print <<END
                                        </td>
                                </tr>
 
+                               <tr>
+                                       <td colspan='$num_zones'>
+                                               <b>$Lang::tr{'ids email alerts'}</b>
+                                       <td>
+                               </tr>
+
+                               <tr>
+                                       <td colspan='$num_zones'>
+                                               <input type='checkbox' name='ENABLE_EMAIL' $checked{'ENABLE_EMAIL'}{'on'}>&nbsp;$Lang::tr{'ids enable email alerts'}
+                                       </td>
+                               </tr>
+
+                               <tr>
+                                       <td>
+                                               <label for='EMAIL_SENDER'>$Lang::tr{'ids email sender'}</label>
+                                       </td>
+
+                                       <td colspan='$num_zones -1'>
+                                               <input type="text" name="EMAIL_SENDER" value="$idssettings{'EMAIL_SENDER'}" placeholder="alert\@example.com" size="64">
+                                       <td>
+                               </tr>
+
+                               <tr>
+                                       <td>
+                                               <label for='EMAIL_RECIPIENTS'>$Lang::tr{'ids email recipients'}</label>
+                                       </td>
+
+                                       <td colspan='$num_zones -1'>
+                                               <input type="text" name="EMAIL_RECIPIENTS" value="$idssettings{'EMAIL_RECIPIENTS'}" placeholder="one\@example.com, multiple\@example.com" size="64">
+                                       </td>
+                               </tr>
+
+                               <tr><!-- empty row for spacing -->
+                                       <td colspan='$num_zones'>
+                                               &nbsp;
+                                       </td>
+                               </tr>
+
                                <tr>
                                        <td colspan='$num_zones' align='right'>
                                                <input type='submit' name='IDS' value='$Lang::tr{'save'}' />
index c2a6c30433204e42cf2c2d353e1124623963257c..e1ed11a0e30aa278906153a89cd8714b64632b79 100644 (file)
 'ids could not add provider' => 'Provider konnte nicht hinzugefügt werden',
 'ids customize ruleset' => 'Regelset anpassen',
 'ids download new ruleset' => 'Das neue Regelset wird heruntergeladen und entpackt. Bitte warten Sie, bis dieser Vorgang erfolgreich beendet wurde...',
+'ids email alerts' => 'E-Mail Benachrichtigungen',
+'ids email recipients' => 'Empfänger-Addressen',
+'ids email sender' => 'Sender-Addresse',
 'ids enable' => 'Einbruchsverhinderungssystem aktivieren',
 'ids enable automatic updates' => 'Automatische Updates aktivieren',
+'ids enable email alerts' => 'Benachrichtigung per E-Mail aktivieren',
 'ids extract ruleset' => 'Entpacke Regelset von:',
 'ids finished' => 'Fertig...',
 'ids force ruleset update' => 'Regelset jetzt aktualisieren',
index 3450fe6d788999ddc0283e7825e4042b217f6198..1712ba2a1bc611540dfdc674100455b02b3e8fba 100644 (file)
 'ids could not add provider' => 'Could not add provider',
 'ids customize ruleset' => 'Customize ruleset',
 'ids download new ruleset' => 'Downloading and unpacking new ruleset. Please wait until all operations have completed successfully...',
+'ids email alerts' => 'E-Mail alerts',
+'ids email recipients' => 'Recipients',
+'ids email sender' => 'Sender address',
 'ids enable' => 'Enable Intrusion Prevention System',
 'ids enable automatic updates' => 'Enable automatic updates',
+'ids enable email alerts' => 'Enable e-mail alerts',
 'ids extract ruleset' => 'Extracting ruleset for provider:',
 'ids finished' => 'Finished...',
 'ids force ruleset update' => 'Force ruleset update',