mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 20:16:49 +02:00
ids.cgi: Improve showed messages while the IDS is working
Reference #11993 Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -241,9 +241,9 @@ if (-e $IDS::storederrorfile) {
|
||||
unlink($IDS::storederrorfile);
|
||||
}
|
||||
|
||||
## Grab all available snort rules and store them in the idsrules hash.
|
||||
## Grab all available rules and store them in the idsrules hash.
|
||||
#
|
||||
# Open snort rules directory and do a directory listing.
|
||||
# Open rules directory and do a directory listing.
|
||||
opendir(DIR, $IDS::rulespath) or die $!;
|
||||
# Loop through the direcory.
|
||||
while (my $file = readdir(DIR)) {
|
||||
@@ -368,7 +368,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'save'}) {
|
||||
unless ($errormessage) {
|
||||
# Lock the webpage and print notice about downloading
|
||||
# a new ruleset.
|
||||
&working_notice("$Lang::tr{'snort working'}");
|
||||
&working_notice("$Lang::tr{'ids working'}");
|
||||
|
||||
# Call subfunction to download the ruleset.
|
||||
if(&IDS::downloadruleset()) {
|
||||
@@ -497,7 +497,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'save'}) {
|
||||
&IDS::write_used_rulefiles_file(@enabled_rulefiles);
|
||||
|
||||
# Lock the webpage and print message.
|
||||
&working_notice("$Lang::tr{'snort working'}");
|
||||
&working_notice("$Lang::tr{'ids apply ruleset changes'}");
|
||||
|
||||
# Call oinkmaster to alter the ruleset.
|
||||
&IDS::oinkmaster();
|
||||
@@ -527,7 +527,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'save'}) {
|
||||
unless ($errormessage) {
|
||||
# Lock the webpage and print notice about downloading
|
||||
# a new ruleset.
|
||||
&working_notice("$Lang::tr{'snort working'}");
|
||||
&working_notice("$Lang::tr{'ids download new ruleset'}");
|
||||
|
||||
# Call subfunction to download the ruleset.
|
||||
if(&IDS::downloadruleset()) {
|
||||
@@ -552,7 +552,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'save'}) {
|
||||
&reload();
|
||||
}
|
||||
}
|
||||
# Save snort settings.
|
||||
# Save IDS settings.
|
||||
} elsif ($cgiparams{'IDS'} eq $Lang::tr{'save'}) {
|
||||
my %oldidssettings;
|
||||
my $reload_page;
|
||||
@@ -617,7 +617,7 @@ if ($cgiparams{'RULESET'} eq $Lang::tr{'save'}) {
|
||||
# Check if a ruleset exists.
|
||||
if (%idsrules) {
|
||||
# Lock the webpage and print message.
|
||||
&working_notice("$Lang::tr{'snort working'}");
|
||||
&working_notice("$Lang::tr{'ids working'}");
|
||||
|
||||
# Call oinkmaster to alter the ruleset.
|
||||
&IDS::oinkmaster();
|
||||
|
||||
@@ -1326,10 +1326,12 @@
|
||||
'idle' => 'Leerlauf',
|
||||
'idle timeout' => 'Leerlauf-Wartezeit in Min. (0 zum Deaktivieren):',
|
||||
'idle timeout not set' => 'Leerlauf-Wartezeit nicht angegeben.',
|
||||
'ids apply ruleset changes' => 'Regel-Änderungen werden übernommen ... Bitte warten Sie, bis dieser Vorgang erfolgreich beendet wurde.',
|
||||
'ids automatic rules update' => 'Automatische Regeln-Aktualisierung',
|
||||
'ids traffic analyze' => 'Packet-Analyse',
|
||||
'ids active on' => 'Aktiv auf',
|
||||
'ids enable' => 'Intrusion-Prevention-System aktivieren',
|
||||
'ids download new ruleset' => 'Das neue Regelset wird heruntergeladen und entpackt ... Bitte warten Sie, bis dieser Vorgang erfolgreich beendet wurde.',
|
||||
'ids log viewer' => 'Ansicht IPS-Protokoll',
|
||||
'ids logs' => 'IPS-Protokolldateien',
|
||||
'ids monitored interfaces' => 'Überwachte Netzwerkzonen',
|
||||
@@ -1345,6 +1347,7 @@
|
||||
'ids rules license3' => 'klicken Sie den "Generate code"-Knopf und kopieren Sie den 40-Zeichen Oinkcode in das untere Feld.',
|
||||
'ids rules update' => 'IPS-Regeln',
|
||||
'ids ruleset autoupdate in progress' => 'Das Regelset wird gerade aktualisiert ... Bitte warten Sie, bis dieser Vorgang erfolgreich beendet wurde.',
|
||||
'ids working' => 'Änderungen werden übernommen ... Bitte warten Sie, bis dieser Vorgang erfolgreich beendet wurde.',
|
||||
'iface' => 'Iface',
|
||||
'ignore filter' => '"Ignorieren"-Filter',
|
||||
'ike encryption' => 'IKE Verschlüsselung:',
|
||||
|
||||
@@ -1357,9 +1357,11 @@
|
||||
'idle' => 'Idle',
|
||||
'idle timeout' => 'Idle timeout (mins; 0 to disable):',
|
||||
'idle timeout not set' => 'Idle timeout not set.',
|
||||
'ids apply ruleset changes' => 'The ruleset changes will be applied ... Please wait until all operations have completed successfully.',
|
||||
'ids automatic rules update' => 'Automatic rules update',
|
||||
'ids traffic analyze' => 'Traffic analyzing',
|
||||
'ids active on' => 'Active on',
|
||||
'ids download new ruleset' => 'Downloading and unpacking new ruleset ... Please wait until all operations have completed successfully.',
|
||||
'ids enable' => 'Enable Intrusion Prevention System',
|
||||
'ids hide' => 'Hide',
|
||||
'ids log viewer' => 'IPS log viewer',
|
||||
@@ -1378,6 +1380,7 @@
|
||||
'ids rules update' => 'IPS rules',
|
||||
'ids ruleset autoupdate in progress' => 'Ruleset update in progress ... Please wait until all operations have completed successfully.',
|
||||
'ids show' => 'Show',
|
||||
'ids working' => 'Changes will be applied ... Please wait until all operations have completed successfully.',
|
||||
'iface' => 'Iface',
|
||||
'ignore filter' => 'Ignore filter',
|
||||
'ike encryption' => 'IKE Encryption:',
|
||||
|
||||
Reference in New Issue
Block a user